You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.
I working in node-webkit so I have access to DOM and Node.js.
I want to be able to get ts chunks from website then covert to mp4 and output the data as a Uint8Array to use with the new MediaSource API
example of what it would look like
var ms = new MediaSource();
var video = document.getElementById('stream')
video.src = window.URL.createObjectURL(ms);
ms.addEventListener('sourceopen', function(e) {
sourceBuffer = ms.addSourceBuffer(['video/mp4; codecs="avc1.42E01E,mp4a.40.2"']);
mpegts_to_mp4('http://example.com/src.ts', function (err, array) {
sourceBuffer.appendBuffer(array); //must be Uint8Array
});
}, false);
The text was updated successfully, but these errors were encountered:
I working in node-webkit so I have access to DOM and Node.js.
I want to be able to get ts chunks from website then covert to mp4 and output the data as a Uint8Array to use with the new MediaSource API
example of what it would look like
The text was updated successfully, but these errors were encountered: