Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requireNativeComponent: "RCTLivePlayer" was not found in the UIManager #14

Open
domene96 opened this issue Aug 27, 2019 · 4 comments
Open

Comments

@domene96
Copy link

`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'
}
});
`

@vanhao-le
Copy link

I have a same this problem, please help me fix it.

@renatocassino
Copy link

The same for me :/

@brunoribeiro-lab
Copy link

same insue

@PedroPini
Copy link

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants