Skip to content

Commit

Permalink
Early return stopped _startVolume being applied for courses without a…
Browse files Browse the repository at this point in the history
…udio extension
  • Loading branch information
deltanetdan committed Apr 19, 2023
1 parent 793c617 commit 5bead57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ IE9 | Vimeo: ‘Sorry this video does not exist’.
IE8 | <ul><li>Due to the lack of support for HTML audio/video, users will need to have [Adobe Flash Player](https://get.adobe.com/flashplayer/) v10 (or better) or Microsoft [Silverlight](https://www.microsoft.com/getsilverlight/get-started/install/) installed to enable media playback.</li><li>YouTube: control bar missing</li><li>YouTube/Vimeo: doesn’t track play/ended events</li></ul>

----------------------------
**Version number:** 5.1.2 <a href="https://community.adaptlearning.org/" target="_blank"><img src="https://github.com/adaptlearning/documentation/blob/master/04_wiki_assets/plug-ins/images/adapt-logo-mrgn-lft.jpg" alt="adapt learning logo" align="right"></a>
**Version number:** 5.1.3 <a href="https://community.adaptlearning.org/" target="_blank"><img src="https://github.com/adaptlearning/documentation/blob/master/04_wiki_assets/plug-ins/images/adapt-logo-mrgn-lft.jpg" alt="adapt learning logo" align="right"></a>
**Framework versions:** 5+
**Author / maintainer:** Deltanet, plus forked code from Adapt Core Team, [contributors](https://github.com/deltanet/adapt-media-autoplay/graphs/contributors)
**Accessibility support:** WAI AA
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adapt-media-autoplay",
"version": "5.1.2",
"version": "5.1.3",
"framework": ">=5",
"homepage": "https://github.com/deltanet/adapt-media-autoplay",
"issues": "https://github.com/deltanet/adapt-media-autoplay/issues",
Expand Down
2 changes: 1 addition & 1 deletion js/mediaAutoplayView.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ class MediaAutoplayView extends ComponentView {
setVideoVolume() {
if (!this.mediaElement) return;
// Check for audio extension
if (!Adapt.audio) return;
//if (!Adapt.audio) return;
if (Adapt.course.get('_audio') && Adapt.course.get('_audio')._isEnabled) {
// If audio is turned on
if (Adapt.audio.audioStatus == 1) {
Expand Down

0 comments on commit 5bead57

Please sign in to comment.