Revision 699383b151a45f102159d95862096a10528c865f authored by Jinho Bang on 20 April 2018, 14:06:41 UTC, committed by Chromium WPT Sync on 20 April 2018, 14:06:41 UTC
Related spec change:
  https://github.com/w3c/payment-handler/pull/293

Bug: 833535
Change-Id: Id7d0cad0f150a73e2932bd8f81f9e5650830a2c0
Reviewed-on: https://chromium-review.googlesource.com/1013660
Reviewed-by: Ganggui Tang <gogerald@chromium.org>
Commit-Queue: Jinho Bang <jinho.bang@samsung.com>
Cr-Commit-Position: refs/heads/master@{#552319}
1 parent 55d647f
Raw File
remoteplayback.idl
[Exposed=Window]
interface RemotePlayback : EventTarget {
    Promise<long> watchAvailability(RemotePlaybackAvailabilityCallback callback);
    Promise<void> cancelWatchAvailability(optional long id);

    readonly attribute RemotePlaybackState state;

             attribute EventHandler        onconnecting;
             attribute EventHandler        onconnect;
             attribute EventHandler        ondisconnect;

    Promise<void> prompt();
};

enum RemotePlaybackState {
    "connecting",
    "connected",
    "disconnected"
};

callback RemotePlaybackAvailabilityCallback = void (boolean available);

partial interface HTMLMediaElement {
    [SameObject]
    readonly attribute RemotePlayback remote;

    [CEReactions]
             attribute boolean        disableRemotePlayback;
};
back to top