Repository navigation
·
3 commits
to 1.1.4
since this release
What's Changed
- fix(apple): correct video range and HDR10 rendering #5
Apple xcframeworks
- platforms: iOS 12+, macOS 10.14+, tvOS 12+
- Changelog: 1.1.3...1.1.4-beta-1
- license: LGPL-2.1-or-later
- note: Objective-C framework, FFmpeg statically linked
- third-party: ass-0.17.5-260827105429、ffmpeg8-8.1.2-261116144805
CocoaPods
pod "FSPlayer", :podspec => 'https://github.com/debugly/fsplayer/releases/download/1.1.4-beta-1/FSPlayer.spec.json'Swift Package Manager
Xcode 工程
- 在 Xcode 中打开 App 工程,选择 File → Add Package Dependencies…。
- 输入仓库地址:
https://github.com/debugly/fsplayer-spm.git。 - Dependency Rule 选择 Exact Version,填写
1.1.4-beta-1,点击 Add Package。 - 选择 FSPlayer 产品,在 Add to Target 中选择使用它的 App target,完成添加。
- 在 Swift 文件中通过
import FSPlayer使用;Objective-C 文件使用#import <FSPlayer/FSPlayer.h>。
Package.swift
在现有 Swift Package 的 Package.swift 中添加依赖,并关联到使用 FSPlayer 的 target(将 MyLibrary 替换为实际 target 名称):
// 合并到 Package(...) 的 dependencies 中
.package(
url: "https://github.com/debugly/fsplayer-spm.git",
exact: "1.1.4-beta-1"
)
// 合并到 Package(...) 的 targets 中
.target(
name: "MyLibrary",
dependencies: [
.product(name: "FSPlayer", package: "fsplayer-spm")
]
)普通 App 的 .xcodeproj 不会自动读取 Package.swift。
XcodeGen
将以下配置合并到现有 project.yml,将 MyApp 替换为实际 App target 名称,保留已有的 target 配置:
packages:
FSPlayer:
url: https://github.com/debugly/fsplayer-spm.git
exactVersion: "1.1.4-beta-1"
targets:
MyApp:
dependencies:
- package: FSPlayer
product: FSPlayer生成工程并解析依赖(将工程名替换为实际名称):
xcodegen generate
xcodebuild -resolvePackageDependencies -project MyApp.xcodeproj集成后,Swift 代码通过 import FSPlayer 使用。SPM 仓库需先同步本次发布的 1.1.4-beta-1 版本 tag。
Android AAR
- ABIs: arm64-v8a,armeabi-v7a
- Changelog: 1.1.3...1.1.4-beta-1
- license: LGPL-2.1-or-later
- note: FFmpeg was linked into libfsplayer.so statically(namespace com.debugly.fsplayer)
- third-party: ass-0.17.5-260827105429、ffmpeg8-8.1.2-261116144805
Gradle
repositories { mavenCentral() }
dependencies { implementation 'io.github.debugly:fsplayer:1.1.4-beta-1' }
Maven
<dependency>
<groupId>io.github.debugly</groupId>
<artifactId>fsplayer</artifactId>
<version>1.1.4-beta-1</version>
</dependency>