Skip to content

Commit

Permalink
Show audio track labels (#947)
Browse files Browse the repository at this point in the history
* fix: add label to audio track options.

* style: whitespace revert to spaces.

* style: undo formatting from ???.

* style: empty line at eof.
  • Loading branch information
crhallberg committed Jan 17, 2024
1 parent d74e34d commit 58793bb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export class MediaElementCenterPanel extends CenterPanel<
canvas.getRenderings().forEach((rendering: Rendering) => {
if (this.isTypeMedia(rendering)) {
sources.push({
label: rendering.getLabel().getValue() ?? rendering.getFormat().toString(),
type: rendering.getFormat().toString(),
src: rendering.id,
});
Expand Down

1 comment on commit 58793bb

@vercel
Copy link

@vercel vercel bot commented on 58793bb Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.