简体   繁体   中英

JavaScript Video is not playing on Ipad and Android

I have some of Videos which are playing on Ipad / Android devices successfully but one Video is not playing on Ipad or Android while all Videos are working fine on Browser.

Video (which is not playing on ipad or Android) link is available here .

Is something with video or support to Ipad / Android?

What I tried I simply edited video JavaScript HTML file.

<!DOCTYPE html>
<html>

<head>
  <title>Video.js | HTML5 Video Player</title>

  <!-- Chang URLs to wherever Video.js files will be hosted -->
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="video.js"></script>

  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>
</head>

<body>
  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}">
       <source src="Video.mp4" type='video/mp4'/>
    </video>

</body>

</html>

Try converting the video to a lower h264 profile and level, eg with ffmpeg. Older devices are unable to play h.264 videos using the high profile, hence "the video used features your browser did not support". The baseline profile is most compatible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM