11import React from 'react' ;
22import ReactDOM from 'react-dom' ;
3- import ReactNetflixPlayer from '../src ' ;
3+ import ReactNetflixPlayer from '../dist/ReactNetflixPlayer.js ' ;
44
55ReactDOM . render (
66 < div >
77 < ReactNetflixPlayer
88 // Vídeo Link - Just data is required
9- src = "http ://lucasjunior.com.br/teste .mp4"
9+ src = "https ://storage.googleapis.com/webfundamentals-assets/videos/chrome .mp4"
1010 // src={"http://videoinvalid"}
1111 title = "Dragon Ball Z"
1212 subTitle = "Opening"
@@ -15,15 +15,15 @@ ReactDOM.render(
1515 // Text language of player
1616 playerLanguage = "pt"
1717 // Action when the button X (close) is clicked
18- backButton = { ( ) => { } }
18+ backButton = { ( ) => { } }
1919 // The player use the all viewport
2020 fullPlayer
2121 autoPlay
2222 startPosition = { 0 }
2323 // The info of the next video action
2424 dataNext = { { title : 'Não existe um próximo vídeo.' } }
2525 // The action call when the next video is clicked
26- onNextClick = { ( ) => { } }
26+ onNextClick = { ( ) => { } }
2727 // The list reproduction data, will be render in this order
2828 reprodutionList = { [
2929 {
@@ -45,9 +45,9 @@ ReactDOM.render(
4545 } ;
4646 } }
4747 // The function is call when the video finish
48- onEnded = { ( ) => { } }
48+ onEnded = { ( ) => { } }
4949 // The function is call when the video is playing (One time for frame)
50- onTimeUpdate = { ( ) => { } }
50+ onTimeUpdate = { ( ) => { } }
5151 // Enable the orverlay when player is paused
5252 overlayEnabled
5353 // Enabled the auto clode controlls of player
@@ -57,7 +57,7 @@ ReactDOM.render(
5757 secundaryColor = "#ffffff"
5858 fontFamily = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
5959
60- // subtitleMedia="/teste.vtt"
60+ // subtitleMedia="/teste.vtt"
6161 />
6262 </ div > ,
6363 document . getElementById ( 'root' ) ,
0 commit comments