Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
srfaytkn authored May 28, 2019
1 parent 8879a4f commit 57e8d81
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,33 +78,28 @@ export default class App extends React.Component {
ref={ref => (this.youTubePlayer = ref)}
videoId="t_aIEOqB8VM"
autoPlay={true}
fullscreen={true}
fullscreen={false}
showFullScreenButton={true}
showSeekBar={true}
showPlayPauseButton={true}
startTime={5}
style={{ width: "100%", height: 200 }}
onError={e => console.log(e)}
onChangeState={e => console.log(e)}
onChangeFullscreen={e => console.log(e)}
onReady={e => console.log("onReady", e.type)}
onError={e => console.log("onError", e.error)}
onChangeState={e => console.log("onChangeState", e.state)}
onChangeFullscreen={e => console.log("onChangeFullscreen", e.isFullscreen)}
/>
<View>
<TouchableOpacity
style={styles.button}
onPress={() => this.youTubePlayer.seekTo(10)}
>
<TouchableOpacity style={styles.button} onPress={() => this.youTubePlayer.loadVideo("QdgRNIAdLi4", 0)}>
<Text style={{ color: "#ffffff" }}>loadVideo</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button} onPress={() => this.youTubePlayer.seekTo(10)}>
<Text style={{ color: "#ffffff" }}>SeekTo(10)</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
onPress={() => this.youTubePlayer.play()}
>
<TouchableOpacity style={styles.button} onPress={() => this.youTubePlayer.play()}>
<Text style={{ color: "#ffffff" }}>Play</Text>
</TouchableOpacity>
<TouchableOpacity
style={styles.button}
onPress={() => this.youTubePlayer.pause()}
>
<TouchableOpacity style={styles.button} onPress={() => this.youTubePlayer.pause()}>
<Text style={{ color: "#ffffff" }}>Pause</Text>
</TouchableOpacity>
<TouchableOpacity
Expand Down Expand Up @@ -134,14 +129,14 @@ export default class App extends React.Component {

const styles = StyleSheet.create({
container: {
flex: 1
flex: 1,
},
button: {
backgroundColor: "red",
margin: 12,
padding: 12,
borderRadius: 4
}
borderRadius: 4,
},
});
```
### API
Expand Down

0 comments on commit 57e8d81

Please sign in to comment.