w3c / tvcontrol-api

TV Control API specification - https://w3c.github.io/tvcontrol-api/
10 stars 11 forks source link

Interface to "applications" / data components #29

Open chrisn opened 8 years ago

chrisn commented 8 years ago

The radio API change introduced a TVApplication interface, which can be used to access broadcast application specific data such as images (DAB Slideshow) and text messages (Dynamic Label).

Following on from a comment I made in the PR:

Accessing this data requires allocation of decoding resources in the implementation, so I think these should be exposed through interfaces more closely related to the TVMediaStream rather than the TVChannel (which is more about channel-level metadata)?

Since slideshow images and text labels are intended to be synchronised to the playing media, we could possibly expose these through HTMLTrackElement and TextTrackCue. What interface should we use to support images? See this discussion regarding DataCue.

See also Sourcing In-band Media Resource Tracks from Media Containers into HTML.

If we take this approach, would we still want to provide metadata about available applications through TVChannel? Another issue is that "application" is a quite overloaded term, so if we want to do this, we should find another name, e.g., Alex's suggestion TVDataComponent.