Forum Discussion

shess's avatar
shess
Visitor
8 years ago

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!

4 Replies

  • 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" />
  • destruk's avatar
    destruk
    Streaming Star
    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.
  • 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!
  • destruk's avatar
    destruk
    Streaming Star
    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.