This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16997 - Redesign mediaSourceURL mechanism to allow declarative syntax
Summary: Redesign mediaSourceURL mechanism to allow declarative syntax
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Media Source Extensions (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Adrian Bateman [MSFT]
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-08 18:02 UTC by Aaron Colwell (c)
Modified: 2012-07-17 21:59 UTC (History)
8 users (show)

See Also:


Attachments

Description Aaron Colwell (c) 2012-05-08 18:02:11 UTC
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.
Comment 1 Aaron Colwell (c) 2012-07-17 21:59:36 UTC
This bug is no longer relevant because the new object-oriented API(https://www.w3.org/Bugs/Public/show_bug.cgi?id=17082) uses URL.createObjectURL() to create MediaSource URL's. This makes it impossible to use these URLs in declarative syntax.