MediaControlsHost.idl [plain text]
enum DeviceType {
"none",
"airplay",
"tvout"
};
[
Conditional=MEDIA_CONTROLS_SCRIPT,
ImplementationLacksVTable,
NoInterfaceObject,
] interface MediaControlsHost {
sequence<TextTrack> sortedTrackListForMenu(TextTrackList trackList);
sequence<AudioTrack> sortedTrackListForMenu(AudioTrackList trackList);
DOMString displayNameForTrack((TextTrack or AudioTrack)? track);
readonly attribute TextTrack captionMenuOffItem;
readonly attribute TextTrack captionMenuAutomaticItem;
readonly attribute DOMString captionDisplayMode;
void setSelectedTextTrack(TextTrack? track);
void setPreparedToReturnVideoLayerToInline(boolean prepared);
readonly attribute HTMLElement textTrackContainer;
readonly attribute boolean allowsInlineMediaPlayback;
readonly attribute boolean supportsFullscreen;
readonly attribute boolean isVideoLayerInline;
readonly attribute boolean userGestureRequired;
readonly attribute boolean isInMediaDocument;
readonly attribute boolean shouldForceControlsDisplay;
readonly attribute boolean compactMode;
readonly attribute DOMString externalDeviceDisplayName;
readonly attribute DeviceType externalDeviceType;
attribute boolean controlsDependOnPageScaleFactor;
void updateTextTrackContainer();
void enteredFullscreen();
void exitedFullscreen();
DOMString generateUUID();
[EnabledAtRuntime=ModernMediaControls] readonly attribute DOMString shadowRootCSSText;
[EnabledAtRuntime=ModernMediaControls] DOMString base64StringForIconNameAndType(DOMString iconName, DOMString iconType);
[EnabledAtRuntime=ModernMediaControls] DOMString formattedStringForDuration(unrestricted double durationInSeconds);
};