mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update npm
This commit is contained in:
parent
8341712d58
commit
1bd85100b9
5320 changed files with 58396 additions and 344722 deletions
5
node_modules/mux.js/README.md
generated
vendored
5
node_modules/mux.js/README.md
generated
vendored
|
@ -283,6 +283,8 @@ Here we put all of this together in a very basic example player.
|
|||
data.set(segment.data, segment.initSegment.byteLength);
|
||||
console.log(muxjs.mp4.tools.inspect(data));
|
||||
sourceBuffer.appendBuffer(data);
|
||||
// reset the 'data' event listener to just append (moof/mdat) boxes to the Source Buffer
|
||||
transmuxer.off('data');
|
||||
})
|
||||
|
||||
fetch(segments.shift()).then((response)=>{
|
||||
|
@ -294,10 +296,9 @@ Here we put all of this together in a very basic example player.
|
|||
}
|
||||
|
||||
function appendNextSegment(){
|
||||
// reset the 'data' event listener to just append (moof/mdat) boxes to the Source Buffer
|
||||
transmuxer.off('data');
|
||||
transmuxer.on('data', (segment) =>{
|
||||
sourceBuffer.appendBuffer(new Uint8Array(segment.data));
|
||||
transmuxer.off('data');
|
||||
})
|
||||
|
||||
if (segments.length == 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue