在 webView Iphone 上从 URL 打开视频

发布于 2024-12-06 19:47:53 字数 128 浏览 3 评论 0原文

在我的 iPhone 应用程序中,我在 webview 上打开一个 URL。此 URL 包含视频。当我打开视频时,它不会全屏播放,如果我旋转屏幕,它也不会旋转。我该如何管理这个视频?我没有任何玩家。谁能帮助我吗?

请帮忙...

In my Iphone app I open a URL on a webview.This URL contains videos. When I open a video it is not played fullscreen and if I rotate the screen it is not rotating. How can I manage this video ? I don't have any player. Can anyone help me ?

Please help...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烟若柳尘 2024-12-13 19:47:53

从技术上讲,您不需要“媒体播放器”,只需将受支持的媒体 URL 加载到 UIWebView 中,它就会自动播放。我不建议养成这种习惯,但这是一个快速的解决方案。

You do not technically need a "media player", just load a supported media URL into a UIWebView and it should play automatically. I would not recommend making this a habit, but its a quick solution.

淡淡的优雅 2024-12-13 19:47:53

我认为您的网页中包含 标签。这就是为什么它没有全屏的原因。

尝试使用 video 播放视频,

您一定会得到全屏视频

i think your webpage contains <video> tag in it. That's why its not getting full screen.

try to play the video with <a href="url of your video">video</a>

You will surely get the full screen video

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文