diff --git a/src/components/MainScene.bs b/src/components/MainScene.bs index b4dbac08..63d9c32e 100644 --- a/src/components/MainScene.bs +++ b/src/components/MainScene.bs @@ -93,7 +93,7 @@ end function function OnWebServerCommand() if m.serverTask.command.StartsWith("play:") sender = m.videoContainer.sender ?? m.currentFocued - PlayVideo(m.serverTask.command.Mid(5), {sender: sender}) + PlayVideo(m.serverTask.command.Mid(5), { sender: sender }) end if end function @@ -112,7 +112,7 @@ function LaunchArgumentsReceived() ? "LaunchArgumentsReceived" m.top.launchArgs if m.top.launchArgs <> invalid and m.top.launchArgs.contentId <> invalid sender = m.videoContainer.sender ?? m.currentFocued - PlayVideo(m.top.launchArgs.contentId, {sender: sender}) + PlayVideo(m.top.launchArgs.contentId, { sender: sender }) end if end function @@ -120,6 +120,6 @@ function InputArgumentsReceived() ? "InputArgumentsReceived" m.top.inputArgs if m.top.inputArgs <> invalid and m.top.inputArgs.contentId <> invalid sender = m.videoContainer.sender ?? m.currentFocued - PlayVideo(m.top.inputArgs.contentId, {sender: sender}) + PlayVideo(m.top.inputArgs.contentId, { sender: sender }) end if end function diff --git a/src/components/VideoPlayer/Video.bs b/src/components/VideoPlayer/Video.bs index b5a08939..26988b29 100644 --- a/src/components/VideoPlayer/Video.bs +++ b/src/components/VideoPlayer/Video.bs @@ -3,7 +3,7 @@ import "pkg:/components/Dialog/DialogUtils.bs" function PlayVideo(videoId as string, args = invalid as object) sender = args?.sender - metadata = args?.metadata + metadata = args?.metadata if metadata <> invalid and GetInterface(metadata, "ifSGNodeField") <> invalid metadata = args.metadata.getFields() diff --git a/src/components/VideoPlayer/VideoPlayer.bs b/src/components/VideoPlayer/VideoPlayer.bs index 955728e2..e16c03d0 100644 --- a/src/components/VideoPlayer/VideoPlayer.bs +++ b/src/components/VideoPlayer/VideoPlayer.bs @@ -59,7 +59,7 @@ function SetMetadata() as void if m.top.metadata = invalid return end if - + metadata = m.top.metadata contentNode = CreateObject("roSGNode", "ContentNode") contentNode.addFields({ metadata: metadata })