[Bug 16997] New: Redesign mediaSourceURL mechanism to allow declarative syntax

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16997

           Summary: Redesign mediaSourceURL mechanism to allow declarative
                    syntax
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Source Extensions
        AssignedTo: adrianba@microsoft.com
        ReportedBy: acolwell@chromium.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Enabling the Media Source API requires assigning the mediaSourceURL property to
the src attribute. This requires running JavaScript to enable the media source
functionality. 

It would be nice to specify a Media Source specific URL scheme so that a more
declarative approach could be used. This would enable us to reuse the fallback
behavior already supported by the <source>.

For example:

<video src='x-media-source:abcd' type='video/webm; codecs="vorbis,vp8"' />

<video>
  <source src='x-media-source:abcd' type='video/webm; codecs="vorbis,vp8"' />
  <source src="x-media-source:efg" type="video/mp4" />
  <source src='video.webm' type='video/webm; codecs="vorbis,vp8"' />
  <source src="video.mp4" type="video/mp4" />
</video>


The path for the x-media-source URL is necessary to differentiate which source
actually gets selected. The path could also be used to specify an initial
SourceID. This would have the added benefit of avoiding the need for an
sourceAddId() call in the common case of only needing a single SourceID.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 8 May 2012 18:13:45 UTC