
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
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
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.
It doesn't work. For some reason, whatever I put in there gets overwritten by the default variables set by JWplayer it seems.
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?
Actually, I guess modestbranding isn't the variable in question. I'm trying to remove the suggested videos, and annotations.
So for this it will be iv_load_policy=3 and rel=0 it seems.
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
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
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.