Visual Studio 2015 Apache Cordova Android App Iframe(Visual Studio 2015 Apache Cordova Android App I

编程入门 行业动态 更新时间:2024-10-27 05:29:58
Visual Studio 2015 Apache Cordova Android App Iframe(Visual Studio 2015 Apache Cordova Android App Iframe)

我想使用Visual Studio 2015 Apache Cordova在Iframe中加载视频。

我曾尝试加载像谷歌和w3school的网站,但仍未能加载视频。

我正在使用document.getElementById("MyId").src = "site"; 。

对不起,我无法弄清楚如何在这个问题中添加我的完整代码

有什么建议么?

I want to load a video in the Iframe using Visual Studio 2015 Apache Cordova.

I have tried loading a website like google and w3school but still failed to load the video.

I am using document.getElementById("MyId").src = "site";.

Sorry, I could not figure out how to add my full code in this question

Any suggestions?

最满意答案

使用此代码播放cordova html文件中的视频链接。 喜欢这个 :

<video id="example_video_1" width="640" height="264" webkit-playsinline poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}"> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> </video>

但是如果您想为ios设备部署,请考虑更改webconfig文件并添加以下内容:

AllowInlineMediaPlayback=true

refrence

Use this code to play the video link in your cordova html files . Like this :

<video id="example_video_1" width="640" height="264" webkit-playsinline poster="http://video-js.zencoder.com/oceans-clip.png" data-setup="{}"> <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' /> </video>

but if you want to deploy for ios devices consider changing webconfig file and add this :

AllowInlineMediaPlayback=true

refrence

更多推荐

本文发布于:2023-07-30 08:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336696.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Apache   Visual   Studio   App   Iframe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!