mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Add upload/import/go live video attributes hooks
This commit is contained in:
parent
8cf43a6524
commit
d17d743051
6 changed files with 98 additions and 6 deletions
|
@ -83,7 +83,9 @@ async function addLiveVideo (req: express.Request, res: express.Response) {
|
|||
const videoInfo: LiveVideoCreate = req.body
|
||||
|
||||
// Prepare data so we don't block the transaction
|
||||
const videoData = buildLocalVideoFromReq(videoInfo, res.locals.videoChannel.id)
|
||||
let videoData = buildLocalVideoFromReq(videoInfo, res.locals.videoChannel.id)
|
||||
videoData = await Hooks.wrapObject(videoData, 'filter:api.video.live.video-attribute.result')
|
||||
|
||||
videoData.isLive = true
|
||||
videoData.state = VideoState.WAITING_FOR_LIVE
|
||||
videoData.duration = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue