react-awesome-player icon indicating copy to clipboard operation
react-awesome-player copied to clipboard

Multiple video source not working?

Open muhammad-ihsan opened this issue 4 years ago • 1 comments

I have this code on my components, but the player is only playing the first video. Did I miss something on configuration?

<ReactAwesomePlayer
    onRef={video => { console.log(video) }}
    options={
    	sources:{[
    		{
		        type: "video/mp4",
		        src: "https://cdn.theguardian.tv/webM/player1.webm"
      		},
      		{
      			type: "video/mp4",
		        src: "https://cdn.theguardian.tv/webM/player2.webm"
      		}
  		]},
      autoplay
      muted
}/>

muhammad-ihsan avatar Mar 17 '21 09:03 muhammad-ihsan

☕

muhammad-ihsan avatar Mar 18 '21 19:03 muhammad-ihsan