shess
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2017
11:29 PM
Scene Graph Video PlayStart?
Hi,
I'm trying to set the PlayStart for a Video node using SceneGraph. However, when I set a field called PlayStart on the content node like so:
contentNode.PlayStart = m.savedPosition
I get a compile error:
--- Syntax Error. Builtin function call expected. (compile error &h9d)
I get the same when I try to specify a BookmarkPosition. I'm assuming this means both are built-in keywords, but how else to specify the start position for a Video node?
Thanks for any help!
I'm trying to set the PlayStart for a Video node using SceneGraph. However, when I set a field called PlayStart on the content node like so:
contentNode.PlayStart = m.savedPosition
I get a compile error:
--- Syntax Error. Builtin function call expected. (compile error &h9d)
I get the same when I try to specify a BookmarkPosition. I'm assuming this means both are built-in keywords, but how else to specify the start position for a Video node?
Thanks for any help!
4 REPLIES 4

squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2017
12:04 PM
Re: Scene Graph Video PlayStart?
m.videoPlayer = m.top.findNode("VideoPlayer")
m.videoplayer.position = (current position)
m.videoplayer.seek = 1000 (will set it to 1000 secs.)
trickplay needs to be set to true in your video node
<!-- Playback node -->
<Video
id="VideoPlayer"
visible="false"
enableTrickPlay="true"
translation="[0, 0]"
width="1920"
height="1080" />
m.videoplayer.position = (current position)
m.videoplayer.seek = 1000 (will set it to 1000 secs.)
trickplay needs to be set to true in your video node
<!-- Playback node -->
<Video
id="VideoPlayer"
visible="false"
enableTrickPlay="true"
translation="[0, 0]"
width="1920"
height="1080" />
Kinetics Screensavers
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2017
12:30 PM
Re: Scene Graph Video PlayStart?
Does Playstart even work in the content node metadata? If not for scenegraph then it should be noted in the SDK as it is listed implying it ought to work. But yes, I always used seek and it has done its job for me.
shess
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2017
11:40 PM
Re: Scene Graph Video PlayStart?
Thanks... I feel silly, but it was the variable I was using - pos - that was causing the compile error. So PlayStart *does* work for SceneGraph, but it has the consequence that you can't rewind earlier than that point. So it looks like seek is the better approach anyway.
Thanks for the help!
Thanks for the help!
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2017
06:12 AM
Re: Scene Graph Video PlayStart?
That explains a lot Shess! Thanks. There was at least one other post where the developer couldn't rewind the video prior to the start point of a resumed video and this explains why.