如何使用时间滑块操纵嵌入式播放器?

发布于 2024-10-08 11:50:58 字数 412 浏览 10 评论 0原文

我现在使用嵌入式 Windows Media Player(教程),我可以使用时间滑块进行操作通过 JavaScript。但后来我发现了 jQuery 的 Jlembed 插件,并认为它解决了我所有的问题,因为 但在我花了几个小时进行设置后,

我发现它没有像 setCurrentTimegetCurrentTime 这样的功能,而这些功能对我来说是最重要的项目类型。

有没有办法用 Jlembed 实现这个功能?

I am now using an embedded Windows Media Player (tutorial) and I can manipulate with time slider through Javascript. But then I discovered the Jlembed plugin for jQuery and thought it solves all my problems because of the different platforms, etc.

But after I spent a few hours in setting things up I relized that it does not have functions like setCurrentTime or getCurrentTime and these functions are most important for my type of project.

Is there a way to achieve this functionallity with Jlembed?

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

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

发布评论

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

评论(2

秋凉 2024-10-15 11:50:58

据我所知,Windows Media Player 不支持您尝试通过其嵌入式播放器实现的交互类型。我没有为 Windows Media Player 包含任何 javascript 函数,因为它不是必需的。 jlEmbed 不会影响您使用 javascript 控制嵌入式播放器的能力。因此,如果 Windows Media Player 支持特定脚本,jlEmbed 也支持它。

如果有用于 WMP 的 javascript API,请指出我的方向,我将为它添加更好的支持,但我认为它不存在。然而,如果确实存在,jlEmbed 不会阻止您像通常那样编写脚本。

我花了很多时间在 YouTube 支持上,但这只是因为我不得不这样做。否则,控制 YouTube 播放器会更加困难,YouTube 播放器是网络上最流行且最广泛使用的媒体播放器。

只有一小部分用户实际上能够使用您的嵌入式 WMP 演示文稿。 YouTube 播放器与任何支持 Flash 的浏览器兼容。您最好创建一个自定义的“无铬”YouTube 播放器,而不是使用 WMP 进行演示。更好的选择是使用 Flash 来制作视频演示。

As far as I know, Windows Media Player does not support the type of interaction you're trying to achieve with it's embedded player. I did not include any javascript functions for Windows Media Player because it is not necessary. jlEmbed does not affect your ability to control the embedded player with javascript. So, if Windows Media Player supports a particular script, jlEmbed supports it also.

If there is a javascript API for WMP please point me in that direction and I will add better support for it, but I don't think it exists. However, if one does exist, jlEmbed will not prevent you from scripting as would normally be done.

I spent a great deal of time on the YouTube support, but only because I had to. Otherwise, it would have been much more difficult to control the YouTube player, which is the most popular and widely available media player on the web.

Only a small percentage of users will actually be able to use your embedded WMP presentation. The YouTube player is compatible with any browser that supports Flash. You would be better off creating a custom 'chromeless' YouTube player than using WMP for your presentation. An even better alternative would be to use Flash to make your video presentation.

心如狂蝶 2024-10-15 11:50:58

根据文档,以下函数可能会有所帮助:

  • jlembed_seekTo(playerId,秒,allowSeekAhead)
  • jlembed_getCurrentTime(playerId)

希望有帮助!

According to the documentation, the following functions exist that might help:

  • jlembed_seekTo(playerId, seconds, allowSeekAhead)
  • jlembed_getCurrentTime(playerId)

Hope that helps!

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