import { MouseController } from "../Inputs/MouseController"; import { IVideoPlayerMouseInterface } from "./VideoPlayerMouseInterface"; import { UeDescriptorUi } from "../UeInstanceMessage/UeDescriptorUi"; /** * Video Player Controller handles the creation of the video HTML element and all handlers */ export declare class VideoPlayerController { videoPlayerDiv: HTMLDivElement; videoElement: any; mouseController: MouseController; ueDescriptorUi: UeDescriptorUi; onUpdatePosition: (mouseEvent: MouseEvent) => void; videoInputBindings: IVideoPlayerMouseInterface; startVideoMuted: boolean; audioElement: HTMLAudioElement; constructor(htmlDivElement: HTMLDivElement, startVideoMuted: boolean); /** * Create the video Element */ createVideoPlayer(): void; /** * Handle when the locked state Changed */ handleLockStateChange(): void; /** * Handle when the Element is mouse clicked * @param event - Mouse Event */ handleClick(event: MouseEvent): void; /** * Handle when the Mouse has entered the element * @param event - Mouse Event */ handleMouseEnter(event: MouseEvent): void; /** * Handles when the mouse has left the element * @param event - Mouse event */ handleMouseLeave(event: MouseEvent): void; /** * Handles the Load Meta Data Event * @param event - Event Not used */ handleLoadMetaData(event: Event): void; /** * Handles when the Peer connection has a track event * @param rtcTrackEvent - RTC Track Event */ handleOnTrack(rtcTrackEvent: RTCTrackEvent): void; /** * Creates the audio device when receiving an RTCTrackEvent with the kind of "audio" * @param audioMediaStream - Audio Media stream track */ CreateAudioTrack(audioMediaStream: MediaStream): void; /** * Plays the audio from the audio element or sets up an event listener to play it once an interaction has occurred */ PlayAudioTrack(): void; /** * Set the Video Elements src object tracks to enable * @param enabled - Enable Tracks on the Src Object */ setVideoEnabled(enabled: boolean): void; }