用于嵌入式 QuickTime 电影播放器的自定义控件以及下一个和上一个按钮
我目前正在使用 ASP.NET 开发一个网站项目,该项目托管多种不同语言的视频。它们包含在一系列 12 个视频中,因此我希望能够在网页上嵌入一个视频播放器,然后能够单击“下一个”按钮,然后播放列表中的下一个视频。我还希望能够使用上一个按钮来执行保存操作。还有一种方法可以使用自定义控件来播放和暂停视频吗?我对此做了一些研究,并在 Javascript 中找到了一些答案,但后来我查看了苹果文档,它说由于安全原因,你不能再使用它。
有谁对这些问题有任何解决方案吗?最好使用 asp.net C#,但任何方法都会有帮助。谢谢!
I'm currently working on a website project in asp.net that hosts videos in many different languages. They are in a series of 12 videos so I'd like to be able to embed one video player on the web page and then be able to click a next button and the next video in the list would play. I'd also like to be able to do the save thing with a previous button as well. Also is there a way to play and pause the video with custom controls? I did some research on it and I found some answers in Javascript but then I went to the apple documentation and it said you can no longer use it due to security reasons.
Does anyone have any solutions for any of these? Preferably in asp.net C# but anything will help. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用苹果网站上的代码应该可以做到这一点。事实上,我只是尝试使用普通的锚点超链接来播放和暂停电影。工作正常。没有尝试加载新网址,但它也应该可以工作。安全限制仅适用于从 QuickTime 影片调用 javascript。 (顺便说一句,仍然可以使用 iframe 来实现)。
This should be doable using the code on apple's website. In fact, I just tried it using ordinary anchor hyperlinks to play and pause a movie. Works fine. Didn't try loading a new url, but it should work too. The security restriction only applies to calling javascript from a QuickTime movie. (Which btw can still be achived using an iframe).