PictureInPictureEvent: PictureInPictureEvent() コンストラクター

Limited availability

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

PictureInPictureEvent() コンストラクターは、新しい PictureInPictureEvent オブジェクトをオプションの EventTarget と共に作成して返します。 イベントに入力と出力の両方がある場合、relatedTarget 値には他にも対象とするものを設定する必要があります。

構文

js
new PictureInPictureEvent(type, options)

引数

type

イベント名を表す文字列。

options

オブジェクトで、 Event() で定義されているプロパティに加え、以下のプロパティを持つことができるオブジェクトです。

relatedTarget 省略可

関連する EventTarget、または null (既定値)です。

返値

新しい PictureInPictureEvent オブジェクトです。

仕様書

Specification
Picture-in-Picture
# dom-pictureinpictureevent-pictureinpictureevent

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
PictureInPictureEvent() constructor

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.
Uses a non-standard name.
Has more compatibility info.

関連情報