diff --git a/examples/basic/src/VideoPlayer.android.tsx b/examples/basic/src/VideoPlayer.android.tsx index 750d963a..a3206a84 100644 --- a/examples/basic/src/VideoPlayer.android.tsx +++ b/examples/basic/src/VideoPlayer.android.tsx @@ -1,6 +1,8 @@ 'use strict'; -import React, {Component, createRef} from 'react'; +import React, { + Component +} from 'react'; import { StyleSheet, @@ -12,11 +14,12 @@ import { ToastAndroid, } from 'react-native'; -import {Picker} from '@react-native-picker/picker'; +import { Picker } from '@react-native-picker/picker' -import Video, {TextTrackType, VideoDecoderProperties} from 'react-native-video'; +import Video, { VideoDecoderProperties, TextTrackType } from 'react-native-video'; class VideoPlayer extends Component { + state = { rate: 1, volume: 1, @@ -43,7 +46,7 @@ class VideoPlayer extends Component { showRNVControls: false, }; - seekerWidth = 0; + seekerWidth = 0 srcList = [ require('./broadchurch.mp4'), @@ -57,95 +60,99 @@ class VideoPlayer extends Component { }, { description: '(hls|live) red bull tv', - uri: 'https://rbmn-live.akamaized.net/hls/live/590964/BoRB-AT/master_928.m3u8', + uri: 'https://rbmn-live.akamaized.net/hls/live/590964/BoRB-AT/master_928.m3u8' }, { description: '(mp4|subtitles) demo with sintel Subtitles', - uri: 'http://www.youtube.com/api/manifest/dash/id/bf5bb2419360daf1/source/youtube?as=fmp4_audio_clear,fmp4_sd_hd_clear&sparams=ip,ipbits,expire,source,id,as&ip=0.0.0.0&ipbits=0&expire=19000000000&signature=51AF5F39AB0CEC3E5497CD9C900EBFEAECCCB5C7.8506521BFC350652163895D4C26DEE124209AA9E&key=ik0', + uri: + 'http://www.youtube.com/api/manifest/dash/id/bf5bb2419360daf1/source/youtube?as=fmp4_audio_clear,fmp4_sd_hd_clear&sparams=ip,ipbits,expire,source,id,as&ip=0.0.0.0&ipbits=0&expire=19000000000&signature=51AF5F39AB0CEC3E5497CD9C900EBFEAECCCB5C7.8506521BFC350652163895D4C26DEE124209AA9E&key=ik0', type: 'mpd', }, { description: 'invalid URL', - uri: 'mmt://www.youtube.com', + uri: + 'mmt://www.youtube.com', type: 'mpd', }, - {description: '(no url) Stopped playback', uri: undefined}, + { description: '(no url) Stopped playback', uri: undefined }, { description: '(no view) no View', noView: true, }, - ]; + ] - video = createRef