Problem with video with SB 5.0

Questions and information about Crank Software's Storyboard Designer

Moderator: jamiev

Problem with video with SB 5.0

Postby Ealo » Fri May 26, 2017 8:06 am

Dear All,
I'm tring to put in my application all the video controls (stop, pause, play, move backward and move forward) to control in the best possible way some videos.
I try to get the total time of the video using the field "total_time" in the "gre.media.timeupdate" event, but it's always set to "1768187245" which isn't the total time of the video. I also try with several videos but the "total_time" is always the same value.
Do you have some advices to resolve this problem?
Let me know!

Best regards
Ealo
 
Posts: 12
Joined: Sat Oct 22, 2016 12:10 pm

Re: Problem with video with SB 5.0

Postby Evan » Fri May 26, 2017 8:40 am

Hi Ealo,

In 5.0, there was an API change around the media time events. Information on the duration of a video was taken out of the 'gre.media.timeupdate' event and given it's own event, 'gre.media.durationupdate'. To query the total time of a video, listen for 'gre.media.durationupdate' and look at the 'total_time' field.

For further reference, here is a link in our documentation to the new media event organization: http://www.cranksoftware.com/cranksoftw ... _def_media

Regards,
Evan
Evan
 
Posts: 20
Joined: Wed Aug 27, 2014 7:29 am


Return to Storyboard Designer

Who is online

Users browsing this forum: No registered users and 1 guest

cron