We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ac971 commit f1a81ffCopy full SHA for f1a81ff
blog/25-11-15/ffmpeg-in-the-browser/ex/mp4box/ex.html
@@ -8,11 +8,19 @@
8
9
var buf = await input.files[0].arrayBuffer();
10
buf.fileStart = 0;
11
+ var mp4 = MP4Box.createFile();
12
+ mp4.onReady = diplsay;
13
mp4.appendBuffer(buf);
14
15
}//onchange
16
- var mp4 = MP4Box.createFile();
- mp4.onReady = info=>document.body.append(info.mime+' , '+MediaSource.isTypeSupported(info.mime));
17
+
18
+ function display(info){
19
20
+ var div = document.createElement('div');
21
+ div.append(info.mime+' , '+MediaSource.isTypeSupported(info.mime));
22
+ document.body.append(div);
23
24
+ }//display
25
26
</script>
0 commit comments