Fixed audio player mime, empty volume

This commit is contained in:
Igor Zhukov 2014-11-12 00:15:13 +03:00
parent 9e737854f0
commit bbdc02063d
3 changed files with 3 additions and 3 deletions

View File

@ -2018,7 +2018,7 @@ angular.module('myApp.directives', ['myApp.filters'])
var audioVolume = 0.5;
Storage.get('audio_volume').then(function (newAudioVolume) {
if (newAudioVolume >= 0.0 && newAudioVolume <= 1.0) {
if (newAudioVolume > 0 && newAudioVolume <= 1.0) {
audioVolume = newAudioVolume;
}
});

View File

@ -35,6 +35,6 @@
</div>
</div>
<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>
</div>

View File

@ -34,6 +34,6 @@
</div>
</div>
<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>
</div>