import type { App as Application, ComponentOptions, ComponentPublicInstance } from 'vue' import type { NumberArray, StringArray, MediaPlayerType, CrossOrigin, ClassOrStyle, MediaSource, MediaTrack, PlaybackRateOption } from './types' export interface QMediaPlayer extends ComponentPublicInstance { /** * Tells the component which player is to be used. */ type?: MediaPlayerType /** * Use mobile logic for handling visibility of controls. This mode is best for mobiles, but can be used on desktop as well. It prevents the controls from displaying/hiding with mouse hover. Instead, clicks are used to show/hide the controls. */ mobileMode?: boolean /** * When true, clicking or tapping the video frame toggles play/pause. Turn this off when the overlay slot contains interactive content, such as forms or buttons. */ togglePlayOnClick?: boolean /** * Direct media source URL. When this is set, the media element `src` is set directly and the `sources` prop is ignored. Clearing this prop unloads the media when `sources` is also empty. */ source?: string /** * One or more sources for video or audio. The browser picks the best source based on supported codecs. An empty array unloads the media when `source` is also empty. */ sources?: MediaSource[] /** * Poster image to display before the video is loaded. */ poster?: string /** * Fallback poster image to display when `poster` is not provided. The `poster` prop always takes precedence. */ fallbackPoster?: string /** * One or more text tracks for subtitles, captions, chapters, or metadata. */ tracks?: MediaTrack[] /** * Display controls in a compact single-line layout. */ dense?: boolean /** * Automatically start playback when the media is ready to play. */ autoplay?: boolean /** * Pause playback when the player scrolls completely out of the viewport. QMediaPlayer will not automatically resume playback when it becomes visible again. */ autoPause?: boolean /** * Whether to use CORS for fetching media assets. */ crossOrigin?: CrossOrigin /** * Initial volume from 0-100, as a percentage. */ volume?: number /** * Hide the volume slider control. */ hideVolumeSlider?: boolean /** * Hide the volume button and volume slider. */ hideVolumeBtn?: boolean /** * Hide the play/pause button. */ hidePlayBtn?: boolean /** * Hide the settings button. */ hideSettingsBtn?: boolean /** * Hide the fullscreen button. */ hideFullscreenBtn?: boolean /** * Disable the seek-to-position slider. */ disabledSeek?: boolean /** * Provides a hint to the browser about what the author thinks will lead to the best user experience. */ preload?: 'none' | 'metadata' | 'auto' /** * Force the player to use an `