Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

react-native-ijkplayer

0.3.9 • Public • Published

React Native Component for ijkplayer

How to build Example

git clone https://github.com/king6cong/react-native-ijkplayer
cd react-native-ijkplayer/Example
npm install

iOS

iOS build need IJKMediaFramework.framework first, which can be build following instructions on https://github.com/Bilibili/ijkplayer, and generate IJKMediaFramework.framework

cd /Users/cong/Library/Developer/Xcode/DerivedData/IJKMediaDemo-ffgcszbckhcejffronccjzcppdbz/Build/Products/
lipo -create Release-iphoneos/IJKMediaFramework.framework/IJKMediaFramework Release-iphonesimulator/IJKMediaFramework.framework/IJKMediaFramework -output IJKMediaFramework
cp IJKMediaFramework Release-iphoneos/IJKMediaFramework.framework/
cp -R Release-iphoneos/IJKMediaFramework.framework react-native-ijkplayer/ios/

After IJKMediaFramework.framework placed under react-native-ijkplayer/ios/ , Example is ready to build.

cd react-native-ijkplayer/Example/ios
open Example.xcodeproj

Android

ijk dependencies is satisfied using gralde for Android

cd react-native-ijkplayer/Example/android
./gradlew installDebug

Install

npm i react-native-ijkplayer

DownloadsWeekly Downloads

3

Version

0.3.9

License

MIT

Last publish

Collaborators

  • avatar
  • avatar