remote-playback.idl (916B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Remote Playback API (https://w3c.github.io/remote-playback/) 5 6 [Exposed=Window] 7 interface RemotePlayback : EventTarget { 8 Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback); 9 Promise<undefined> cancelWatchAvailability(optional long id); 10 11 readonly attribute RemotePlaybackState state; 12 13 attribute EventHandler onconnecting; 14 attribute EventHandler onconnect; 15 attribute EventHandler ondisconnect; 16 17 Promise<undefined> prompt(); 18 }; 19 20 enum RemotePlaybackState { 21 "connecting", 22 "connected", 23 "disconnected" 24 }; 25 26 callback RemotePlaybackAvailabilityCallback = undefined(boolean available); 27 28 partial interface HTMLMediaElement { 29 [SameObject] readonly attribute RemotePlayback remote; 30 31 [CEReactions] attribute boolean disableRemotePlayback; 32 };