mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Copy track name in Conversion API
This commit is contained in:
@@ -811,6 +811,7 @@ export class Conversion {
|
|||||||
this.output.addVideoTrack(videoSource, {
|
this.output.addVideoTrack(videoSource, {
|
||||||
frameRate: trackOptions.frameRate,
|
frameRate: trackOptions.frameRate,
|
||||||
languageCode: track.languageCode,
|
languageCode: track.languageCode,
|
||||||
|
name: track.name ?? undefined,
|
||||||
rotation: needsRerender ? 0 : totalRotation, // Rerendering will bake the rotation into the output
|
rotation: needsRerender ? 0 : totalRotation, // Rerendering will bake the rotation into the output
|
||||||
});
|
});
|
||||||
this._addedCounts.video++;
|
this._addedCounts.video++;
|
||||||
@@ -980,6 +981,7 @@ export class Conversion {
|
|||||||
|
|
||||||
this.output.addAudioTrack(audioSource, {
|
this.output.addAudioTrack(audioSource, {
|
||||||
languageCode: track.languageCode,
|
languageCode: track.languageCode,
|
||||||
|
name: track.name ?? undefined,
|
||||||
});
|
});
|
||||||
this._addedCounts.audio++;
|
this._addedCounts.audio++;
|
||||||
this._totalTrackCount++;
|
this._totalTrackCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user