当我们使用WebView流式传输视频时如何获得MoviePlayer的控制权

发布于 2024-11-18 00:03:18 字数 145 浏览 15 评论 0原文

我正在尝试在我的应用程序上显示 YouTube 视频。如何在特定时间后停止/暂停正在播放的电影播放器​​。我在 webview 中使用/加载 url,而不是 MPMoviePlayer。如果有人知道解决方案请分享。我需要在我的一个应用程序中实现它。

提前致谢。

I am trying to show YouTube videos on my application. How can I stop/pause the playing movie player after a particular amount of time. I am using/loding the url in webview rather than MPMoviePlayer. If anyone knows the solution please share. I need to implement it in one of my app.

Thanks in advance.

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

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

发布评论

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

评论(1

负佳期 2024-11-25 00:03:18

由于您无法访问实际的 MPMoviePlayerController,并且 UIWebView 之外不会显示任何通知,因此您将被锁定使用 javascript 代码 - 也就是说,停留在 UIWebView 的操作范围内。

我不知道如何以及是否能够使用 javascript 完全实现这些事情。

As you will not get any access to the actual MPMoviePlayerController and since no notifications will be visible outside the UIWebView, you will be locked into using javascript code - that is, stay within the UIWebView scope of actions.

How and if such things are exactly implemented/able using javascript, I do not know.

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