php - 如何在jwplayer中停止视频onclick功能

标签 php javascript jquery

Javascript:

jwplayer("mvcontainer").setup({
            flashplayer: "https://media.dreamhost.com/mp5/player.swf",
            file: "video_file.flv",
            icons: true,
            autostart: true,
            controlbar: "bottom",
            height: 406,
            width: 628
         });

HTML:

<div id="mvcontainer"></div>

上面的代码用于在我的站点中播放 flv 视频。此编码工作正常,但我遇到了问题。我删除了视频,然后替换了同一页面中的一些内容。视频没有停止,它一直在后台播放。

我该如何阻止它?

最佳答案

尝试使用这个

jwplayer().remove();

jwplayer().stop();

JW Player JS API Documentation

关于php - 如何在jwplayer中停止视频onclick功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17407729/

相关文章:

php - 与我的菜单作斗争 - 为什么这个坏了? - <li> php 被打印出来,没有被执行?

javascript - fatal error : Function name must be a string in/home/User/public_html/website/index. php 第 7 行

php - 从 Magento 中的脚本保存具有分层定价的产品模型时的奇怪行为

jquery - 多选无法显示 jQuery 验证消息

jquery - 如何使用 jMenu jQuery 的插件更改字体系列

php - HTML/PHP 输入字段 - 如果设置了 $_POST,value = something,否则使用占位符?

javascript - 如何通过从外部json文件angularjs获取路径来动态加载html模板

javascript - 从 span 元素数组获取同级复选框输入

javascript - Bootstrap Modal 不起作用(单击按钮时没有任何反应)

JavaScript - 使用 PHP 发布并运行另一个 PHP