Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 3:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Pausing & continuing video whilst keeping place in timel
PostPosted: August 16th, 2006, 12:11 pm 
Offline

Joined: October 14th, 2005, 2:42 pm
Posts: 1
I am currently using Opus Pro XE 5.5

I have recently produced a project for a car manufacturer. It is a sales tool and consists of a series of slides and a video (mpeg1) presentation by the sales and marketing team. The slides converted from PowerPoint run alongside the presentation video. I have achieved this by putting the slides into multiple frames and activating them using a timeline. The timeline is synced to the start of the video. this process is then repeated over several pages to cover different segments of the presentation.

The client has requested for the next presentation that the video can be paused and then continued again when the user is ready. I am not sure how to achieve this as when the video is restarted by the user how will I tell the presentation where it should be in the timeline to show the correct multiframe. Bearing in mind that where the user will pause the video could be very arbitrary. Is a scripting solution required to solve this problem? I would appreciate any help or guidance anyone could give me with this.

Best regards to all

Chris Toulmin


Top
 Profile  
 
 Post subject:
PostPosted: August 16th, 2006, 4:56 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
I have been thinking about this and the best solution I can think of would be to remove your timeline and use a timer to "watch" the progress of the video. That way pausing it will not cause any actions to happen at the wrong times.

Some example steps:

Add a new publication variable; for example "VidPos"

Add a Ticker trigger, firing every half second or so, to any visible object.

To that trigger add a Script action with the script:
Code:
VidPos = Video1.GetPosition();

in it (where Video1 is the name of your video object).

Then add a series of If/Else statements:
Code:
   if (VidPos == 20)
     // Do the things necessary at 20 seconds here - you could have a timeline for each key point and start that or just put the actions directly here
   else
     if (VidPos == 45)
       // 45 seconds
     else
       if.....
       else
         ....

and so on for each event. You could script the if/elses if you are comfortable with that but it's not really necessary.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: August 17th, 2006, 1:50 am 
Offline

Joined: October 26th, 2004, 1:26 pm
Posts: 262
Hi Chris,

I was interested in seeing the reply to this one too, and what better help can you get than an actual Opus Developer helping you? :-)

The only thing I can think of with Duncan's solution is you may need to "round down" the number of the progress times of the video to a whole number.. e.g.

VidPos = Video1.GetPosition()
VidSeconds = Math.round(VidPos)

//whereas in the above <VidSeconds> would be used for your if/else statements. My skills are only average with OpusScript, so I'm sure Duncan may know an easier and shorter coded way of doing this.

_________________
Cheers,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: August 17th, 2006, 10:42 am 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Rounding it would probaby be wise - too much "accuracy" can lead to all sorts of issues. You can simply combine it all into a single line:
Code:
VidPos = Math.round( Video1.GetPosition() );

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group