Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. RemotePlayback
  4. connecting

RemotePlayback: connecting event

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Theconnecting event of theRemotePlayback interface fires when the user agent initiates remote playback.

Syntax

Use the event name in methods likeaddEventListener(), or set an event handler property.

js
addEventListener("connecting", (event) => { })onconnecting = (event) => { }

Event type

A genericEvent.

Example

In the following example the value ofRemotePlayback.state is printed to the console when the user agent initiates a connection.

js
RemotePlayback.onconnecting = () => {  console.log(RemotePlayback.state);};

Specifications

Specification
Remote Playback API
# dom-remoteplayback-onconnecting

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp