Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>RemotePlayback

Deno Standard Extensions
Go to Latest
interface RemotePlayback
implements EventTarget
import { type RemotePlayback } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Properties

onconnect: ((this: RemotePlayback, ev: Event) => any) | null
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null
readonly
state: RemotePlaybackState

Methods

cancelWatchAvailability(id?: number): Promise<void>
prompt(): Promise<void>
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>
addEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof RemotePlaybackEventMap>(
type: K,
listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void