How to remove more videos div in youtube api embed code - youtube-iframe-api

I have a issue in my website. I have integrated Youtube api embed script code.
When I pause video "ytp pause overlay" div showing there. I need to hide that when I pause that video.

Related

How to make in-stream ads show in youtube JavaScript iframe player

I have an embedded youtube iframe player in my html to play some youtube video, but I found that there are no in-stream ads when playing the video with my iframe player, no matter pre-roll or mid-roll, and those youtube videos will show ads when playing on youtube app or youtube website.
Can somebody help figure out the reason or tell me how to make the in-stream ads show in youtube iframe player?
thanks

embedding a video from onedrive in a wordpress blog post

Ive got a very basic WordPress website using the new 2017 theme and I'm trying to embed a simple video. The video is on OneDrive, but it should be the same as YouTube or any other source, and I can play the video fine in a plain HTML page.
When I insert the following HTML iframe in my post:
<iframe src="https://onedrive.live.com/embed?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw" width="320" height="180" frameborder="0" scrolling="no" allowfullscreen></iframe>
It shows a small blank frame for a few seconds when I preview the post, then it jumps to the onedrive embedded link showing the video full screen, so you cant see the post.
I tried using a plugin too and that didn't work either, somehow it had the same problem. I was using FV player which seems to be very popular but when I try to embed this video it says there "Video Issues". I know there's nothing wrong with the video because, again, I can insert this iframe in a plain HTML page and it works no problem. Only when I embed the iframe in a wordpress post does it pop out into the onedrive link and go full screen.
Any suggestions? This should just work and I don't know what I'm missing.
src="https://onedrive.live.com/embed?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw"
replace the embed with download. and use normal video tag instead of iframe.
src="https://onedrive.live.com/download?cid=3F3E866DF352275A&resid=3F3E866DF352275A%21106&authkey=ADg-86mHmhzI3mw"

a-frame: playing a youtube video on a plane

I have been trying to show a youtube video inside an a-frame entity. When I use the a-video tag it gives a CORS error.
<a-video src="https://youtube.com/..."></a-video>
I have tried the a-link but nothing seems to happen
<a-link src="https://youtube.com/..."><a-link>
I would like the user to click on the plane (wall) to play a video. Any suggestions on how this can be achieved.
Thanks
Raj
The official a-frame FAQ says this:
No. You could proxy YouTube videos as a texture or download them locally to serve, but that is against their terms of service.
Check out the the second link for a proof-of-concept.
I think they only want you to embed their videos via the iframe embed code you get when you right click a video on youtube and then hit "Copy embed code", and that would not work in aframe as far as I know.

Show YouTube video main page Drupal

I would like to show a youtube video when someone arrives on my drupal website. So basically, I want to launch a video in the main page as an overlay to the site.
How could I do? If it is possible without installing any modules?
I'd really appreciate any help, Thanks.
Regards.
You could use a JavaScript modal to act as the container to play the YouTube video.
Then use PHP sessions to determine if the JS modal has to be launched or skipped.

How to Over ride youtube external style?

I'm working on a website and i use a wordpress plug-in that embeds youtube videos.
Now it has this great option to show only an image of the video and load the video only if you press the video so the page won't take a lot of time to load.
The problem is that in that mode it takes that video photo from youtube and it also takes a big, red, play button image that is ugly as hell :)
Now that button's css is coming from some external link (http://s.ytimg.com/yts/cssbin/www-embed-vflSBO3VV.css) and i don't know how to over ride it.
Any suggestions?
That is the site i'm working on btw - http://www.lab.gezerweb.com/ClipPress/
Thanks.
I believe you're talking about an embed that uses controls=2, correct? (See https://developers.google.com/youtube/player_parameters#controls)
If so, then no, there's no way to override the default play button in the cued state.

Resources