mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
8.88k stars 22.42k forks source link

Unclear example of MediaStream: getTrackById() method #33310

Open Akindin opened 3 weeks ago

Akindin commented 3 weeks ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTrackById

What specific section or headline is this issue about?

Example

What information was incorrect, unhelpful, or incomplete?

Example doesn't explain how it can be used and what is the meaning of those magic strings. It is stated that this example enables commentary track, but as I know it uses TextTrack interface, not MediaStreamTrack

What did you expect to see?

Example that explains what is going on in it

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/api/mediastream/gettrackbyid` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTrackById * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/mediastream/gettrackbyid/index.md * Last commit: https://github.com/mdn/content/commit/ac67e6f05d337e52e39f02a978b8c00bc43d583b * Document last modified: 2023-12-25T07:08:46.000Z