videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.51k stars 7.4k forks source link

Rewind and fast forward not working after ~1h of the video clip #7766

Open mishogv opened 2 years ago

mishogv commented 2 years ago

Description

Hi, I found a bug when I tried to fast forward the video with the format 'application/x-mpegURL' - 'hls'. Request: https://streaming2.softuni.bg/inspiration/index-1652889600-12600.m3u8?type=hls&media_request=dvr_session-hls_mbr_playlist-1652889600-12600&token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080&remote=217.174.159.100 (The HLS stream is not open so the stream will not run.) Response:

EXTM3U

EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=2710000,BANDWIDTH=3380000,RESOLUTION=1920x1080,FRAME-RATE=30.000,CODECS="avc1.640028,mp4a.40

.2",CLOSED-CAPTIONS=NONE tracks-v1a1/index-1652889600-12600.m3u8?token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080

TESTED AT: https://videojs-http-streaming.netlify.app/?debug=true&autoplay=false&muted=false&fluid=false&minified=false&sync-workers=false&liveui=true&llhls=false&url=https%3A%2F%2Fstreaming2.softuni.bg%2Finspiration%2Findex-1652889600-12600.m3u8%3Ftype%3Dhls%26media_request%3Ddvr_session-hls_mbr_playlist-1652889600-12600%26token%3Dcc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080%26remote%3D217.174.159.100&type=application%2Fx-mpegURL&keysystems=&buffer-water=false&exact-manifest-timings=false&pixel-diff-selector=false&network-info=false&dts-offset=false&override-native=true&preload=auto&mirror-source=true

videojs-bugs-1

Reduced test case

https://videojs-http-streaming.netlify.app/?debug=true&autoplay=false&muted=false&fluid=false&minified=false&sync-workers=false&liveui=true&llhls=false&url=https%3A%2F%2Fstreaming2.softuni.bg%2Finspiration%2Findex-1652889600-12600.m3u8%3Ftype%3Dhls%26media_request%3Ddvr_session-hls_mbr_playlist-1652889600-12600%26token%3Dcc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080%26remote%3D217.174.159.100&type=application%2Fx-mpegURL&keysystems=&buffer-water=false&exact-manifest-timings=false&pixel-diff-selector=false&network-info=false&dts-offset=false&override-native=true&preload=auto&mirror-source=true

Steps to reproduce

  1. Load video type hls(bigger than 1h and 30 minutes)
  2. Fast forward 1 hour and more (for example fast forward it to 1h and 26 minutes)
  3. Observe the console and the player error

Errors

VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: audio - start - 4196.456488888889 video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: video - start - 4196.5198222222225 video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: video - end - 4201.518822222222 video.core.js:249 VIDEOJS: DEBUG: VHS: SourceUpdater > Appending segment 1767's 1566845 bytes to videoBuffer video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: audio - end - 4201.469822222222 video.core.js:249 VIDEOJS: DEBUG: VHS: SourceUpdater > Appending segment 1767's 75618 bytes to audioBuffer video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > WAITING -> APPENDING video.core.js:249 VIDEOJS: DEBUG: VHS: PlaybackWatcher > found #9 main appends that did not increase buffer (possible stalled download) {playlistId: '0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc…E578FDA268BD085DD5991A1926F-1653058180-1653029080', buffered: Array(0)}buffered: []playlistId: "0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080"[[Prototype]]: Object video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > APPENDING -> READY video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > Appended segment [1767/2314] segment start/end [-86543.15068888888 => -86538.15168888889] startOfSegment [8900.567000000003] duration [5] timeline [0] selected by [getMediaInfoForTime (currentTime 8901.08595)] playlist [0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080] video.core.js:249 VIDEOJS: DEBUG: VHS: SyncController > syncPoint for [segmentIndex: 0] chosen with strategy [VOD]: [time:0, segmentIndex:0] video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > bad segment segment [1767/2314] segment start/end [-86543.15068888888 => -86538.15168888889] startOfSegment [8900.567000000003] duration [5] timeline [0] selected by [getMediaInfoForTime (currentTime 8901.08595)] playlist [0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080] video.core.js:249 VIDEOJS: DEBUG: VHS: SyncController > syncPoint for [time: 8901.08595] chosen with strategy [Segment]: [time:2981.967000000004, segmentIndex:587] video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > READY -> WAITING video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > Requesting segment [1767/2314] segment start/end [-86543.15068888888 => -86538.15168888889] startOfSegment [8900.567000000003] duration [5] timeline [0] selected by [getMediaInfoForTime (currentTime 8901.08595)] playlist [0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc1938375d1825ab7feb46b4b79c3a16c99b0189-FF038E578FDA268BD085DD5991A1926F-1653058180-1653029080] video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: audio - start - 4196.456488888889 video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: video - start - 4196.5198222222225 video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: video - end - 4201.518822222222 video.core.js:249 VIDEOJS: DEBUG: VHS: SourceUpdater > Appending segment 1767's 1566845 bytes to videoBuffer video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > timinginfo: audio - end - 4201.469822222222 video.core.js:249 VIDEOJS: DEBUG: VHS: SourceUpdater > Appending segment 1767's 75618 bytes to audioBuffer video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > WAITING -> APPENDING video.core.js:249 VIDEOJS: DEBUG: VHS: PlaybackWatcher > found #10 main appends that did not increase buffer (possible stalled download) {playlistId: '0-tracks-v1a1/index-1652889600-12600.m3u8?token=cc…E578FDA268BD085DD5991A1926F-1653058180-1653029080', buffered: Array(0)} video.core.js:249 VIDEOJS: DEBUG: VHS: PlaybackWatcher > main loader stalled download exclusion video.core.js:249 VIDEOJS: DEBUG: VHS: PlaybackWatcher > resetting possible stalled download count for main loader video.core.js:249 VIDEOJS: DEBUG: VHS: PlaylistSelector > could not choose a playlist with options {bandwidth: 308182525, width: 640, height: 264, limitRenditionByPlayerDimensions: true} video.core.js:249 VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No available working or supported playlists. MediaError {code: 3, message: 'Playback cannot continue. No available working or supported playlists.'} video.core.js:249 VIDEOJS: DEBUG: VHS: SegmentLoader[main] > APPENDING -> READY

What version of Video.js are you using?

7.15.4, 7.11.5

Video.js plugins used.

live-ui

What browser(s) including version(s) does this occur with?

Chrome, Mozilla

What OS(es) and version(s) does this occur with?

Windows 10/11

video-archivist-bot commented 2 years ago

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

welcome[bot] commented 2 years ago

👋 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.

mishogv commented 2 years ago

The bug is reproducible after version 7.10.0 It's fine with 7.10.0