VideoJS doesn´t play after pause RTMP live stream

拟墨画扇 提交于 2019-12-03 15:41:43

Ok so i found a solution. Instead of stripping all of the play events form the player you actually just need to edit the flash play event inside of video.dev.js on line 7337 (in version 4.11.4 i think). this is the line that says:

vjs.Flash.prototype.play = function(){
    this.el_.vjs_play();
};

it should be changed to say:

vjs.Flash.prototype.play = function(){
    this.el_.vjs_load();
    this.el_.vjs_play();
};

so that the load event is called before the play event.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!