|
@@ -5,6 +5,8 @@ import {
|
|
|
} from 'react-native';
|
|
} from 'react-native';
|
|
|
|
|
|
|
|
import Video from 'react-native-video';
|
|
import Video from 'react-native-video';
|
|
|
|
|
+import VideoPlayer from 'react-native-video-controls';
|
|
|
|
|
+
|
|
|
import Socket from '../components/Socket';
|
|
import Socket from '../components/Socket';
|
|
|
import Chat from './Live/Chat';
|
|
import Chat from './Live/Chat';
|
|
|
|
|
|
|
@@ -38,12 +40,19 @@ class LiveVideo extends Component {
|
|
|
<ScrollableTabView renderTabBar={() => <View />} >
|
|
<ScrollableTabView renderTabBar={() => <View />} >
|
|
|
<View tabLabel='Video' style={styles.videoPage}>
|
|
<View tabLabel='Video' style={styles.videoPage}>
|
|
|
<View style={styles.video}>
|
|
<View style={styles.video}>
|
|
|
- <Video
|
|
|
|
|
|
|
+ <VideoPlayer
|
|
|
source={{ uri: 'https://plataforma.especificosba.com.ar/hls/movie.m3u8' }}
|
|
source={{ uri: 'https://plataforma.especificosba.com.ar/hls/movie.m3u8' }}
|
|
|
ref={(ref) => { this.player = ref; }}
|
|
ref={(ref) => { this.player = ref; }}
|
|
|
- volume={0.2}
|
|
|
|
|
|
|
+ volume={1}
|
|
|
resizeMode={'contain'}
|
|
resizeMode={'contain'}
|
|
|
- style={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}
|
|
|
|
|
|
|
+ videoStyle={{ position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }}
|
|
|
|
|
+ navigator={ this.props.navigator }
|
|
|
|
|
+ rate={ 1 }
|
|
|
|
|
+ controlTimeout={ 15000 }
|
|
|
|
|
+ resizeMode="cover"
|
|
|
|
|
+ playInBackground={true}
|
|
|
|
|
+ playWhenInactive={true}
|
|
|
|
|
+
|
|
|
/>
|
|
/>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|