add meta data to video player

This commit is contained in:
Brahim Hadriche committed 2022-11-22 12:48:13 -05:00
1 parent 651bb54dee
commit adfcfabad1
2 files changed
+3

No files matched your search

+2
View File
@@ -127,6 +127,8 @@ function StartVideoDetailsTask(videoId as string)
contentNode = CreateObject("roSGNode", "ContentNode")
contentNode.addFields({ videoId: videoId, itag: stream.itag })
contentNode.url = stream.url
contentNode.title = metadata.title
contentNode.secondaryTitle = metadata.author
SetCaptions(metadata, m.videoPlayer, contentNode)
m.videoPlayer.content = contentNode
m.videoPlayer.control = "play"