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:
parent
a871d2a273
commit
60f013e103
9 changed files with 81 additions and 5 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue