diff --git a/examples/basic/src/VideoPlayer.tsx b/examples/basic/src/VideoPlayer.tsx index 1caaf98a..843cb145 100644 --- a/examples/basic/src/VideoPlayer.tsx +++ b/examples/basic/src/VideoPlayer.tsx @@ -360,7 +360,9 @@ class VideoPlayer extends Component { }; onEnd = () => { - this.channelUp(); + if (!this.state.loop) { + this.channelUp(); + } }; onPlaybackRateChange = (data: OnPlaybackRateChangeData) => { @@ -593,8 +595,8 @@ class VideoPlayer extends Component { renderTopControl() { return ( - <> - + + {this.srcList[this.state.srcListId]?.description || 'local file'} @@ -602,12 +604,12 @@ class VideoPlayer extends Component { onPress={() => { this.toggleControls(); }}> - + {this.state.showRNVControls ? 'Hide controls' : 'Show controls'} - + ); } @@ -1032,6 +1034,9 @@ const styles = StyleSheet.create({ width: 100, height: 40, }, -}); + topControlsContainer: { + paddingTop: 30, + } + }); export default VideoPlayer;