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

Youtube embedding and ads


Jwplayer support,

I want to embed Youtube video on my website and use Jwplayer to play those videos, so far it worked fine bu the screen is not filled in my play video so there is the black lines on the right and left. how can I resize Youtube video tofill the full window without the black lines?

Also, I do not see any of the youtube ads playing on my website, does Jwplayer block youtube ads?, or they are disabled when doing embedding from youtube?

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

My name is Alex and I am one of the Support Engineers at JW Player. I will be more than happy to assist you with your questions.

In order to know how to exactly resolve your display issue, I would like to see a link to the page that the affected player is embedded on. If this is not possible, I would recommend testing out using the stretching configuring options available on our Configuration Options support article.

YouTube ads should come over with the content, as long as their API still allows it which I’m pretty sure it still does. If this is happening for you, can you please link me to a page that has the YouTube video and the ad embed and also link me directly to the related YouTube video?

Thanks!

shadi

User  
0 rated :

I think I am doing the emedding wrong, for example, when I replace the file location for the jwplayer to play with the youtbe page https://youtu.be/E357cGzOGLM, Jwplayer is smart enough to get only the video from that page plays only the video, of course with black strips left and right but if I try to use the https://www.youtube.com/embed/E357cGzOGLM, which is the embedding link from Youtube, Jwplayer will not be able to play the video.

So am I doing anything wrong? If yes, what is the right way to embedd YouTube videos into jwlplayer.

Also, I think because I do not use advertisement tags that's why it is not playing ads from youtube, right? or is it because I have the Jwplayer 7 standard version, no youtube ads are playing, and I should have the jwplayer ads?

Alex

JW Player Support Agent  
0 rated :

Hi, Shadi.

I tried embedding that YouTube video on a page, and I believe you’re talking about how the poster image (what appears before you start playback) is not filling the display. You can resolve this by adding stretching: “fill” to your embed code. You can see an example of this here: http://qa.jwplayer.com/~abussey/demos/70151-youtube.html

As for ads, our player takes whatever YouTube gives us via their API, so they may not be sending the ads with the video. Let me try to find a concrete answer for you.

Thanks.

Shadi

User  
0 rated :

No, not he poster image, the whole video plays with black lines on the left and right, and I am already using fill stretch, my videos are working fine, but youtube embedd ones are not allowing jwplayer to stretch them. I really find it strange...

Alex

JW Player Support Agent  
0 rated :

Hi, there.

As you can see from my test page, the video is stretching as expected using stretching: “fill”, so if it is still not working for you, there may be some other CSS conflicting with it on your page. Can you please give me a link to a page where you have the affected player installed?

Also, I have heard back that ads in YouTube videos do not come over their API. You can verify this yourself by embedding the YouTube video via their normal iFrame embed option:

<iframe width="420" height="315" src="https://www.youtube.com/embed/E357cGzOGLM"; frameborder="0" allowfullscreen></iframe>

Thank you.

This question has received the maximum number of answers.