Before building the SDK, please make sure you have the following dependencies installed:
-
Git: Ensure that Git is installed on your machine. If not, you can download and install it from https://git-scm.com/. Or using the following command::
brew install git
-
CocoaPods: The SDK uses CocoaPods for dependency management. If you don't have CocoaPods installed, you can install it using the following command:
sudo gem install cocoapods
- macOS 14.0
- Xcode 15.2 (15C500b)
- Cocoapods version: 1.10.2
- Ruby 3.0.6p216
To run the example project, clone the repo, and run pod install
from the Example directory first.
-
Clone the repository
git clone https://github.com/RTE-Dev/RedPlayer.git
-
Navigate to the RedPlayerDemo directory
cd RedPlayer/source/ios/RedPlayerDemo
-
Install dependencies using CocoaPods
pod install
-
Open the generated
RedPlayerDemo.xcworkspace
- iOS 10.0+
Start by creating a new Xcode project named PlayerDemo.xcodeproj
In the root directory of your project, create a Podfile
with the following content:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
def pods_dependency
pod "XYMediaFfmpeg", :path => "./Submodules/XYMediaFfmpeg"
pod "opensoundtouch", :path => "./Submodules/opensoundtouch"
pod "RedPlayer", :path => "../"
end
target 'PlayerDemo' do
project 'PlayerDemo'
pods_dependency
end
This Podfile includes dependencies on local RedPlayer framework, and ffmpeg, opensoundtouch dynamic frameworks.
Run the following command in the terminal to install the dependencies:
$ pod install
Open the generated PlayerDemo.xcworkspace
file and build/run the project. You can now explore the RedPlayer demo by executing it within Xcode.
If you encounter a crash when launching with opensoundtouch, please manually integrate the opensoundtouch.framework into your project target. Using "Embbed & Sign"