Fixed audio player mime, empty volume
This commit is contained in:
parent
9e737854f0
commit
bbdc02063d
@ -2018,7 +2018,7 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
var audioVolume = 0.5;
|
var audioVolume = 0.5;
|
||||||
|
|
||||||
Storage.get('audio_volume').then(function (newAudioVolume) {
|
Storage.get('audio_volume').then(function (newAudioVolume) {
|
||||||
if (newAudioVolume >= 0.0 && newAudioVolume <= 1.0) {
|
if (newAudioVolume > 0 && newAudioVolume <= 1.0) {
|
||||||
audioVolume = newAudioVolume;
|
audioVolume = newAudioVolume;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -35,6 +35,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<audio ng-if="audio.url" media-player="mediaPlayer.player">
|
<audio ng-if="audio.url" media-player="mediaPlayer.player">
|
||||||
<source ng-src="{{::audio.url}}" type="audio/ogg" volume="{{::volume}}" />
|
<source ng-src="{{::audio.url}}" type="{{audio.mime_type || 'audio/ogg'}}" volume="{{::volume}}" />
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
@ -34,6 +34,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<audio ng-if="audio.url" media-player="mediaPlayer.player">
|
<audio ng-if="audio.url" media-player="mediaPlayer.player">
|
||||||
<source ng-src="{{::audio.url}}" type="audio/ogg" volume="{{::volume}}" />
|
<source ng-src="{{::audio.url}}" type="{{audio.mime_type || 'audio/ogg'}}" volume="{{::volume}}" />
|
||||||
</audio>
|
</audio>
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user