I am using media player js for my video, I am trying to play hls and dash video format in both ios and android. Here is what I have so far.
Live demo code pen: live demo
HTML
<div class="video">
<video id="player1" muted autoplay controls preload="none">
data - quality = "SD" >
Here is JS
$('video').mediaelementplayer({
features: ['playpause', 'current', 'progress', 'duration', 'volume', 'fullscreen', 'quality'],
stretching: "responsive",
enableAutosize: false,
startVolume: 0.5,
success: function(mediaElement, domObject) {
mediaElement.setVolume(0.5);
console.log(mediaElement);
}
});
Now when I check on a mobile device (ANDROID) I get the following error:
Media error: Format(s) not supported or source(s) not found
**
NOTE: on iPhone, everything is okay problem is with an android device
**
What do I need to do to solve this problem? any help or suggestions will be appreciated