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

+1
View File
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Play video API
- Play video by ID/URL in web app
- Metadata to Video Player
### Fixed
- Bug where Settings page and home page are both visible, if settings page is selected, and user logs in.
+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"