cefren
Reel Rookie

Get currently played video's Timestamp in a plugin [BrightScript]

Jump to solution

Is it possible, to somehow get the current time of the played video when a specific UDP message arrives? If the plugin creates the roVideoPlayer object and starts the video then I can access this information with the "GetPlaybackPosition()" function, but what I really need is to make the project with BrightAuthor and include a plugin and the plugin handles the time stamp, everything else (mainly the playlogic) is made with BrightAuthor.

I tried to modify the generated autorun file, but I can't access this property, I just can't find the right object in the code which I can call the GetPlaybackPosition and does not result in an error.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
renojim
Community Streaming Expert

Re: Get currently played video's Timestamp in a plugin [BrightScript]

Jump to solution

BrightSign was split off from Roku some time ago.  I don't know if you'll get any help there, but they're at https://www.brightsign.biz/

While Roku devices do use BrightScript, it's always had different features, so I don't think anyone here will be able to help unless they develop for both platforms.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

0 Kudos
3 REPLIES 3
renojim
Community Streaming Expert

Re: Get currently played video's Timestamp in a plugin [BrightScript]

Jump to solution

Is this on a BrightSign device?

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
cefren
Reel Rookie

Re: Get currently played video's Timestamp in a plugin [BrightScript]

Jump to solution

@renojim wrote:

Is this on a BrightSign device?


Hello, yes, it is a BrightSign XT1144 player. The main concept I want to achieve is to create the playlogic and player syncronisation with BrightAuthor and the included plugin just listen for UDP messages and when one arrives with the right keywords it will reply with the current playback position of the video (or - 1 if there's no playback at the moment)

 

I just not able to extract the playback positions from the Autorun file as I can't reference the right roVideoPlayer object. I tried to included the plugin functions into the autorun but I can't reference the videoplayer object from there also, I get errors with every try I made before. 

 

I tracked in the code which object starts the video, it's m.stateMachine.videoPlayer but when I try to reference it in the function which handles incoming events I can't, it throws me errors like this object does not exist.

0 Kudos
renojim
Community Streaming Expert

Re: Get currently played video's Timestamp in a plugin [BrightScript]

Jump to solution

BrightSign was split off from Roku some time ago.  I don't know if you'll get any help there, but they're at https://www.brightsign.biz/

While Roku devices do use BrightScript, it's always had different features, so I don't think anyone here will be able to help unless they develop for both platforms.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!