video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.92k stars 2.58k forks source link

Prevent downloading of a stream #2195

Closed Sagher closed 3 years ago

Sagher commented 5 years ago

What do you want to do with Hls.js? While streaming a video, the IDM grabs the ts file and download it completely, we are using wowza streaming engine and also enabled the secureToken technique still no progress.

What have you tried so far? We are trying to split a movie stream into multiple parts, for example, if a movie is of length 120 mins we want to divide it into 20 halves, each link will have a 10 mins time to live using secureToken, Hence if IDM grabs the details, it will not be able to completely download the movie as the source link will be expired after the duration. Issue: When we switch the source it starts new buffering and take some time to load, which will be effecting the service performance.

Any other options or details will be highly appreciated.

michaelcunningham19 commented 5 years ago

Hey @Sagher

Issue: When we switch the source it starts new buffering and take some time to load, which will be effecting the service performance.

You mentioned the content was divided into 20 parts - all 10 minutes in length. If hls.js is downloading a 10 minute long segment, I can see why that may be effecting video start performance

Is that what's happening? If so, you could have shorter segments