Skip to content

Commit 6dd1709

Browse files
committed
Change default speed icons to "animals"
1 parent abefabf commit 6dd1709

9 files changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ The following attributes are supported on both the `<audio>` and `<video>` eleme
200200
- **data-heading-level** - optional; Able Player injects an off-screen HTML heading "Media Player" (or localized equivalent) at the top of the player so screen reader users can easily find the player. It automatically assigns a heading level that is one level deeper than the closest parent heading. This attribute can be used to manually set the heading level, rather than relying on Able Player to assign it automatically. Valid values are 1 through 6. A value of 0 is also supported, and instructs Able Player to not inject a heading at all. The latter should be used only if the web page already includes a heading immediately prior to the media player.
201201
- **data-hide-controls** - optional; set to "true" to hide controls during playback. Controls are visibly hidden but still accessible to assistive technologies. Controls reappear if user presses any key or moves the mouse over the video player region.
202202
- **data-icon-type** - optional; "svg", "font" or "image"; "svg" is the default with automatic fallback to "font" unless either (a) the browser doesn't support icon fonts or (b) the user has a custom style sheet that may impact the display of icon fonts; in either case falls back to images. Should generally leave as is unless testing the fallback.
203-
- **data-speed-icons** - optional; "arrows" (default) or "animals". The latter will substitute a turtle icon for *slower* and a rabbit icon for *faster*.
203+
- **data-speed-icons** - optional; "animals" (default) or "arrows". The default setting uses a turtle icon for *slower* and a rabbit icon for *faster*. Setting this to "arrows" uses the original Able Player icons (prior to version 3.5), arrows pointing up for *faster* and down for *slower*.
204204
- **data-start-time** - optional; time at which you want the audio to start playing (in seconds)
205205
- **data-volume** - optional; set the default volume (0 to 10; default is 7 to avoid overpowering screen reader audio)
206206
- **data-seek-interval** - optional; interval (in seconds) of forward and rewind buttons. By default, seek interval is intelligently calculated based on duration of the media.

build/ableplayer.dist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@
256256
}
257257

258258
// Slower/Faster buttons
259-
// valid values of data-speed-icons are 'arrows' (default) and 'animals'
260-
// use 'animals' to use turtle and rabbit
261-
if ($(media).data('speed-icons') === 'animals') {
262-
this.speedIcons = 'animals';
259+
// valid values of data-speed-icons are 'animals' (default) and 'arrows'
260+
// 'animals' uses turtle and rabbit; 'arrows' uses up/down arrows
261+
if ($(media).data('speed-icons') === 'arrows') {
262+
this.speedIcons = 'arrows';
263263
}
264264
else {
265-
this.speedIcons = 'arrows';
265+
this.speedIcons = 'animals';
266266
}
267267

268268
// Seekbar

build/ableplayer.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@
256256
}
257257

258258
// Slower/Faster buttons
259-
// valid values of data-speed-icons are 'arrows' (default) and 'animals'
260-
// use 'animals' to use turtle and rabbit
261-
if ($(media).data('speed-icons') === 'animals') {
262-
this.speedIcons = 'animals';
259+
// valid values of data-speed-icons are 'animals' (default) and 'arrows'
260+
// 'animals' uses turtle and rabbit; 'arrows' uses up/down arrows
261+
if ($(media).data('speed-icons') === 'arrows') {
262+
this.speedIcons = 'arrows';
263263
}
264264
else {
265-
this.speedIcons = 'arrows';
265+
this.speedIcons = 'animals';
266266
}
267267

268268
// Seekbar

build/ableplayer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/ableplayer.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h2>Video Examples</h2>
3636
<li><a href="video2.html">Video player with <em>default</em> closed captions</a></li>
3737
<li><a href="video3.html">Video player with text-based audio description (VTT)</a></li>
3838
<li><a href="video4.html">Video player with audio description via video swap <em>or</em> VTT</a></li>
39-
<li><a href="video5.html">Video player with interactive transcript, subtitles, and chapters (and animal icons)</a></li>
39+
<li><a href="video5.html">Video player with interactive transcript, subtitles, and chapters</a></li>
4040
<li><a href="video6.html">Video player with interactive transcript in an external container</a></li>
4141
<li><a href="video7.html">Video player with manually coded external transcript</a></li>
4242
<li><a href="video8.html">Video player with Metadata track (type = selector)</a></li>

demos/video5.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Able Player Video Demo #5:<br/>Video player with interactive transcript, sub
2424

2525
<p>For additional demos see the <a href="index.html">Index of <em>Able Player</em> Examples</a>.</p>
2626

27-
<video id="video1" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player data-speed-icons="animals">
27+
<video id="video1" preload="auto" width="480" height="360" poster="../media/wwa.jpg" data-able-player>
2828
<source type="video/mp4" src="../media/wwa.mp4" data-desc-src="../media/wwa_described.mp4">
2929
<source type="video/webm" src="../media/wwa.webm" data-desc-src="../media/wwa_described.webm">
3030
<track kind="captions" src="../media/wwa_captions_en.vtt" srclang="en" label="English"/>

0 commit comments

Comments
 (0)