Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Can we use jwplayer events 'setError' and 'error' both in code?


Hi ,

Player info:
JWplayer 7.8.1
Flash Not installed, HSL enabled

Here my question is, can we use 'setupError' and 'error' both for tracking errors related to setup and media errors separately.

my understanding is , setupError is for capture configuration related errors , whereas all media related errors will be capture using 'error' event.

has anybody phase any issue while using both.

Example:

playerInstance.on('setupError', function (event) {
// your code come here
}

playerInstance.on('error', function (event) {
// your code come here
}



I observed both events are triggering one by one because of which my error log keep increasing duplicate data,

Step to reproduce, refer latest jwplayer 7.8.1 document for setup embed code using javascript, uninstall flash from your system specifically on windows 7 and IE 11 browser, and reload the page.

Expected result : It will through setupError only .


am i doing something wrong here, please suggest.

2 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi there,

You are not doing anything wrong – it looks like the player fires both the setupError and error events when Flash is not available in IE, but it only fires the setupError event in other browsers. I’m going to have to escalate this to our Engineering team to see what they say. As soon as I hear back, I will let you know.

Thank you.

Alex

JW Player Support Agent  
0 rated :

Hi there,

I have heard back from one of our Product Managers who advised me that they wrote this up as a bug report. I do not have an estimate on when to expect this to be resolved. You can keep an eye on our JW 7 Release Notes page as we post release notes and bug fixes with every new update.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.