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

Video stalling on chrome

Open flexicious opened this issue 7 years ago • 8 comments

Description

Briefly describe the issue. Video seems to stall after a few seconds on chrome. Works fine in FF and IE

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.

  1. Load the test case
  2. Click the play button 3.

Results

Video stalls mid way

Expected

Video should play all the way through the end

Actual

Video stalls mid way

Error output

If there are any errors at all, please include them here.

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

latest

browsers

chrome

OSes

windows

plugins

none

Below is the test case: videotest.html.txt

flexicious avatar Jun 25 '19 00:06 flexicious

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Jun 25 '19 00:06 welcome[bot]

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>videojs-contrib-hls embed</title>
 <link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
</head>
<body>
 <h1>Video.js Example Embed</h1>

 <video-js id="my_video_1" class="vjs-default-skin" controls preload="auto" width="640" height="268">
   <source src="http://wowza.montessorirx.com:1935/vod/smil:06Order_1Mb.smil/playlist.m3u8" type="application/x-mpegURL">
 </video-js>
 
 <script src="https://unpkg.com/video.js/dist/video.js"></script>
 <script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>
 
 <script>
   var player = videojs('my_video_1');
 </script>
 
</body>
</html>

flexicious avatar Jun 25 '19 00:06 flexicious

This is super weird. I can confirm that it works in Firefox and Safari but not in Chrome. I've also reproduced this behavior with Shaka player and hls.js.

gkatsev avatar Jun 25 '19 21:06 gkatsev

I have the same issue....

  1. Video is stalling on Chrome for the first segment.
  2. If I click "Replay" I have the same lags on the beginning.
  3. If I change the time manually to 0:00 and click "play" I don't have lags at all!

It happens only when I load the video first time or click "replay" Doesn't happen on Firefox

llioor avatar Jul 21 '19 18:07 llioor

This is likely related to our detection of non-idr keyframes: https://github.com/videojs/mux.js/issues/237.

gkatsev avatar Jul 26 '19 18:07 gkatsev

Not sure i understand. Is there a configuration setting i can use to change this behavior?

flexicious avatar Jul 26 '19 19:07 flexicious

The quick answer is that to get it working, you'll likely have to retranscode or wait till we have time to fix the linked issue.

gkatsev avatar Jul 26 '19 20:07 gkatsev

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 24 '19 20:09 stale[bot]