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

Youtube embed: Adding optional vars such as modestbranding=1?


Any idea how you can set additional youtube player variables when embedding via JWplayer? I'm trying to figure out a way to set modestbranding to 1. Thanks

8 Community Answers

Todd

JW Player Support Agent  
0 rated :

Have you tried adding these additional variables to the end of the URL in the file: ’’ parameter? Our player simply requests whatever URL is in this place.

Danny

User  
0 rated :

It doesn't work. For some reason, whatever I put in there gets overwritten by the default variables set by JWplayer it seems.

Todd

JW Player Support Agent  
0 rated :

Just heard back from our engineers on this. They said we already use a completely chromeless YouTube player, so I don’t think there’s anything that would be affected by modestbranding.

What is it that you are trying to remove when using our player?

Danny

User  
0 rated :

Actually, I guess modestbranding isn't the variable in question. I'm trying to remove the suggested videos, and annotations.

Danny

User  
0 rated :

So for this it will be iv_load_policy=3 and rel=0 it seems.

Todd

JW Player Support Agent  
0 rated :

Just heard back from our engineers. We already set rel=0 in the embed.Here’s what we currently set:

html5=1
autoplay=0
controls=0
showinfo=0
rel=0
modestbranding=0
playsinline=1
origin=http%3A%2F%2Flocalhost%3A8888
enablejsapi=1
widgetid=1

They also said you can edit our Youtube provider directly via github: https://github.com/jwplayer/jwplayer/blob/2d59678c4cc70fb8c98b05dfcea24e8a95d0dab0/src/js/providers/youtube.js

The ytConfig object contains all of the parameters that get set on the URL

Danny

User  
0 rated :

When looking at the network resources, the youtube provider file seems to be loading from
http://ssl.p.jwpcdn.com/player/v/7.4.2/provider.youtube.js

Danny

User  
0 rated :

Within jwplayer.js, I can change the repo to my local directory, but it tries to pull jwpsrv.js file which isn't in the local installation. And it's not in that Girhub repo you provided either.

This question has received the maximum number of answers.