Delphi TWebBrowser: muting youtube video or disabling autoplay - delphi

I read this question: Mute YouTube sound in Delphi TWebBrowser but if I understand correctly, it is used for building my own JS/HTML page of preview youtube videos while I load the actual youtube video page and needs to silence it/disable its autoplay.
How can I either mute or disable the autoplay after loading the youtube video page?

Related

How to block ads in Youtube embed video?

I have a slider on my website below and I'm trying to play a Youtube video in the background.
https://aremajans.com/
When I add a Youtube video, ads automatically start playing on that video. How will I prevent this?

Autoplay embedded Youtube video's

I've been trying to let an embedded youtube video play automatically.
My link looks like this: https://www.youtube.com/embed/IJNR2EpS0jw?rel=o&?autoplay=1&mute=1
SO i've added the parameters ?rel=0, ?autoplay=1 ,mute=1
the Posts I've followed are :
Embedded YouTube iframes No Longer Autoplay
Autoplay embedded a YouTube Video
Is this actually possible due to the private changes of Autoplay and muted autoplay?
Yes it is possible to autoplay muted YouTube video, but the problem in your embed link is the ?(question mark you have used before autoplay, which is not letting it to autoplay).Use https://www.youtube.com/embed/IJNR2EpS0jw?rel=0&autoplay=1&mute=1, and I hope this will work.

Play YouTube or Vimeo Video on iOS fullscreen and without WebView

I know there are various libraries and approaches to play Youtube or Vimeo videos on iOS inside WebViews. Is there a way to play such a video without the use of a WebView at all? All I want to do is have my own "show video" button and when it's pressed then the default fullscreen video player on iOS should open and play the video from YouTube or Vimeo. Is that possible?
You can try with
https://github.com/0xced/XCDYouTubeKit
as reported in this thread:
How to embed a Youtube video into my app?

Plyr media player doesn't show Vimeo and doesn't toggle Youtube closed captions

guys!
I'm trying to find a media player that could playback Youtube, Vimeo and HLS URLs. It seems Plyr player (https://github.com/sampotts/plyr) is suitable, but I have some troubles with closed captions for Youtube and Vimeo videos. Although videos show captions in Youtube and Vimeo players and it is possible to toggle them, I wasn't able to load captions for Vimeo video at all and can't toggle Youtube captions using Plyr. Could you please give some examples how to solve this captions problem with Plyr? Or with another media player?
I've found out what is wrong with captions in Plyr for Vimeo videos.
Plyr.io uses Vimeo Player (https://github.com/vimeo/player.js) inside it, so it builds an iframe into our page to playback Vimeo link. This Vimeo iframe contains not only video block but also control buttons and author of the Plyr hides them with CSS trick to show only Plyr control buttons. Unfortunately, captions also get hidden with this trick.
So, as we can't access iframe content we can only:
try to come up with another CSS trick to hide only Vimeo controls and
let captions stay (but I'm not sure it is possible)
use Plyr without captions for Vimeo
do not use Plyr for Vimeo

How do I change the YouTube player on my web site

How do I change the YouTube player on my web site. Like http://vidsshare.com/
Use the IFrame API for the embed video. The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript.
Using the API's JavaScript functions, you can queue videos for playback; play, pause, or stop those videos; adjust the player volume; or retrieve information about the video being played. You can also add event listeners that will execute in response to certain player events, such as a player state change or a video playback quality change
Just check the link above to know more about it.
For more information, check this YouTube Player Demo. This demo demonstrates the YouTube Player API's functions. Embedded players must have a viewport that is at least 200px by 200px. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size.

Resources