mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Code review fixes
This commit is contained in:
@@ -117,11 +117,14 @@ const input = createInputFrom(file, ALL_FORMATS);
|
||||
const duration = await input.computeDuration(); // in seconds
|
||||
const videoTrack = await input.getPrimaryVideoTrack();
|
||||
const audioTrack = await input.getPrimaryAudioTrack();
|
||||
|
||||
const displayWidth = await videoTrack.getDisplayWidth();
|
||||
const displayHeight = await videoTrack.getDisplayHeight();
|
||||
const { rotation } = videoTrack;
|
||||
const rotation = await videoTrack.getRotation();
|
||||
|
||||
const sampleRate = await audioTrack.getSampleRate();
|
||||
const numberOfChannels = await audioTrack.getNumberOfChannels();
|
||||
|
||||
const { title, artist, album } = await input.getMetadataTags();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user