Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The movie in the introduction restarts when changing slides. #16

Closed
rasmusab opened this issue Aug 26, 2011 · 4 comments
Closed

The movie in the introduction restarts when changing slides. #16

rasmusab opened this issue Aug 26, 2011 · 4 comments

Comments

@rasmusab
Copy link

First starting the movie on slide 15 in introduction/index.html and then pausing it and progressing to the next slide causes the movie to restart. As we are on a different slide now it is not possible to see the movie but the sound is still played.

This was on Firefox 6.0, Ubuntu 11.04, 32-bit.

@imakewebthings
Copy link
Owner

Confirmed, and I should be able to get a fix in shortly.

@rasmusab
Copy link
Author

Cool!

Otherwise I must say that deck.js looks fabulous!

/Rasmus

On Fri, Aug 26, 2011 at 11:22 AM, imakewebthings <
reply@reply.github.com>wrote:

Confirmed, and I should be able to get a fix in shortly.

Reply to this email directly or view it on GitHub:
#16 (comment)

/Rasmus

@imakewebthings
Copy link
Owner

Well... it wasn't what I thought, so I'll document what I've learned so far:

Gecko appears to rerender the Flash whenever it or any of its ancestors (the slide in this case) go in or out of a state of transform. The current active slide has no transform, while all others do. You'll notice that the Fade transition theme doesn't have this problem since it doesn't use CSS transforms. For whatever reason, at least for Vimeo, this means playing a previously paused movie. I haven't tested other video embedding services yet.

Giving deck-current a moz-transform equal to translate(0,0) does keep the video from reloading, but also completely renders all Flash useless. FF does not support Flash within a 0,0 translation (or within any transformed item at all it turns out). If anyone was curious, Webkit does. Though every browser that I've tested has problems with transforms that actually do some moving.

It looks like I'll need to do something special for FF until either they fix their transform bugs, Flash fixes them, or Flash dies in a fire. In any case, it may take a few days to figure out a good solution.

@imakewebthings
Copy link
Owner

The above commit fixes this issue. If the iframe containing the video is in a nested slide it will still be unloaded, so it will blank out while in a before/previous state while nested, but this is far better than the annoyance of having a movie start off slide in a common workflow as it was doing before.

In the process of fixing this bug I removed the transforms on active nested slides in transition themes, which would have prevented video from working at all in nested slides in FF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants