jini
jini

Reputation: 373

Can I receive some data from the entire video and selectively control the rest?

I want the user to receive some data from the entire video and selectively control the rest.

Is there a way for the browser to handle only the specific buffering of the full video?

In other words, is it possible to limit the range of media sources that the browser will buffer in the entire video?


Additional explanation

I request video / mp4 type video data at javascript.
And it is inserted into the browser as a <video> tag.

At this point, I wonder if there is a way to limit the amount of buffer that the browser can hold.
In other words, I would like to know if there is a way to limit the buffer capacity that is stored in the browser at one time, and to stop the playback of the video and the data loading when the capacity is exceeded.

I found 'HTMLMediaElement.mozFrameBufferLength'.
However, this is already a deprecated property, meaning 'the amount of storage at one time'.

Upvotes: 0

Views: 54

Answers (1)

szatmary
szatmary

Reputation: 31101

Not with a normal mp4, no. You can control what is downloaded using fragmented mp4 and media source extensions however.

Upvotes: 1

Related Questions