如何在Mac系统上的iframe中播放上传的视频 [英] How to play uploaded videos in an iframe on a Mac system
本文介绍了如何在Mac系统上的iframe中播放上传的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用iframe以及视频标签和对象标签来播放视频.在某些情况下,它仅播放视频中的音频,但视频不显示.其次,同一视频文件可以在浏览器的单独标签上正常播放,但不能在我的iframe中播放.我的Mac上的所有浏览器都存在此问题,但是在Windows计算机上,它的播放效果很好.
解决方案
我终于找到了它.苹果对此有一个很好的文档. 解决方案
I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual/qtscripting_html/QTScripting_HTML_Document/ScriptingHTML.html#//apple_ref/doc/uid/TP40001525-2-GettingaBrowsertoLoadQuickTime
I simply had to use the embed tag properly as they have explained.
这篇关于如何在Mac系统上的iframe中播放上传的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文