当我们使用WebView流式传输视频时如何获得MoviePlayer的控制权
我正在尝试在我的应用程序上显示 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您无法访问实际的 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.