-import videojs, { VideoJsPlayer } from 'video.js'
+import videojs from 'video.js'
import './videojs-components/settings-menu-button'
import {
PeerTubePluginOptions,
private mouseInControlBar = false
private readonly savedInactivityTimeout: number
- constructor (player: VideoJsPlayer, options?: PeerTubePluginOptions) {
+ constructor (player: videojs.Player, options?: PeerTubePluginOptions) {
super(player)
this.videoViewUrl = options.videoViewUrl
this.savedInactivityTimeout = player.options_.inactivityTimeout
- if (options.autoplay === true) this.player.addClass('vjs-has-autoplay')
+ if (options.autoplay) this.player.addClass('vjs-has-autoplay')
this.player.on('autoplay-failure', () => {
this.player.removeClass('vjs-has-autoplay')