HTMLMediaElement.idl 797 B

1234567891011121314151617181920212223242526272829
  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. // network state
  11. [Reflect, CEReactions] attribute DOMString src;
  12. const unsigned short NETWORK_EMPTY = 0;
  13. const unsigned short NETWORK_IDLE = 1;
  14. const unsigned short NETWORK_LOADING = 2;
  15. const unsigned short NETWORK_NO_SOURCE = 3;
  16. readonly attribute unsigned short networkState;
  17. [Reflect, CEReactions] attribute boolean autoplay;
  18. [Reflect, CEReactions] attribute boolean loop;
  19. [Reflect, CEReactions] attribute boolean controls;
  20. CanPlayTypeResult canPlayType(DOMString type);
  21. undefined load();
  22. undefined pause();
  23. };