Implement a bit more of the "object" path when loading media

This commit is contained in:
Anthony Ramine 2017-10-10 11:01:49 +02:00
parent b7452f37d9
commit e3fb99dd59
2 changed files with 21 additions and 5 deletions

View file

@ -5,6 +5,7 @@
// https://html.spec.whatwg.org/multipage/#htmlmediaelement
enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
typedef /* (MediaStream or MediaSource or */ Blob /* ) */ MediaProvider;
[Abstract]
interface HTMLMediaElement : HTMLElement {
@ -13,7 +14,7 @@ interface HTMLMediaElement : HTMLElement {
// network state
[CEReactions] attribute DOMString src;
// attribute MediaProvider? srcObject;
attribute MediaProvider? srcObject;
readonly attribute DOMString currentSrc;
// [CEReactions] attribute DOMString crossOrigin;
const unsigned short NETWORK_EMPTY = 0;