1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Use my-embed component

This commit is contained in:
Chocobozzz 2024-05-30 16:11:53 +02:00 committed by Chocobozzz
parent 58f156e748
commit 4a67994775
8 changed files with 94 additions and 131 deletions

View file

@ -84,6 +84,8 @@ function decorateVideoLink (options: {
peertubeLink?: boolean
p2p?: boolean
api?: boolean
}) {
const { url } = options
@ -113,6 +115,8 @@ function decorateVideoLink (options: {
if (options.peertubeLink === false) params.set('peertubeLink', '0')
if (options.p2p !== undefined) params.set('p2p', options.p2p ? '1' : '0')
if (options.api !== undefined) params.set('api', options.api ? '1' : '0')
return buildUrl(url, params)
}