rx-player
Version:
Canal+ HTML5 Video Player
18 lines • 1.1 kB
TypeScript
import type { CancellationSignal } from "../utils/task_canceller";
import { type IMediaElement } from "./browser_compatibility_types";
/**
* Temporarily disables remote playback on a media element by setting the
* `disableRemotePlayback` attribute to `true` when using a `ManagedMediaSource`.
* The original value of the `disableRemotePlayback` attribute is restored when
* the cancellation signal is triggered.
*
* This is useful when the `ManagedMediaSource` is being used and
* the media element needs to ensure that remote playback (e.g., Airplay) is disabled
* during the playback session.
* @param {HTMLElement} mediaElement - The media element whose `disableRemotePlayback`
* attribute will be modified.
* @param {CancellationSignal} cancellationSignal - The signal that, when triggered,
* restores the `disableRemotePlayback` attribute to its original value.
*/
export default function disableRemotePlaybackOnManagedMediaSource(mediaElement: IMediaElement, cancellationSignal: CancellationSignal): void;
//# sourceMappingURL=disable_remote_playback_on_managed_media_source.d.ts.map