What kind of URL returned by getURL?
createObjectURL can return a relative short URL which will reduce the web page size, like below
550e8400-e29b-41d4-a716-446655440000
Does getURL will return the same kind URL? If getURl return URL using similar like readAsDataURL,it will add more size to the web page.
What’s more it seems from specification, MediaSource is a part of Media Element, and we have mediaSourceurl attribute in speci.
So why we need another getURL method?
If using MediaSource, do you mean, MediaSource is separate with media element, that we can not use MediaSourceUrl attribute?
发件人: David Dorwin [mailto:ddorwin@google.com]
发送时间: 2012年6月17日 11:08
收件人: Aaron Colwell
抄送: public-html-media@w3.org
主题: Re: [MSE] Moving Media Source methods into a separate object.
Associating the MediaSource with a <video> would be similar to LocalMediaStream.
1. Create a MediaSource object.
2. Use createObjectURL() to get a blob URL for the MediaSource object.
Does this imply overloading createObjectURL() to accept a MediaSource object?
A new URL is created every time createObjectURL() is called, so one might have multiple URLs pointing to the same MediaSource object. Does this pose any problems?
Does it make sense to just add getURL() to MediaSource instead?
3. Assign the blob URL to HTMLMediaElement.src.
What happens if the URL is associated with multiple HTMLMediaElements? Sharing data might be nice, but what are the implications for implementations?