mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
Fixed an issue with ajax errors
This commit is contained in:
@ -248,7 +248,9 @@ _V_.extend({
|
||||
if (request.status == 200 || local && request.status == 0) {
|
||||
onSuccess(request.responseText);
|
||||
} else {
|
||||
onError();
|
||||
if (onError) {
|
||||
onError();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -257,7 +259,9 @@ _V_.extend({
|
||||
request.send();
|
||||
} catch(e) {
|
||||
_V_.log("VideoJS XMLHttpRequest (send)", e);
|
||||
onError(e);
|
||||
if (onError) {
|
||||
onError(e);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -277,7 +277,7 @@ _V_.H5swf = _V_.PlaybackTech.extend({
|
||||
play: function(){ this.el.vjs_play(); },
|
||||
pause: function(){ this.el.vjs_pause(); },
|
||||
src: function(src){ this.el.vjs_src(src); },
|
||||
load: function(){ this.el.vjs_load(); _V_.log("load"); },
|
||||
load: function(){ this.el.vjs_load(); },
|
||||
poster: function(){ this.el.vjs_getProperty("poster"); },
|
||||
|
||||
buffered: function(){
|
||||
|
Reference in New Issue
Block a user