Open prajendra-is opened 2 years ago
Have you tried this?
sources={[
{
src: 'https://<>.cloudfront.net/<path>/dash/<path>.mpd',
type: 'application/dash+xml',
},
{
src: 'https://<>.cloudfront.net/<path>/hls/<path>.m3u8',
type: 'application/x-mpegURL',
}
]}
Describe the bug When I added the video plugin for my amplify app, I picked both HLS and Dash. When I use the code provided by
amplify video setup-video-player
:I'm able to play Dash using:
Or HLS using:
These both work individually, but what code is needed so that it prefers one (say Dash), and fallsback to HLS instead?
Desktop (please complete the following information):