在MediaElement.js中停止而不是在视频结尾处倒带 [英] Stopping instead of rewinding at the end of a video in MediaElement.js

查看:106
本文介绍了在MediaElement.js中停止而不是在视频结尾处倒带的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在视频结尾处停止MediaElement.js播放器。我想知道如何在视频结束时停止mediaelement.js播放器。我希望保持最后一帧并且不倒回以显示现在的第一帧。

I'm wondering how to stop the MediaElement.js player at the end of the video. I wondered how to stop the mediaelement.js player at the end of a video. I was hoping to hold on the last frame and not rewind to show the first frame as it does now.

是否可以改变这种行为?

Is it possible to change this behaviour?

推荐答案

我为这个问题写了一个修复程序,John在2.10.2版本中合并。
现在有一个选项autoRewind可以设置为false以防止玩家返回到开头。
没有添加eventlistener,也不再需要删除它。

I wrote a fix for this problem and John merged in version 2.10.2. There is now an option "autoRewind" that you can set to false to prevent the player from going back to the beginning. The eventlistener is not added and there is no more need to remove it.

$('video').mediaelementplayer({
    autoRewind: false
});

这篇关于在MediaElement.js中停止而不是在视频结尾处倒带的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆