https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9ee63dc2e8e8086b9e5e165b3ce09ac0580138d0 authored by Aryeh Gregor on 06 September 2017, 14:01:46 UTC
Rewrite document named property tests
Tip revision: 9ee63dc
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