import type { CssAspectRatio } from '@breadstone/mosaik-themes'; import type { IDimensionableProps } from '../../../Behaviors/Dimensionable'; import type { IDisableableProps } from '../../../Behaviors/Disableable'; import type { VideoFit } from '../../../Types/VideoFit'; import type { VideoLegendPosition } from '../../../Types/VideoLegendPosition'; /** * Represents the `IVideoElementProps` interface. * * @public */ export interface IVideoElementProps extends IDimensionableProps, IDisableableProps { /** * The source of the video. */ src: string | MediaStream | MediaSource | Blob | null; /** * Auto play the video. * * @remarks * For security reasons, the modern browsers do not allow auto play becouase auf irritating the user. * When this property is the to `true` the video will be *not* played automatically if the user had no interaction on the page. */ autoPlay: boolean; /** * The poster of the video. */ poster: string; /** * Sets the video to full screen. * This property is only available on mobile devices. * If its set to `true` the video will be played automatically in full screen mode; otherwise it will be played inline. */ autoFullScreen: boolean; /** * Togle the video controls. */ showControls: boolean; /** * Fits the video to the container. */ fit: VideoFit; /** * The legend of the video. */ legend: string; /** * The position of the legend. */ legendPosition: VideoLegendPosition; /** * The aspect ratio of the video. */ ratio: CssAspectRatio; /** * Whether the video is muted. */ muted: boolean; /** * Whether the video is looped. */ loop: boolean; } //# sourceMappingURL=IVideoElementProps.d.ts.map