https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1553cb43af08443e2d04a01bd6925db002234174 authored by Ian Clelland on 28 September 2017, 19:28:02 UTC
Add Web Bluetooth as a policy-controlled feature
Tip revision: 1553cb4
remoteplayback.idl
enum RemotePlaybackState {
    "connecting",
    "connected",
    "disconnected"
};

callback RemotePlaybackAvailabilityCallback = void(boolean available);

interface RemotePlayback : EventTarget {
    readonly attribute RemotePlaybackState state;
    attribute EventHandler onconnecting;
    attribute EventHandler onconnect;
    attribute EventHandler ondisconnect;

    Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
    Promise<void> cancelWatchAvailability(optional long id);
    Promise<void> prompt();
};

partial interface HTMLMediaElement {
    readonly attribute RemotePlayback remote;
    attribute boolean disableRemotePlayback;
};
back to top