# question about video control

**URL:** https://discourse.softpress.com/t/question-about-video-control/8236
**Category:** Freeway
**Created:** [July 6, 2010, 9:14pm UTC](https://discourse.softpress.com/t/question-about-video-control/8236 "2010-07-06T21:14:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Verbruggen](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@David\_Verbruggen](https://discourse.softpress.com/u/David_Verbruggen)
#### Post date: [July 6, 2010, 9:14pm UTC](https://discourse.softpress.com/t/question-about-video-control/8236/1 "2010-07-06T21:14:28Z")

</div>

Hi

Can someone help me with this:

[http://www.freelance-options.be/familyland/](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](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

### Author: ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)
#### Post date: [July 6, 2010, 9:22pm UTC](https://discourse.softpress.com/t/question-about-video-control/8236/2 "2010-07-06T21:22:54Z")

</div>

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/](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](http://freewaytalk.net/person/options)

* * *

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

---

<div class="post-metadata">

### Author: ![David\_Verbruggen](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/e495f1/32.png) [@David\_Verbruggen](https://discourse.softpress.com/u/David_Verbruggen)
#### Post date: [July 6, 2010, 9:31pm UTC](https://discourse.softpress.com/t/question-about-video-control/8236/3 "2010-07-06T21:31:56Z")

</div>

Is it possible with an HTML5 player??

* * *

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

---

<div class="post-metadata">

### Author: ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)
#### Post date: [July 6, 2010, 9:55pm UTC](https://discourse.softpress.com/t/question-about-video-control/8236/4 "2010-07-06T21:55:00Z")

</div>

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:

```auto
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:

```auto
$$('.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](http://freewaytalk.net/person/options)

* * *

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