paulrouget / dzslides

DZSlides is a one-file HTML template to build slides in HTML5 and CSS3.
http://paulrouget.com/dzslides
938 stars 255 forks source link

Video autoplay #99

Open reagle opened 12 years ago

reagle commented 12 years ago

I'm confused about autoplay. I want to turn it off.

When I include the following:

<video autoplay="false" src="media/test.webm"></video>
</figure>

it autoplays on the first slide, definitely not right!

The documentation speaks of a hash parameter (but actually uses ampersand). Plus, does that parameter go on the end of the deck URL? (I get a 404 then...) It'd be handy to have a complete autoplay false example.

Also, is there a difference of off per slide versus deck?

hsablonniere commented 12 years ago

Hi, sorry for the delay. There's no autoplay per slide. Right now the autoplay URL parameter is here to help the onstage shell.

The correct syntax is http://example.com/template.html?autoplay=0 or http://example.com/template.html?autoplay=0#2.0 for second slide.

Let me know if you have any problems.