react-native-video
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "react-native-video", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A <Video /> element for react-native", | ||
@@ -5,0 +5,0 @@ "main": "Video.js", |
@@ -82,7 +82,17 @@ ## react-native-video | ||
The newer ExoPlayer library will work for most people. | ||
```gradle | ||
include ':react-native-video' | ||
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android-exoplayer') | ||
``` | ||
If you need to use the old Android media player based player, use the following instead: | ||
```gradle | ||
include ':react-native-video' | ||
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android') | ||
``` | ||
**android/app/build.gradle** | ||
@@ -120,2 +130,3 @@ | ||
<summary>Windows</summary> | ||
Make the following additions to the given files manually: | ||
@@ -181,8 +192,8 @@ | ||
volume={1.0} // 0 is muted, 1 is normal. | ||
muted={false} // Mutes the audio entirely. | ||
paused={false} // Pauses playback entirely. | ||
muted={true|false} // Mutes the audio entirely. Default false | ||
paused={true|false} // Pauses playback entirely. Default false | ||
resizeMode="cover" // Fill the whole screen at aspect ratio.* | ||
repeat={true} // Repeat forever. | ||
playInBackground={false} // Audio continues to play when app entering background. | ||
playWhenInactive={false} // [iOS] Video continues to play when control or notification center are shown. | ||
repeat={true|false} // Repeat forever. Default false | ||
playInBackground={true|false} // Audio continues to play when app entering background. Default false | ||
playWhenInactive={true|false} // [iOS] Video continues to play when control or notification center are shown. Default false | ||
ignoreSilentSwitch={"ignore"} // [iOS] ignore | obey - When 'ignore', audio will still play with the iOS hard silent switch set to silent. When 'obey', audio will toggle with the switch. When not specified, will inherit audio settings as usual. | ||
@@ -189,0 +200,0 @@ progressUpdateInterval={250.0} // [iOS] Interval to fire onProgress (default to ~250ms) |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3160
295
0
497966
64