react-native-fmp4_player_lib
v0.1.14
Published
an player stream's fmp4
Readme
react-native-fmp4_player_lib
an player stream's fmp4
Installation
npm install react-native-fmp4_player_libRequire Version React 0.81 or newer
Usage
- Go to page https://streaming.ermis.network and click forget password to register email

- Create live Stream

- Get the stream key and rtmp Url

- Get Stream Id from URL

- Use OBS or Other Streaming software you have Paste the stream key and rtmp URL to Streaming SoftWare

Example
// View
import { StreamView } from 'react-native-fmp4_player_lib';
// Function
import { startStreaming, stopStreaming } from 'react-native-fmp4_player_lib';
const [id, setId] = useState('');
//...
<StreamView streamId={id != '' ? id : ""} style={{width:'100%', height:'30%'}}/>
<Button title="Start Streaming" onPress={() => startStreaming()} />
<Button title="Stop Streaming" onPress={() => stopStreaming()} />
<TextInput
style={styles.input}
placeholder="Enter StreamId here"
onChangeText={newText => setText(newText)}
value={text}
/>
// set Stream Id Here or on your application UI