Our company is using brightcove player in our kiosks in local branch stores. The error as below occurs very rarely.
Could not download the video
Error Code: PLAYER_ERR_TIMEOUT
If I reload browser then resolve the problem in most case but we can't reload it manually every time when it occurs.
Brightcove defined custom errors
Thanks in advance.
I reply the question myself in first time. The below code can handle the errors.
myPlayer.on('error', function(err) {
var errNo = myPlayer.error().code;
if (errNo == '-2'){
blabla..
}
})
And there is another way. This code retry to connect again when any error occurred.
reloadOptions = {};
reloadOptions.errorInterval = 10;
myPlayer.reloadSourceOnError(reloadOptions);
I hope this code helps someone like me.
Thanks.