iFrame & Autoplay for youtube does't work - wordpress

How can I autoplay a video using the new embed code style for Youtube?
Months ago my iFrame code including autoplay have worked with my embedded youtube video, but now It won't autoplay my video. I've tried all iFrame possibilities..
Here is my current code:
<iframe width="640" height="385" src="http://www.youtube.com/embed/0319ZgKMLzw?autoplay=1"> </iframe>
I'm using wordpress without any plugins.

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 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

Video js for wordpress

how to integrate video.js & VAST, VPAID ADS plugin to wordpress ?
I tried to paste the files in header.php file , but dosent work ?
Please guide on any plugin that works fine .
You can make the videos play on the fly in WordPress pages using the shortcodes.
Videojs HTML5 Player
Embed video file beautifully in WordPress using Videojs HTML5 Player. Embed HTML5 compatible responsive video in your post/page with video js.
https://wordpress.org/plugins/videojs-html5-player/
insert below code to your site Head
<link href="//vjs.zencdn.net/7.10.2/video-js.min.css" rel="stylesheet">
<script src="//vjs.zencdn.net/7.10.2/video.min.js"></script>
you can use of this plugin
then, use below example for post new video
<video
id="my-player"
class="video-js"
controls
preload="auto"
poster="//vjs.zencdn.net/v/oceans.png"
data-setup='{}'>
<source src="//vjs.zencdn.net/v/oceans.mp4" type="video/mp4"></source>
<source src="//vjs.zencdn.net/v/oceans.webm" type="video/webm"></source>
<source src="//vjs.zencdn.net/v/oceans.ogv" type="video/ogg"></source>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a
web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank">
supports HTML5 video
</a>
</p>
</video>

WordPress - AutoPlay iFrame video off required

So I've embedded a video into my WordPress website using the following code
<div class="videoWrapper"><iframe src="http://www.genericwebsitename.co.uk/wp-content/uploads/2015/11/generic-website-name-goes-in-here...mp4" width="300" height="300"></iframe></div>
I have attempted to add autoplay=0, autoplay=false but nothing seems to be working. It always auto plays.
As you can see, this is not a youtube link, the video file is uploaded to the WordPress site itself and linked via a iFrame tag.
Looking through the forums I cannot seem to find an answer that works.
Instead of iframe use bellow format
You can use video tag source, like this:
<video width="640" height="480" controls="controls" type="video/mp4" preload="none">
<source src="http://example.com/mytestfile.mp4" autostart="false">
Your browser does not support the video tag.
</video>

Resources