opened
zkc168
username_0
I am playing RTMP stream.  when  happen network error,my code cannot ”error“ event ，follow is my code

var player = videojs('my-video', {}, function() {
	this.on('error', function(event) {
		 var time = this.currentTime();

		if(this.error().code === 2) {
			this.error(null).pause().load().currentTime(time).play();
		}
	});
});
network error cannot ”error“ event
issue
closed
zkc168
username_0
issue
reopened
zkc168
username_0
I am playing RTMP stream.  when  happen network error,my code cannot ”error“ event ，follow is my code

var player = videojs('my-video', {}, function() {
	this.on('error', function(event) {
		 var time = this.currentTime();

		if(this.error().code === 2) {
			this.error(null).pause().load().currentTime(time).play();
		}
	});
});
network error cannot ”error“ event
issue
created
zkc168
username_0
I am playing RTMP stream. when happen network error,my code cannot  trigger  ”error“ event ，follow is my code

var player = videojs('my-video', {}, function() {
    this.on('error', function(event) {
            var time = this.currentTime();

	if(this.error().code === 2) {
		this.error(null).pause().load().currentTime(time).play();
	}
    });
});
comment
closed
zkc168
username_0
issue
created
zkc168
username_0
I am playing RTMP stream. when happen network error,my code cannot  trigger  ”error“ event ，follow is my code

- [ ] 

var player = videojs('my-video', {}, function() {
    this.on('error', function(event) {
            var time = this.currentTime();

	if(this.error().code === 2) {
		this.error(null).pause().load().currentTime(time).play();
	}
    });
});
comment
reopened
zkc168
username_0
I am playing RTMP stream. when happen network error,my code cannot  trigger  ”error“ event ，follow is my code

var player = videojs('my-video', {}, function() {
	this.on('error', function(event) {
		 var time = this.currentTime();

		if(this.error().code === 2) {
			this.error(null).pause().load().currentTime(time).play();
		}
	});
});
network error cannot trigger “error”event
issue