JWplayer: Display image when no video detected

荒凉一梦 提交于 2019-12-22 11:26:08

问题


I have a website where I show a stream to my visitors using the jwplayer.

I want to know if there is a way to replace the video with an image in jwplayer when the stream is out instead of that error message?


回答1:


Absolutely.

http://support.jwplayer.com/customer/portal/articles/1442607-example-a-custom-error-message

jwplayer().onError(function(){
​jwplayer().load({file:"http://www.com/errorfile.mp4",image:"http://www.com/errorfile.jpg"});
jwplayer().play();
});


来源:https://stackoverflow.com/questions/29633386/jwplayer-display-image-when-no-video-detected

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