You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// When dealing with remote files, we can get into a situation where we start playing before AVPlayer has had the time to buffer the file to be played.
550
550
// To avoid the app crashing in such a situation, we only seek if both the player and the player item are ready to play. If not ready, we send an error back to JS land.
@@ -297,15 +304,15 @@ exports.defineAutoTests = function () {
297
304
}
298
305
};
299
306
media=newMedia(mediaFile,successCallback,failed.bind(null,done,'media1 = new Media - Error creating Media object. Media file: '+mediaFile,context),statusChange);
300
-
307
+
301
308
// CB-10535: Play after a few secs, to give allow enough buffering of media file before seeking
302
309
setTimeout(function(){
303
310
media.play();
304
311
},4000);
305
-
312
+
306
313
},ACTUAL_PLAYBACK_TEST_TIMEOUT);
307
314
308
-
it("media.spec.21 should be able to seek through file",function(done){
315
+
it("media.spec.20 should be able to seek through file",function(done){
@@ -330,23 +337,23 @@ exports.defineAutoTests = function () {
330
337
}
331
338
};
332
339
media=newMedia(mediaFile,successCallback,failed.bind(null,done,'media1 = new Media - Error creating Media object. Media file: '+mediaFile,context),statusChange);
333
-
340
+
334
341
// CB-10535: Play after a few secs, to give allow enough buffering of media file before seeking
335
342
setTimeout(function(){
336
343
media.play();
337
344
},4000);
338
-
345
+
339
346
},ACTUAL_PLAYBACK_TEST_TIMEOUT);
340
347
});
341
348
342
-
it("media.spec.18 should contain a setRate function",function(){
349
+
it("media.spec.21 should contain a setRate function",function(){
343
350
varmedia1=newMedia("dummy");
344
351
expect(media1.setRate).toBeDefined();
345
352
expect(typeofmedia1.setRate).toBe('function');
346
353
media1.release();
347
354
});
348
355
349
-
it("media.spec.19 playback rate should be set properly using setRate",function(done){
356
+
it("media.spec.22 playback rate should be set properly using setRate",function(done){
350
357
if(cordova.platformId!=='ios'){
351
358
expect(true).toFailWithMessage('Platform does not supported this feature');
0 commit comments