mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Add language getter to InputTrack
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
const videoTrack = await input.getPrimaryVideoTrack();
|
||||
const sink = new Metamuxer.VideoFrameSink(videoTrack);
|
||||
|
||||
console.log(await videoTrack.getLanguageCode());
|
||||
|
||||
for await (const thing of sink.framesAtTimestamps([0.2, 1, 2, 423])) {
|
||||
console.log(thing)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user