video.js icon indicating copy to clipboard operation
video.js copied to clipboard

How can I detect the video is stuck and load fail?

Open etc1208 opened this issue 9 years ago • 6 comments

In my recent project, i use video.js to play video,include live and recorded video. Now I have a problem,I need to statistical video failure load for the first time,and how many times the video is stuck in every 2 minutes? I have try some ways, use events of video ,but i find my way is not accurate

etc1208 avatar Sep 01 '17 09:09 etc1208

你们的说的话,我听不懂

xunSweet avatar Sep 03 '17 11:09 xunSweet

If the video failed to load completely, you should get an error event with one of these types: http://docs.videojs.com/MediaError.html#.errorTypes If it's just taking a while to load you could get stalled event. Hope that helps.

gkatsev avatar Dec 01 '17 23:12 gkatsev

@gkatsev is there any event listener for video buffering? For example, in slow internet, video pauses and loads, I want a listener for such events.

apurvgandhwani avatar Apr 01 '20 12:04 apurvgandhwani

@apurvgandhwani maybe what you are looking for is waiting and canplay event?

TeresaHsieh avatar Apr 10 '20 07:04 TeresaHsieh

Are you foreigner?

------------------ 原始邮件 ------------------ 发件人: "Teresa Hsieh"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午3:24 收件人: "videojs/video.js"<[email protected]>; 抄送: "狼、吻~"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [videojs/video.js] How can I detect the video is stuck and load fail? (#4596)

@apurvgandhwani maybe what you are looking for is waiting and canplay event?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

xunSweet avatar Apr 10 '20 07:04 xunSweet

@apurvgandhwani maybe what you are looking for is waiting and canplay event?

Will it catch when the video is stuck because of say slow internet.

apurvgandhwani avatar Apr 10 '20 10:04 apurvgandhwani