import './webtorrent-info-button'
import './peertube-videojs-plugin'
import './peertube-load-progress-bar'
+import './theater-button'
import { videojsUntyped } from './peertube-videojs-typings'
import { buildVideoEmbed, buildVideoLink, copyToClipboard } from './utils'
import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from '../../../../shared/models/i18n/i18n'
peertubeLink: boolean,
poster: string,
startTime: number
+ theaterMode: boolean
}) {
const videojsOptions = {
controls: true,
function getControlBarChildren (options: {
peertubeLink: boolean
+ theaterMode: boolean
}) {
const children = {
'playToggle': {},
'seekBar': {
children: {
'peerTubeLoadProgressBar': {},
+ 'mouseTimeDisplay': {},
'playProgressBar': {}
}
}
})
}
+ if (options.theaterMode === true) {
+ Object.assign(children, {
+ 'theaterButton': {}
+ })
+ }
+
Object.assign(children, {
'fullscreenToggle': {}
})
}
function addContextMenu (player: any, videoEmbedUrl: string) {
- console.log(videoEmbedUrl)
-
player.contextmenuUI({
content: [
{