媒体播放器 URL 选项
在线打开视频时有没有办法通过 URL 传递开始时间? 例如:
http://www.example.com/newvideo.wmv?starttime=00:33:34.0
我见过使用 Javascript 或制作 ASX 文件的不同方法,以便对其进行一些控制,但我只需要在开始播放时跳转到文件中的某个时间。 这些视频很长,我的目标是制作一个目录,人们只需单击他们想要查看的部分旁边的链接,这就是视频开始的地方。
谢谢!
Is there a way to pass a start time via URL when opening a video online?
For example:
http://www.example.com/newvideo.wmv?starttime=00:33:34.0
I've seen different methods for using Javascript or making ASX files in order to give some control over it but I just need to jump to a certain time in the file when it starts playing. The videos are long and my goal is to make a table of contents where someone can just click a link next to the section they want to view and that's where the video begins.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,这是不可能的,这似乎表明事实确实如此......
For as far as I know this is not possible and this seems to suggest that this is indeed the case....
IE还有另一种语言称为“时间”
页面需要像VML一样在样式标签中编写一些声明
但与原始的 Windows Media Player 相比,您可以使用非常简单的控件来设计自己的风格。
您可以使用 javascipt 编写页面,而不是指向 http url 的链接,
播放器标签是这样的
你需要使用的方法---- bMedia.seekActiveTime(x); //定位元素活动时间轴上的指定点并从该点开始播放。
在此处了解更多信息 MSDN
Windows Media Player 是在这些脚本上运行的程序
IE has another language referred to as "time"
The page needs to be written with some declarations in the style tag just like VML
But very simple with controls you can style yourself, rather than the raw Windows Media Player.
Instead of a link to http url you could write the page with javascipt,
the player tag is like this
<t:media id="bMedia" volume=50 timeAction="visibility" src="xva.wmv" onend="doSomething()" onmediacomplete="doSomethingElse()" />
The method you need to use---- bMedia.seekActiveTime(x); //Locates a specified point on the element's active timeline and begins playing from that point.
learn more here MSDN
Windows Media Player is the program running on these scripts