2

To save bandwidth, is it possible to buffer a video only if play button or some other button is clicked?

I basically want to open youtube pages or other embedded videos, only for seeing the comments or notes. I don't want to view the videos.

If I click on pause button, then the video still buffers to the end.

Currently, my mode is set to HTML5. Flash Player is quite slow, but if there is no solution for HTML5, I'll shift to Flash Player.

1 Answer 1

2

If you control the HTML and you are using the <video> tag, you can provide the attribute preload="none" which according to MDN means:

none: indicates that the video should not be preloaded

And, make sure that autoplay is not specified.

You could also not even build and insert the <video> tag until an appropriate click happens.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.