html5 video player

馋奶兔 提交于 2020-01-17 16:42:10

问题


<!DOCTYPE html>
<html>
<head>

  <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet" type="text/css">

  <script src="http://vjs.zencdn.net/c/video.js"></script>

</head>
<body>

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

</body>
</html>

this code show the video player.video is not played while clicking play button.

I use this link videojs.com for creating videoplayer in android phonegap. video player is created successfully.but video is not played.It;s work fine in browser,but not in emulator.I want to play youtube video using that player. how to solve this problem.please guide me.it's urgent.thanks in advance . how to play video using html5 videoplayer in android phonegap


回答1:


use this.. works best

http://simonmacdonald.blogspot.in/2011/11/video-player-plugin-for-phonegap.html



来源:https://stackoverflow.com/questions/9721679/html5-video-player

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!