We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1cc37c commit 03dbe26Copy full SHA for 03dbe26
blog/25-11-15/ffmpeg-in-the-browser/ex/mp4box/ex.html
@@ -0,0 +1,12 @@
1
+
2
+<input id=input type=file><br><br>
3
+<script type=module>
4
+ import MP4Box from 'https://cdn.jsdelivr.net/npm/mp4box/+esm';
5
+ input.onchange = async e=>{
6
+ var buf = await input.files[0].arrayBuffer();
7
+ buf.fileStart = 0;
8
+ mp4.appendBuffer(buf);
9
+ }//onchange
10
+ var mp4 = MP4Box.createFile();
11
+ mp4.onReady = info=>document.body.append(info.mime+' , '+MediaSource.isTypeSupported(info.mime));
12
+</script>
0 commit comments