0

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

enter image description here

**

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

The Dead Man
  • 6,258
  • 28
  • 111
  • 193

1 Answers1

-1

For future reference about this error, make sure u have the right hls files with the right codecs , here is tutorial on how to convert mp4 to hls files , the right way

https://docs.peer5.com/guides/production-ready-hls-vod/
The Dead Man
  • 6,258
  • 28
  • 111
  • 193