You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`import React, {Component} from 'react';
import {Text, View, Button, Image, StyleSheet, Platform, NetInfo, Alert} from 'react-native';
import allStyles from '../css/allStylesCSS.js';
import Menu from './Menu';
// import Video from 'react-native-video';
// import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
import {LivePlayer} from "react-native-live-stream";
`import React, {Component} from 'react';
import {Text, View, Button, Image, StyleSheet, Platform, NetInfo, Alert} from 'react-native';
import allStyles from '../css/allStylesCSS.js';
import Menu from './Menu';
// import Video from 'react-native-video';
// import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
import {LivePlayer} from "react-native-live-stream";
export default class Camaras extends Component {
render() {
return (
<LivePlayer source={{uri:"rtmp://live.hkstv.hk.lxdns.com/live/hks"}}
ref={(ref) => {
this.player = ref
}}
style={styles.backgroundVideo}
paused={false}
muted={false}
bufferTime={300}
maxBufferTime={1000}
resizeMode={"contain"}
onLoading={()=>{}}
onLoad={()=>{}}
onEnd={()=>{}}
/>
);
}
}
const styles = StyleSheet.create({
backgroundVideo: {
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0
},
container: {
flex: 1
},
toolbar: {
marginTop: 30,
backgroundColor: 'white',
padding: 10,
borderRadius: 5
},
mediaPlayer: {
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
backgroundColor: 'black'
}
});
`
The text was updated successfully, but these errors were encountered: