videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.49k stars 422 forks source link

videoJS still gets playlist although I call pause() #1380

Closed prdcvchuvanthang closed 1 year ago

prdcvchuvanthang commented 1 year ago

Description

I have some HTML5 video tags on the same page. When I try to pause the video, the video works as expected however I discover that the videoJS still running to get the playlist from my .m3u8 (https://example.m3u8).

Sources

N/A.

Steps to reproduce

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

  1. Init player with videojs(id, options);
  2. Play video
  3. Pause the video by call window.player.pause();

Results

Expected

  1. Video pause and stop loading the playlist

Error output

  1. Still loading the playlist

Additional Information

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

videojs-http-streaming version

v3.1.0

videojs version

v5.15.0

Browsers

Chrome *

Platforms

Windows 10, Android *

Other Plugins

N/A *

Other JavaScript

N/A *

video-archivist-bot commented 1 year 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 1 year 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.

misteroneill commented 1 year ago

Buffering doesn't have any relationship to the playing or paused state of the player. This is expected behavior.

prdcvchuvanthang commented 1 year ago

@misteroneill Thanks for your answer. Close this topic here.