视频完成后删除
我希望在页面加载时启动视频,但在视频完成后隐藏视频(可能删除图层)。几年前,我在一个瑜伽网站上看到过,当页面加载时,来自所有者的视频消息出现在内容上方,但在视频完成后消失。甚至不知道从哪里开始寻找这样的东西。
I am looking to have a video start when a page loads, but once the video has completed, to hide the video (remove the layer possibly). I saw it on a yoga site a few years ago where a video message from the owner appeared over top the content when the page loaded but then dissapeared after the video was done. Not even sure where to begin looking for something like this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是需要在玩家层面处理的事情。许多 Flash 播放器或框架允许您注册活动。一项活动可能会通过视频完成。首先让这个工作起来。您可能无法通过 javascript 执行此操作。例如,adobe 的 strobe 播放器要求您编写一个 swf 插件,该插件将加载到 flash 播放器中。不是微不足道的。
注册后,您可以通过执行一些 javascript 函数轻松关闭窗口。
如果您还有其他问题,请告诉我。
This is something that needs to be handled at the player level. Many flash players or frameworks allow you to register for an event. One event might be on video complete. First get this working. You may not be able to do this from javascript. For example, adobe's strobe player requires you to write a swf plugin which would be loaded in the flash player. Not trivial.
After you have registered it, you can easily close the window by executing some javascript function.
Let me know if you have more questions.