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

Fix typo in doc: autostart -> autoplay #748

Merged
merged 1 commit into from
Dec 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/plugins/media/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@
* overwritten for individual steps and media.
*
* Examples:
* - data-media-autostart="true" data-media-autostop="true": start media on enter, stop on
* - data-media-autoplay="true" data-media-autostop="true": start media on enter, stop on
* leave, restart from beginning when re-entering the step.
*
* - data-media-autostart="true" data-media-autopause="true": start media on enter, pause on
* - data-media-autoplay="true" data-media-autopause="true": start media on enter, pause on
* leave, resume on re-enter
*
* - data-media-autostart="true" data-media-autostop="true" data-media-autopause="true": start
* - data-media-autoplay="true" data-media-autostop="true" data-media-autopause="true": start
* media on enter, stop on leave (stop overwrites pause).
*
* - data-media-autostart="true" data-media-autopause="false": let media start automatically
* - data-media-autoplay="true" data-media-autopause="false": let media start automatically
* when entering a step and let it play when leaving the step.
*
* - <div id="impress" data-media-autostart="true"> ... <div class="step"
* data-media-autostart="false">
* - <div id="impress" data-media-autoplay="true"> ... <div class="step"
* data-media-autoplay="false">
* All media is startet automatically on all steps except the one that has the
* data-media-autostart="false" attribute.
* data-media-autoplay="false" attribute.
*
* - Pro tip: Use <audio onended="impress().next()"> or <video onended="impress().next()"> to
* proceed to the next step automatically, when the end of the media is reached.
Expand Down