Bug 123901 - [GStreamer] Implement "id" property for in-band audio, text and video tracks
Summary: [GStreamer] Implement "id" property for in-band audio, text and video tracks
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-11-06 10:32 PST by Brendan Long
Modified: 2024-02-14 03:04 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brendan Long 2013-11-06 10:32:46 PST
TextTrack: http://www.w3.org/TR/html5/embedded-content-0.html#dom-texttrack-id

> The id attribute returns the track's identifier, if it has one, or the empty string otherwise. For tracks that correspond to track elements, the track's identifier is the value of the element's id attribute, if any. For in-band tracks, the track's identifier is specified by the media resource. If the media resource is in a format that supports the Media Fragments URI fragment identifier syntax, the identifier returned for a particular track must be the same identifier that would enable the track if used as the name of a track in the track dimension of such a fragment identifier.

AudioTrack and VideoTrack: http://www.w3.org/TR/html5/embedded-content-0.html#dom-audiotrack-id

> The AudioTrack.id and VideoTrack.id attributes must return the identifier of the track, if it has one, or the empty string otherwise. If the media resource is in a format that supports the Media Fragments URI fragment identifier syntax, the identifier returned for a particular track must be the same identifier that would enable the track if used as the name of a track in the track dimension of such a fragment identifier.

The only example given is that for Ogg Skeleton, the "id" is the name:

https://wiki.xiph.org/SkeletonHeaders#Name

I'm planning to implement this as:

  * Matroska / WebM: TrackUID
  * MPEG-TS: PID
  * Ogg (without Skeleton): Stream serial number

Unfortunately this needs some work on the GStreamer side to make that information available:

https://bugzilla.gnome.org/show_bug.cgi?id=711522
Comment 1 Philippe Normand 2024-02-12 06:11:38 PST
Pull request: https://github.com/WebKit/WebKit/pull/24248
Comment 2 EWS 2024-02-14 03:03:58 PST
Committed 274623@main (cb24c51631e8): <https://commits.webkit.org/274623@main>

Reviewed commits have been landed. Closing PR #24248 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2024-02-14 03:04:14 PST
<rdar://problem/122939833>