[Pro] Quicktime end of file trigger

Hi there

I want to play a video in quicktime and do either of the following.

1 when the video has come to the end it triggers a call to a new page/url

and/or

2 for it to pause at chapter marks and await a trigger to play the next chapter marker.

I’ve tried using Protoculous’ Observer to pick up the DOM qt_end, but with no luck? Any ideas?

Thanks in advance

Guy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Sep 30, 2011, at 12:31 PM, Guy Davis wrote:

Hi there

I want to play a video in quicktime and do either of the following.

1 when the video has come to the end it triggers a call to a new page/url

Read up on the URL track in QuickTime. I’m not sure which developer tool can add this to the movie for you, but that’s precisely what it is for.

Walter

and/or

2 for it to pause at chapter marks and await a trigger to play the next chapter marker.

I’ve tried using Protoculous’ Observer to pick up the DOM qt_end, but with no luck? Any ideas?

You have to add a parameter to your movie before it will emit those DOM events. Click once on the movie, choose Item / Extended from the main menu. Make sure the Embed tab is selected, then press New. Enter the following Name/Value pair:

  • Name: postdomevents
  • Value: true

Okay out of the stack of dialogs, and try again. You should be able to observe:

qt_timechanged
qt_loadedmetadata
qt_play
qt_ended
qt_pause

And probably some more.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hey Walter - Done that I then add Observer, use library = prototype, entered on the top line DOM event = qt_ended, then click function body, where I entered ‘http://www.google.co.uk’ guess what I’ve done something wrong - question is what!

Thanks again for your help


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The part you put in function body should be a complete JavaScript “program” – a URL by itself won’t do. If you want to try redirecting, then add this instead:

window.location.href="http://www.google.co.uk";

Walter

On Sep 30, 2011, at 1:05 PM, Guy Davis wrote:

Hey Walter - Done that I then add Observer, use library = prototype, entered on the top line DOM event = qt_ended, then click function body, where I entered ‘http://www.google.co.uk’ guess what I’ve done something wrong - question is what!

Thanks again for your help


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter - you’re a star! Thank you so much

Guy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options