Loading .gitignore +1 −0 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line node_modules/**/* RCTVideo.xcodeproj/xcuserdata/**/* RCTVideo.xcodeproj/project.xcworkspace/**/* Examples/VideoPlayer/node_modules/**/* Examples/VideoPlayer/index.ios.js +2 −0 Changes for Examples/VideoPlayer/index.ios.js: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ var { Text, View, TouchableOpacity, AlertIOS, } = React; var Video = require('react-native-video'); Loading Loading @@ -95,6 +96,7 @@ var VideoPlayer = React.createClass({ resizeMode={this.state.resizeMode} onLoad={this.onLoad} onProgress={this.onProgress} onEnd={() => { AlertIOS.alert('Done!') }} repeat={true} /> </TouchableOpacity> Loading Examples/VideoPlayer/package.json +1 −1 Changes for Examples/VideoPlayer/package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,6 +7,6 @@ }, "dependencies": { "react-native": "0.3.10", "react-native-video": "^0.2.6" "react-native-video": "^0.2.7" } } README.md +3 −2 Changes for README.md: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -34,7 +34,9 @@ A <Video> component for react-native, as seen in paused={false} // Pauses playback entirely. resizeMode="cover" // Fill the whole screen at aspect ratio. repeat={true} // Repeat forever. onEnd={this._onEnd} // handle end of playback onLoad={this.setDuration} // Callback when video loads onProgress={this.setTime} // Callback every ~250ms with currentTime onEnd={this.onEnd} // Callback when playback finishes style={styles.backgroundVideo} /> // Later on in your styles.. Loading @@ -57,5 +59,4 @@ Example code [here](https://github.com/brentvatne/react-native-login/blob/master - [ ] Add support for captions - [ ] Support `require('video!...')` - [ ] Add support for playing multiple videos in a sequence (will interfere with current `repeat` implementation) - [x] Add `onComplete` callback for when it finishes playing - [ ] Callback to get buffering progress for remote videos package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "name": "react-native-video", "version": "0.2.7", "version": "0.2.8", "description": "A <Video /> element for react-native", "main": "Video.ios.js", "author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)", Loading Loading
.gitignore +1 −0 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line node_modules/**/* RCTVideo.xcodeproj/xcuserdata/**/* RCTVideo.xcodeproj/project.xcworkspace/**/* Examples/VideoPlayer/node_modules/**/*
Examples/VideoPlayer/index.ios.js +2 −0 Changes for Examples/VideoPlayer/index.ios.js: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ var { Text, View, TouchableOpacity, AlertIOS, } = React; var Video = require('react-native-video'); Loading Loading @@ -95,6 +96,7 @@ var VideoPlayer = React.createClass({ resizeMode={this.state.resizeMode} onLoad={this.onLoad} onProgress={this.onProgress} onEnd={() => { AlertIOS.alert('Done!') }} repeat={true} /> </TouchableOpacity> Loading
Examples/VideoPlayer/package.json +1 −1 Changes for Examples/VideoPlayer/package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -7,6 +7,6 @@ }, "dependencies": { "react-native": "0.3.10", "react-native-video": "^0.2.6" "react-native-video": "^0.2.7" } }
README.md +3 −2 Changes for README.md: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -34,7 +34,9 @@ A <Video> component for react-native, as seen in paused={false} // Pauses playback entirely. resizeMode="cover" // Fill the whole screen at aspect ratio. repeat={true} // Repeat forever. onEnd={this._onEnd} // handle end of playback onLoad={this.setDuration} // Callback when video loads onProgress={this.setTime} // Callback every ~250ms with currentTime onEnd={this.onEnd} // Callback when playback finishes style={styles.backgroundVideo} /> // Later on in your styles.. Loading @@ -57,5 +59,4 @@ Example code [here](https://github.com/brentvatne/react-native-login/blob/master - [ ] Add support for captions - [ ] Support `require('video!...')` - [ ] Add support for playing multiple videos in a sequence (will interfere with current `repeat` implementation) - [x] Add `onComplete` callback for when it finishes playing - [ ] Callback to get buffering progress for remote videos
package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line { "name": "react-native-video", "version": "0.2.7", "version": "0.2.8", "description": "A <Video /> element for react-native", "main": "Video.ios.js", "author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)", Loading