File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ const supportedFeatures = function () {
242
242
features . push ( 'fullscreenchange' ) ;
243
243
}
244
244
245
- if ( browser . tv || browser . xboxOne || browser . ps4 || browser . mobile ) {
245
+ if ( browser . tv || browser . xboxOne || browser . ps4 || browser . mobile || browser . ipad ) {
246
246
features . push ( 'physicalvolumecontrol' ) ;
247
247
}
248
248
Original file line number Diff line number Diff line change @@ -125,8 +125,10 @@ class HtmlAudioPlayer {
125
125
126
126
if ( normalizationGain ) {
127
127
self . gainNode . gain . value = Math . pow ( 10 , normalizationGain / 20 ) ;
128
+ self . normalizationGain = self . gainNode . gain . value ;
128
129
} else {
129
130
self . gainNode . gain . value = 1 ;
131
+ self . normalizationGain = 1 ;
130
132
}
131
133
console . debug ( 'gain: ' + self . gainNode . gain . value ) ;
132
134
} ) . catch ( ( err ) => {
@@ -311,6 +313,9 @@ class HtmlAudioPlayer {
311
313
function onVolumeChange ( ) {
312
314
if ( ! self . _isFadingOut ) {
313
315
htmlMediaHelper . saveVolume ( this . volume ) ;
316
+ if ( browser . safari ) {
317
+ self . gainNode . gain . value = this . volume * self . normalizationGain ;
318
+ }
314
319
Events . trigger ( self , 'volumechange' ) ;
315
320
}
316
321
}
You can’t perform that action at this time.
0 commit comments