@@ -48,16 +48,19 @@ Player.prototype.setupDrm = function(type, options, callback, error) {
48
48
var config = { drm : { servers : laServer } }
49
49
var ui = this . ui
50
50
log ( "DefaultBand" , ui . maxBandwidth )
51
+ config . abr = { switchInterval : 1 }
51
52
if ( ui . maxBandwidth || ui . minBandwidth ) {
52
53
var restrictions = { }
53
54
if ( ui . maxBandwidth )
54
55
restrictions . maxBandwidth = ui . maxBandwidth
55
56
if ( ui . minBandwidth )
56
57
restrictions . minBandwidth = ui . minBandwidth
57
58
58
- config . abr = { restrictions : restrictions }
59
+ config . abr . restrictions = restrictions
59
60
}
60
61
62
+ config . streaming = { bufferingGoal : 1 , rebufferingGoal : 1 }
63
+
61
64
log ( "SetupDRM" , config )
62
65
this . shakaPlayer . configure ( config ) ;
63
66
if ( callback )
@@ -171,7 +174,7 @@ Player.prototype.setAudioTrack = function(trackId) {
171
174
172
175
this . shakaPlayer . configure ( {
173
176
abr : abr ,
174
- streaming : { bufferingGoal : 15 , rebufferingGoal : 4 }
177
+ streaming : { bufferingGoal : 1 , rebufferingGoal : 1 }
175
178
} ) ;
176
179
this . _language = found [ 0 ] . language
177
180
this . shakaPlayer . selectVariantTrack ( video , true )
@@ -211,7 +214,10 @@ Player.prototype.setVideoTrack = function(trackId) {
211
214
if ( ui . minBandwidth )
212
215
abr . restrictions . minBandwidth = ui . minBandwidth
213
216
214
- this . shakaPlayer . configure ( { abr : abr } ) ;
217
+ this . shakaPlayer . configure ( {
218
+ abr : abr ,
219
+ streaming : { bufferingGoal : 1 , rebufferingGoal : 1 }
220
+ } ) ;
215
221
this . _videoTrackHeight = video . height
216
222
this . shakaPlayer . selectVariantTrack ( video )
217
223
}
0 commit comments