HTMLVideoElement: disablePictureInPicture property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Picture-in-Picture API")}}

The **disablePictureInPicture** property of the {{domxref("HTMLVideoElement")}} interface reflects the [disablepictureinpicture](/en-US/docs/Web/HTML/Reference/Elements/video#disablepictureinpicture) HTML attribute indicating whether the picture-in-picture feature is disabled for the current element.

This value only represents a request from the website to the user agent. User configuration may change the eventual behavior—for example, Firefox users can change the media.videocontrols.picture-in-picture.respect-disablePictureInPicture setting to ignore the request to disable PiP.

Value

A boolean value that is true if the picture-in-picture feature is disabled for this element.

When true, the user agent will not suggest picture-in-picture to users, or request it automatically.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}