Why won't my YouTube Player API load videos whose ID has an underscore? - youtube-iframe-api

I've tried the player.loadVideoById and the player.loadVideoByUrl but whenever the YouTube video has an '_' in the ID the video will not play. All other videos work fine.
This is an example of an id that will not work: 'NJ6_A9tQvlE'.

It has underscore and no misstakes:
<iframe width="420" height="315"
src="https://www.youtube.com/embed/XGSy3_Czz8k">
</iframe>

Related

How to enable video sond in revolution slider.?

I am facing an issue of no sound in revolution slider wordpress any one please guide me how to enable a background vimeo video sound in revolution slider.
my website url http://www.theautomotivecompany.co.uk/
thanks
If you would like to un-mute your background videos, please update your embed code to include the muted=0embed parameter. For example:
<iframe src="https://player.vimeo.com/video/76979871<b>?background=1?muted=0</b>" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
Found the article here: https://support.shufflehound.com/forums/topic/vimeo-video-sound-on-slider-revolution/

Wordpress encoded content to html

I have to write a Wordpress WXR importer for a custom platform. Everything is working well except for iframe and embedded content.
When I export from Wordpress, I get embedded content as
YouTube[youtube=http://www.youtube.com/watch?v=pY8jaGs7xJ0]
Instead of
<iframe width="560" height="315" src="https://www.youtube.com/embed/VH4VPjzT4O0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
If it's just for youtube, I can manually write a parser, but I am not sure what kind of embeds I will run into.
How can I convert this Wordpress embed format to plain html ?
Note: I use Node.JS/Express and cannot use Wordpress functions.

WordPress Layer Slider YouTube video embbed

I have using Layer Slider WordPress plugin and added YouTube embed code snippet for showing YouTube video as one slide. i have using a code snippet like below in one layer of this slider,
<iframe width="1400" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ?autoplay=0&rel=0&ecver=1" frameborder="0" allowfullscreen></iframe>
it's working. but how to set auto play stop option in video.
also tested the below code by placed &autoplay=0 at the end of the ID.
<iframe width="1400" height="400" src="https://www.youtube.com/embed/E5ln4uR4TwQ&autoplay=0&rel=0&ecver=1" frameborder="0" allowfullscreen></iframe>
Thanks
LayerSlider WP plugin has an option to autoload videos, which can be overriding the autoplay parameter of your embed video.
In the slider you want to put the video, go in the "Slider settings" tab and then choose the "Videos" submenu to enable or disable this option:

Include a dailymotion video in Cornerstone

I have a video on Dailymotion that I'd like to display on my Wordpress website (X-Theme with Cornerstone).
I use a Video Player element and when I paste the URL of the video in the SRC & Poster field no video is being displayed.
I don't know much about this so I am open to any suggestions. (Is there maybe an other element which is more appropriate for this ? )
I chose DailyMotion rather than Youtube because I need an annotation linking to a page from my website.
You need to use Embedded video feature of the x theme to integrate/add the dailymotion video:
Use the following code inside the Embedded video in the embed code section and replace the video ID.
<iframe frameborder="0" width="480" height="270"
src="//www.dailymotion.com/embed/video/xwr14q?autoplay=1&mute=1"
allowfullscreen></iframe>
Screenshot

Embed external video using Url Link in asp.net webpage

I have my external url link of a video in my sql server.How do I embed that video using my url link in asp.net page? Any suggestions will be helpfull.Thanks in advance.
Check out this article.
Basically, If those are youtube videos, you can do with code like this:
<iframe width="560"
height="315"
src="http://www.youtube.com/embed/fxCEcPxUbYA"
frameborder="0"
allowfullscreen></iframe>
In other cases, you can install a specific Helper to assist you.

Resources