Is it possible to embed open transcript in website along with youtube video? - youtube-iframe-api

I would like to embed a Youtube video on my website including the open transcript option. Is there any iframe parameter or alternative method available? Also, is it possible to show the video with an open transcript by default on both Youtube and on the website?

Related

How to customize embedded YouTube video players?

When you embed a YouTube video using its provided <iframe> code: you're not able to hide title and a couple other "features".
Some of these features could be disabled using parameters, back in a day. As of now: they're deprecated.
So, now I'm left with a client that needs to embed YouTube videos without all of that junk we see when hovering over the video: title, related videos, channel logo, etc.
From what I've researched, it's not possible to disable title and a some other features: be it using URL parameters or CSS+JS.
Although, I've come with a solution that has a lot of potential: not only for user's privacy, but also for UX. This solution is:
figuring out a way to extract YouTube videos source URL;
using extracted URL in <video> or <iframe>;
replicate YouTube player styles.
For the first part, I've used Invidious API. But I think you can also create an API that uses youtube-dl to extract videos URL (?).
In my tests, I didn't even had to install my own isntance of Invidious: I've used public API endpoints:
https://yewtu.be/latest_version?id=dasdsa312&itag=84
Where:
id: video ID;
itag: video stream format code.
Then, I made JavaScript code to:
dynamically get all available Invidious public instances;
generate a video element with sources to many different video quality and available instances.
These sources are generated depending on the query parameters available in my website URL:
https://riservato-xyz.frama.io/watch/?v=gprAWYQ47uY
With that in mind, whenever I need a customized YouTube player, I can use my own website to embed YouTube videos.
I understand the testing website (former url) is slow, indeed. Although, this is because I'm not using my own Invidious instance and rely on public instance. BUT IT WORKS!
<iframe width="560"
height="315"
src="https://riservato-xyz.frama.io/watch/?v=W_xIBfrdxQU" frameborder="0"></iframe>

Scraping youtube video with R, is it possible?

I would like to scrape / download youtube videos directly from youtube using R. So to clarify, I'm not interested in the meta data, video titles, or comments as much as the video itself (be it formated as a video or audio file).
Is this possible? And if so, is it legal? I cannot think of a reason why it shouldn't be, given that there exist tools with which one can download single youtube videos as audio files and given also that material published on youtube and openly accessible are literally exactly that: openly accessible and available.
I had a look at {tuber} and {Rselenium} but that is only good for retrieving meta data, not the actualy video or audio content.
Any experiences or suggestions?

Detecting progress on a Youtube video to change the state of a Wordpress page

On my Wordpress page, I have multiple Youtube videos embedded on 1 page per video. I would like to change something on the page if a Youtube video has been watched for at least 80%
This feature should work no matter if the video was watched on Youtube directly or in the embedded player.
Is that possible to implement and if yes, how?

is it possible to replace Youtube's Iframe Video Ads

is it possible to replace Youtube's embedded Video's Ads with my own video ads.
maybe using a video player to do that but how can i do?
for example. someone is embedding youtube videos somewhere else. he wants to show some video ads on those videos. how can he do that?
I doubt it is impossible. It is, however, illegal to do so. When using the YouTube Data API or the JS API you agree to their terms of service, which explicitly state that you may not alter or remove in-player ads of embedded videos (section II, paragraph 7).
Is it possible to replace Youtube's embedded Video's ads with my own video ads?
If you own the video the answer is YES, but if it's own by someone, the answer is NO. Only the owner/author of the video have rights to the ads of these video.
For more information, you can check this related SO question. It might give you an idea about your problem.
Also from the YouTube Help, it is stated here that:
You will automatically be opted into showing ads on embedded videos if
you've associated your YouTube and AdSense accounts and have enabled
your videos for embedding. Note that embedded videos will honor the
same ad enablement settings as videos on youtube.com.
If you don't want to show ads on your embedded videos, there is no way
to directly disable ads on just embedded videos, however, you may
disable your videos for embedding altogether.

Detecting Youtube video length with Asp.net

Is there any ASP.Net command that can detect how long youtube videos are automatically? On my website people can add youtube videos to the database but I don't wanna have to manually find out the length of every youtube video people add.
You might take a lil' look at the YouTube API. I haven't tried it, but I searched Google for 'YouTube API'.
http://code.google.com/apis/youtube/overview.html

Resources