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

Removing Youtube annotations

Could not reopen the older thread ( ) so I opened this new one.

Although last year it may have been the case that annotations were on in html5, this is no longer true ( )
iv_load_policy clearly states that it supports both HTML5 and flash players and that by setting iv_load_policy to 3, annotations will be off.

Is there any way we can get this with jw player? We used to have a Youtube embed / jw player solution which used jw player for all non youtube videos. We switched to a jw player only implementation and we cannot get the annotations off via jw player API.


Supported players HTML5, AS3
Description Setting the parameter's value to 1 causes video annotations to be shown by default, whereas setting to 3 causes video annotations to not be shown by default. The default value is 1.

3 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

There’s no current way to alter the URL our player uses to retrieve a YouTube video via the API. However, I will escalate this to our engineers to see if this is something they may be interested in adding in the future. I will say though that allowing this functionality would most likely add extra complexity and confusion to our users trying to embed YouTube videos, which is obviously something that we don’t want to do, but I will let the people who actually do the hard work decide. :)

As soon as I hear something back, I will let you know.


0 rated :

Hello Alex,

Actually is not that complicated at all. It is fairly straightforward.
Unfortunately we do not have access to the unminified / unobfuscated jw player javascript code, but here's how this can be easily done. JW player developers only need to modify the following.

somewhere in there's this piece of code
playerVars:d.extend({html5:1,autoplay:0,controls:0,showinfo:0,rel:0,modestbranding:0,playsinline:1,origin:location.protocol+"//"+location.hostname},b) which puts default config options for youtube player. Adding iv_load_policy:3 to the object will put annotations off by default.

So if you extend jw players playervars options for youtube and add iv_load_policy to the list, anyone will be able to turn annotations of and on as they wish.


JW Player Support Agent  
0 rated :

Hi, there.

I have heard back from our Engineers and they have stated that while they are not currently looking to make changes to their YouTube implementation, they will be open-sourcing it in the near future so that members of the open-source community may work on adding this functionality if they would like.

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.