dseif / slide-drive

Slideshow using audio/video to drive content
45 stars 9 forks source link

Force first slide to start at time 0 and the last slide to end at the end of the audio #16

Closed banksJeremy closed 12 years ago

banksJeremy commented 12 years ago

The first slide in our demo currently has popcorn-slide="1". This means that no slide is associated with the first second of the audio. Consequently, using the audio control to navigate to the beginning of the presentation does not change the current slide. Similarly, clicking at the end of the audio control won't trigger a slide change because the last slide only lasts for one second and doesn't continue to the end of the audio.

This modifies the parser to force the first slide to start at time 0, and the last slide to end at duration + 1 (ending at duration may exclude the last frame of the audio). It also modifies our demo to use popcorn-slide="0" for the first slide.

dseif commented 12 years ago

Awesome thanks for this Jeremy!