diff options
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 () { |