Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 1:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: video controls and sync to end
PostPosted: November 11th, 2004, 3:19 pm 
Offline

Joined: November 3rd, 2004, 4:11 pm
Posts: 18
I downloaded the video control sample and am attempting to use it with a sync to end of video control. However, when I press the pause or stop button the action in the sync to end starts.

Can anyone help with a solution please.

I'm using Opus 04 SR2 (just downloaded) and the video is set to Chroma Key (ie not on top).


For this message balham has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 12th, 2004, 6:40 am 
Offline

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

Disable the "Synchronise to End" trigger check-box on the Pause & Stop Actions. Without seeing the video control sample, I'm guessing that's all you'll need to do. :)

_________________
Cheers,
Steve


For this message Steve H has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 12th, 2004, 8:04 am 
Offline

Joined: November 3rd, 2004, 4:11 pm
Posts: 18
Steve, I've had these unchecked - the problem exists despite this.

Thinking about it now, I got the sample video player from the Opus Pro XE "samples" folder and am using it with Opus Pro 04.

Peter


For this message balham has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: November 12th, 2004, 11:36 am 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

If I am thinking of the same sample publication, there should be a scrub bar underneath the video with a 'blob' that moves along the screen as the video is played.

If this is the case, you could add a small frame to the end of this scrub bar with a Collision Enter trigger applied to detect collision with the blob. Now apply your required action to this trigger.

Another solution would be to edit the script object on the page and build an expression from the 'vidSecs' variable (which determines the length of the video) and the 'vidPosSecs' variable (which determines the current position of the video) which determines if the end of the video has been reached. For example, try editing the moveBlob() function to read the following:

Code:
function moveBlob() {
   vidStatus = Video.IsPlaying()
   while (vidStatus == true) {
      vidPosSecs = Video.GetPosition()
      vidPosPix = (vidPosSecs*pixPerSec)
      blob.SetXPosition(vidPosPix+frameOffSet)
      vidStatus = Video.IsPlaying()
      wait(waitTime)
      if (vidPosSecs >= vidSecs) {
         Message.Show()
      }
   }
}


This will display an object named 'Message' when the end of the video is reached, but you could apply any action at this point.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


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 40 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