question about video control

Hi

Can someone help me with this:

http://www.freelance-options.be/familyland/

If you click on video you get a carousel action, if you click on a movie it starts, but if you click on the next button the carousel action goes to the next movie. Now my question is, can I stop the first movie from playing with the next button?

Thnx
David


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

Not sure how you’d do that in Flash, but with QuickTime it’s simple
enough. Can you lay out your page to use QuickTime players instead of
Flash?

Walter

On Jul 6, 2010, at 5:14 PM, david Verbruggen wrote:

Hi

Can someone help me with this:

http://www.freelance-options.be/familyland/

If you click on video you get a carousel action, if you click on a
movie it starts, but if you click on the next button the carousel
action goes to the next movie. Now my question is, can I stop the
first movie from playing with the next button?

Thnx
David


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

Is it possible with an HTML5 player??


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

I don’t know. See if you can get one to stop if you issue a Stop()
command to it in JavaScript. Here’s the (Prototype-flavored)
JavaScript code to make a QuickTime player stop in its tracks:

function stopMovies(carousel){
     $(carousel).select('object, embed').each(function(elm){
         try{
             elm.Stop();
         }
         catch(e){
         }
     });
}

To use it, you first need to have the ID of your carousel, which you’d
get from the Title field in the Inspector when the main carousel item
is selected. Let’s say you called that myCarousel. Next, you would
need to add a “listener” function to your tabs and to your previous
and next buttons. The tabs all have a parent with the className
‘controls’, and the previous and next have the classNames ‘previous’
and ‘next’. So to gain access to all of them, you would add both the
preceding and the following blocks of code to the page using the
Protaculous Action:

$$('.controls a, a.previous, a.next').each(function(elm){
     elm.observe('click', function(evt){ stopMovies('myCarousel'); });
});

You’ll have to change the myCarousel to match the ID of your actual
carousel on the page, and then whenever you interact with the carousel
using its tabs or buttons, the currently running QuickTime movie will
stop.

Walter

On Jul 6, 2010, at 5:31 PM, david Verbruggen wrote:

Is it possible with an HTML5 player??


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