diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-01 19:02:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-01 19:02:51 +0100 |
commit | 3ec8dc096276ac3c7e5d8dca5f100017516f62ec (patch) | |
tree | efeab8056224d54f44dc498a110fba54d831d4f0 /client/src/standalone/videos/embed.ts | |
parent | c7bfd4532ea5783be525525c8260159497cb0f64 (diff) | |
download | PeerTube-3ec8dc096276ac3c7e5d8dca5f100017516f62ec.tar.gz PeerTube-3ec8dc096276ac3c7e5d8dca5f100017516f62ec.tar.zst PeerTube-3ec8dc096276ac3c7e5d8dca5f100017516f62ec.zip |
Cleaner videojs control bar implementation
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 23 |
1 files changed, 22 insertions, 1 deletions
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) | |||
31 | peertube: { | 31 | peertube: { |
32 | videoFiles: videoInfo.files, | 32 | videoFiles: videoInfo.files, |
33 | playerElement: videoElement, | 33 | playerElement: videoElement, |
34 | peerTubeLink: true, | ||
35 | videoViewUrl: getVideoUrl(videoId) + '/views', | 34 | videoViewUrl: getVideoUrl(videoId) + '/views', |
36 | videoDuration: videoInfo.duration | 35 | videoDuration: videoInfo.duration |
37 | }, | 36 | }, |
38 | hotkeys: { | 37 | hotkeys: { |
39 | enableVolumeScroll: false | 38 | enableVolumeScroll: false |
40 | } | 39 | } |
40 | }, | ||
41 | controlBar: { | ||
42 | children: [ | ||
43 | 'playToggle', | ||
44 | 'currentTimeDisplay', | ||
45 | 'timeDivider', | ||
46 | 'durationDisplay', | ||
47 | 'liveDisplay', | ||
48 | |||
49 | 'flexibleWidthSpacer', | ||
50 | 'progressControl', | ||
51 | |||
52 | 'webTorrentButton', | ||
53 | |||
54 | 'muteToggle', | ||
55 | 'volumeControl', | ||
56 | |||
57 | 'resolutionMenuButton', | ||
58 | 'peerTubeLinkButton', | ||
59 | |||
60 | 'fullscreenToggle' | ||
61 | ] | ||
41 | } | 62 | } |
42 | } | 63 | } |
43 | videojs('video-container', videojsOptions, function () { | 64 | videojs('video-container', videojsOptions, function () { |