November 2017
Beginner
294 pages
6h 55m
English
VideoControl is a physical object with the normal VideoPlayer functions, in other words, start, pause, and so forth. As it is intended to be used in playing videos, the example here (straight from the documentation) will show it embedded with an animation object:
class VideoPlayer extends React.Component {constructor(props) { super(props); this.state = { // init with muted, autoPlay playerState: new MediaPlayerState({autoPlay: true, muted: true}), };}render() { return ( <View> <Video style={{height: 2.25, width: 4}} source={{uri: 'assets/1.webm'}} playerState={this.state.playerState} /> <VideoControl style={{height: 0.2, width: 4}} playerState={this.state.playerState} /> </View> );}}
Don't feel limited to its intended use. ...
Read now
Unlock full access