<embed> or <object> tag video playback error handler - JavaScript

后端 未结 2 1526
终归单人心
终归单人心 2021-01-14 14:39

Am trying to play YouTube and other videos by embedding it in the HTML source for displaying them in iOS.

Both and
2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-14 15:09

    You are defining type="application/x-shockwave-flash" in the object tag but where are you defining the fallback for iOS. If you trying to do target iOS specifically then why not use video tag. The documentation given in http://websitehelpers.com/video/html.html will help you to play video in iOS For iOS you need to define the video tag otherwise it does not understand or you can use any one flash player like flowplayer which has a fallback support for iOS. You can refer the documentation from http://flash.flowplayer.org/plugins/javascript/ipad.html. Try and let me know if this solves your issue

    Update :

    Try the following . This works well in desktop and in ipad. J_DV9b0x7v4 is the video you want to play. Check the demo from http://jsfiddle.net/AAUgG/ in iOS. This should solve the purpose as you desired.

提交回复
热议问题