videojsUntyped.getComponent('CaptionsButton').prototype.label_ = ' '
function getVideojsOptions (options: {
- autoplay: boolean,
- playerElement: HTMLVideoElement,
- videoViewUrl: string,
- videoDuration: number,
- videoFiles: VideoFile[],
- enableHotkeys: boolean,
- inactivityTimeout: number,
- peertubeLink: boolean,
- poster: string,
+ autoplay: boolean
+ playerElement: HTMLVideoElement
+ videoViewUrl: string
+ videoDuration: number
+ videoFiles: VideoFile[]
+ enableHotkeys: boolean
+ inactivityTimeout: number
+ peertubeLink: boolean
+ poster: string
startTime: number | string
- theaterMode: boolean,
- videoCaptions: VideoJSCaption[],
+ theaterMode: boolean
+ videoCaptions: VideoJSCaption[]
- language?: string,
- controls?: boolean,
- muted?: boolean,
+ language?: string
+ controls?: boolean
+ muted?: boolean
loop?: boolean
+ subtitle?: string
userWatching?: UserWatching
}) {
// We don't use text track settings for now
textTrackSettings: false,
controls: options.controls !== undefined ? options.controls : true,
- muted: options.controls !== undefined ? options.muted : false,
loop: options.loop !== undefined ? options.loop : false,
+
+ muted: options.muted !== undefined ? options.muted : undefined, // Undefined so the player knows it has to check the local storage
+
poster: options.poster,
autoplay: false,
inactivityTimeout: options.inactivityTimeout,
videoViewUrl: options.videoViewUrl,
videoDuration: options.videoDuration,
startTime: options.startTime,
- userWatching: options.userWatching
+ userWatching: options.userWatching,
+ subtitle: options.subtitle
}
},
controlBar: {