add meta data to video player
This commit is contained in:
1 parent
651bb54dee
commit
adfcfabad1
2 files changed
+3
No files matched your search
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Added
|
### Added
|
||||||
- Play video API
|
- Play video API
|
||||||
- Play video by ID/URL in web app
|
- Play video by ID/URL in web app
|
||||||
|
- Metadata to Video Player
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Bug where Settings page and home page are both visible, if settings page is selected, and user logs in.
|
- Bug where Settings page and home page are both visible, if settings page is selected, and user logs in.
|
||||||
|
|||||||
@@ -127,6 +127,8 @@ function StartVideoDetailsTask(videoId as string)
|
|||||||
contentNode = CreateObject("roSGNode", "ContentNode")
|
contentNode = CreateObject("roSGNode", "ContentNode")
|
||||||
contentNode.addFields({ videoId: videoId, itag: stream.itag })
|
contentNode.addFields({ videoId: videoId, itag: stream.itag })
|
||||||
contentNode.url = stream.url
|
contentNode.url = stream.url
|
||||||
|
contentNode.title = metadata.title
|
||||||
|
contentNode.secondaryTitle = metadata.author
|
||||||
SetCaptions(metadata, m.videoPlayer, contentNode)
|
SetCaptions(metadata, m.videoPlayer, contentNode)
|
||||||
m.videoPlayer.content = contentNode
|
m.videoPlayer.content = contentNode
|
||||||
m.videoPlayer.control = "play"
|
m.videoPlayer.control = "play"
|
||||||
|
|||||||
Reference in new issue
Block a user