HTMLMediaElement.idl 543 B

1234567891011121314151617181920212223
  1. #import <HTML/HTMLElement.idl>
  2. enum CanPlayTypeResult {
  3. "",
  4. "maybe",
  5. "probably"
  6. };
  7. // https://html.spec.whatwg.org/multipage/media.html#htmlmediaelement
  8. [Exposed=Window]
  9. interface HTMLMediaElement : HTMLElement {
  10. [Reflect, CEReactions] attribute DOMString src;
  11. [Reflect, CEReactions] attribute boolean autoplay;
  12. [Reflect, CEReactions] attribute boolean loop;
  13. [Reflect, CEReactions] attribute boolean controls;
  14. CanPlayTypeResult canPlayType(DOMString type);
  15. undefined load();
  16. undefined pause();
  17. };