From 5bead574bc4479b769d111cb2903073684b8e3b8 Mon Sep 17 00:00:00 2001 From: Dan Gray Date: Wed, 19 Apr 2023 14:28:09 +0100 Subject: [PATCH] Early return stopped _startVolume being applied for courses without audio extension --- README.md | 2 +- bower.json | 2 +- js/mediaAutoplayView.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 40e0bc2..d974746 100644 --- a/README.md +++ b/README.md @@ -179,7 +179,7 @@ IE9 | Vimeo: ‘Sorry this video does not exist’. IE8 | ---------------------------- -**Version number:** 5.1.2 adapt learning logo +**Version number:** 5.1.3 adapt learning logo **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 diff --git a/bower.json b/bower.json index 9be52b8..7c0c31e 100644 --- a/bower.json +++ b/bower.json @@ -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", diff --git a/js/mediaAutoplayView.js b/js/mediaAutoplayView.js index c56429b..9169c47 100644 --- a/js/mediaAutoplayView.js +++ b/js/mediaAutoplayView.js @@ -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) {