From 3ec8dc096276ac3c7e5d8dca5f100017516f62ec Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Mar 2018 19:02:51 +0100 Subject: Cleaner videojs control bar implementation --- client/src/standalone/videos/embed.ts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'client/src/standalone/videos/embed.ts') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index bb6baf7f0..739ed5f45 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -31,13 +31,34 @@ loadVideoInfo(videoId) peertube: { videoFiles: videoInfo.files, playerElement: videoElement, - peerTubeLink: true, videoViewUrl: getVideoUrl(videoId) + '/views', videoDuration: videoInfo.duration }, hotkeys: { enableVolumeScroll: false } + }, + controlBar: { + children: [ + 'playToggle', + 'currentTimeDisplay', + 'timeDivider', + 'durationDisplay', + 'liveDisplay', + + 'flexibleWidthSpacer', + 'progressControl', + + 'webTorrentButton', + + 'muteToggle', + 'volumeControl', + + 'resolutionMenuButton', + 'peerTubeLinkButton', + + 'fullscreenToggle' + ] } } videojs('video-container', videojsOptions, function () { -- cgit v1.2.3