Update README

This commit is contained in:
Brent Vatne 2015-04-08 12:05:46 -07:00
parent b689238127
commit b8d55afc16
2 changed files with 8 additions and 9 deletions

View File

@ -27,13 +27,13 @@ A <Video> component for react-native, as seen in
// Within your render function, assuming you have a file called // Within your render function, assuming you have a file called
// "background.mp4" in your project. You can include multiple videos // "background.mp4" in your project. You can include multiple videos
// on a single screen if you like. // on a single screen if you like.
<Video source="background" // Can be a URL or a local file. <Video source={{uri: "background"}} // Can be a URL or a local file.
rate={1.0} // 0 is paused, 1 is normal. rate={1.0} // 0 is paused, 1 is normal.
volume={1.0} // 0 is muted, 1 is normal. volume={1.0} // 0 is muted, 1 is normal.
muted={false} // Mutes the audio entirely. muted={false} // Mutes the audio entirely.
paused={false} // Pauses playback entirely. paused={false} // Pauses playback entirely.
resizeMode="cover" // Fill the whole screen at aspect ratio. resizeMode="cover" // Fill the whole screen at aspect ratio.
repeat={true} // Repeat forever. repeat={true} // Repeat forever.
style={styles.backgroundVideo} /> style={styles.backgroundVideo} />
// Later on in your styles.. // Later on in your styles..
@ -52,7 +52,6 @@ Example code [here](https://github.com/brentvatne/react-native-login/blob/master
## TODOS ## TODOS
- [ ] Support more file types (currently only `mp4` locally and web)
- [ ] Add some way to interface with `seekToTime` - [ ] Add some way to interface with `seekToTime`
- [ ] Add support for captions - [ ] Add support for captions
- [ ] Support `require('video!...')` - [ ] Support `require('video!...')`

View File

@ -1,6 +1,6 @@
{ {
"name": "react-native-video", "name": "react-native-video",
"version": "0.2.4", "version": "0.2.5",
"description": "A <Video> element for react-native", "description": "A <Video> element for react-native",
"main": "Video.ios.js", "main": "Video.ios.js",
"author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)", "author": "Brent Vatne <brentvatne@gmail.com> (https://github.com/brentvatne)",