Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to generate a bitstream in JS for a HTML5 video source?

I'd like to dynamically generate a bitstream in JavaScript that is e.g. a large OGG-video. Is it possible to tell the browser to ask a JavaScript function for the bitstream instead of making a HTTP-GET-Request to some location?

The only possible way to feed data to the video-tag, that I found, would contain data:-URLs. But that requires the whole video to be encoded in the document.

This is a bad solution for large videos, that would normally be streamed. AFAIK you can't add more data dynamically to data-URLs.

Does anyone know if this is possible somehow?

like image 703
anty Avatar asked Nov 13 '22 08:11

anty


1 Answers

I don't know if is possible with Javascript, but you can probably do something like that with a Java or Javascript (?) player, like Cortado.

http://www.flumotion.net/cortado/

like image 129
Tei Avatar answered Nov 16 '22 04:11

Tei