declare var SC: any; /** * @typedef {Object} mep_soundcloud_load_object * @property {string} videoId - The ID of the video. * @property {number} [startSeconds] - The start time of the video. * @property {number} [endSeconds] - The end time of the video. */ /** * @typedef {Object} mep_soundcloud_playerVars * @property {number} [autoplay] - Whether to autoplay the initial video. * @property {number} [hide_related] - Hide related videos after the video ends. * @property {number} [show_comments] - Show comments. * @property {number} [show_user] - Show the user's name and profile picture. * @property {number} [show_reposts] - Show reposts. * @property {number} [visual] - Show the video title and other visual metadata. * @property {number} [startSeconds] - The start time of the video. * @property {number} [endSeconds] - The end time of the video. */ /** * @typedef {Object} mep_soundcloud_content * @property {string} videoId - The ID of the video. * @property {mep_soundcloud_playerVars} [playerVars] - Player parameters. * @property {number} width - The width of the video player. * @property {number} height - The height of the video player. */ interface mep_soundcloud_load_object { videoId: string; startSeconds?: number; endSeconds?: number; } interface mep_soundcloud_playerVars { autoplay?: number | string; hide_related?: number | string; show_comments?: number | string; show_user?: number | string; show_reposts?: number | string; visual?: number | string; startSeconds?: number; endSeconds?: number; [key: string]: number | string | undefined; } interface mep_soundcloud_content { videoId: string; playerVars?: mep_soundcloud_playerVars; width: number; height: number; } interface TrackData { currentPosition: number; } interface SoundMetadata { title: string; duration: number; } /** * Class representing a SoundCloud player. */ declare class mep_soundcloud { #private; player: HTMLIFrameElement; playerVars: mep_soundcloud_playerVars | undefined; player_statusdata: any; autoplay: boolean; player_widget: any; player_metadata: any; before_mute_volume: number; forse_pause: boolean; first_seek_time: number; endSeconds: number; pause_sended: boolean; interval: number; previous_player_status: number; retry_count: number; static soundcloud_api_loaded: boolean | null; static soundcloud_api_promise: (() => void)[]; static numericRegex: RegExp; constructor(replacing_element: string | HTMLElement, content: mep_soundcloud_content, player_set_event_function?: (player: HTMLIFrameElement) => void); /** * This function plays the video. */ playVideo(): void; /** * This function pauses the video. */ pauseVideo(): void; /** * This function return the current time of the video. * @returns {number} current time of the video */ getCurrentTime(): number; /** * This function return the duration of the video. * @returns {number} duration of the video */ getDuration(): number; /** * This function seeks to a specified time in the video. * @param {number} skipSecounds - The time to which the player should advance. */ seekTo(skipSecounds: number): void; /** * This function sets the volume of the video player. * @param {number} volume */ setVolume(volume: number): void; /** * This function mutes the video player. */ mute(): void; /** * This function unmutes the video player. */ unMute(): void; /** * This function checks whether the video player is muted. * @returns {boolean} true if the video player is muted, and false if not. */ isMuted(): boolean; /** * This function returns the volume of the video player. * @returns {number} volume of the video player */ getVolume(): any; /** * This function returns the status of the video player. * @returns {number} status code */ getPlayerState(): any; /** * This function returns the title of the video. * @returns {string} title of the video */ getTitle(): any; /** * return duration between start and end seconds * @returns {number} dulation of between start and end */ getRealDulation(): number; /** * Load a new video into the player.With autoplay * @param {mep_soundcloud_load_object} content * @param {number} startSeconds */ loadVideoById(content: mep_soundcloud_load_object | string, startSeconds: number): void; /** * Load a new video into the player.Without autoplay * @param {mep_soundcloud_load_object} content * @param {number} startSeconds */ cueVideoById(content: mep_soundcloud_load_object | string, startSeconds: number): void; } //# sourceMappingURL=soundcloud.d.ts.map