1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add control bar option for peertube player

This commit is contained in:
Chocobozzz 2022-05-20 09:59:53 +02:00
parent a871d2a273
commit 60f013e103
No known key found for this signature in database
GPG key ID: 583A612D890159BE
9 changed files with 81 additions and 5 deletions

View file

@ -48,7 +48,10 @@ function decorateVideoLink (options: {
// Embed options
title?: boolean
warningTitle?: boolean
controls?: boolean
controlBar?: boolean
peertubeLink?: boolean
p2p?: boolean
}) {
@ -73,7 +76,10 @@ function decorateVideoLink (options: {
if (options.muted === true) params.set('muted', '1')
if (options.title === false) params.set('title', '0')
if (options.warningTitle === false) params.set('warningTitle', '0')
if (options.controls === false) params.set('controls', '0')
if (options.controlBar === false) params.set('controlBar', '0')
if (options.peertubeLink === false) params.set('peertubeLink', '0')
if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0')