-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
34 lines (32 loc) · 748 Bytes
/
index.js
File metadata and controls
34 lines (32 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React from 'react'
import { render } from 'react-dom'
import ReactFlowPlayer from 'react-flow-player'
const rootElement = document.querySelector('#root')
if (rootElement) {
render(
<ReactFlowPlayer
playerInitScript="http://releases.flowplayer.org/7.2.1/flowplayer.min.js"
playerId="reactFlowPlayer"
sources={[
{
type: 'video/flash',
src: 'rtmp://35.240.131.235/live/wawajimini21',
},
]}
customButton={[
{
component: <a id="custom-btn">Custom React Component</a>,
class: 'fp-controls > .fp-volume',
id: 'custom-btn',
place: 'before',
},
]}
rtml={{
url: 'rtmp://35.240.131.235/live/wawajimini21',
rtmpt: false,
}}
bgcolor="#006688"
/>,
rootElement
)
}