Loading README.md +14 −0 Changes for README.md: 14 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,20 @@ Run `npm install react-native-video --save` Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video` If you would like to allow other apps to play music over your video component, add: **AppDelegate.m** ``` #import <AVFoundation/AVFoundation.h> // import - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil]; // allow ... } ``` #### Android First, copy your video file to `android/app/src/main/res/raw/`, then Loading Loading
README.md +14 −0 Changes for README.md: 14 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,20 @@ Run `npm install react-native-video --save` Install [rnpm](https://github.com/rnpm/rnpm) and run `rnpm link react-native-video` If you would like to allow other apps to play music over your video component, add: **AppDelegate.m** ``` #import <AVFoundation/AVFoundation.h> // import - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil]; // allow ... } ``` #### Android First, copy your video file to `android/app/src/main/res/raw/`, then Loading