mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Add VP8, VP9 and AV1 support to MP4 demuxer
This commit is contained in:
@@ -203,6 +203,8 @@ async function runAudioIterator() {
|
||||
}
|
||||
|
||||
function formatSeconds(seconds) {
|
||||
seconds = Math.round(seconds * 1000) / 1000; // Round to milliseconds
|
||||
|
||||
const minutes = Math.floor(seconds / 60);
|
||||
const remainingSeconds = Math.floor(seconds % 60);
|
||||
return `${minutes}:${remainingSeconds.toString().padStart(2, '0')}.${Math.floor(1000 * seconds % 1000).toString().padStart(3, '0')}`;
|
||||
|
||||
Reference in New Issue
Block a user