How to stop Iframe autoplay - php

This is my code :
<iframe frameborder="0" height="650" marginheight="0" marginwidth="0" scrolling="no" src="http://www.1malaysiatv.com.my/embed/player.php?ch=alhijrah&width=920&height=580" width="780" __idm_id__="0"></iframe>
How to make this code not play with itself . i mean autoplay=0 or autostart=false
i have done many style but cannot stop it from play

An iframe cannot play anything by itself, so you also can't tell it not to autoplay. An iframe just loads a page (the src you provide), and it is the contents inside that page that can play, like in this case the video.

try below code
<iframe frameborder="0" height="650" marginheight="0" marginwidth="0" scrolling="no" src="http://www.1malaysiatv.com.my/embed/player.php?ch=alhijrah&width=920&height=580&autoplay=false" width="780" __idm_id__="0"></iframe>

Related

add the background music on website by using iframe

I tried to add the code into body tag but it doesn't work.
<iframe width="0" height="0" src="here.mp3" frameborder="0" allowfullscreen></iframe>
you can use embed tag for this like below
<embed src="yourMusic.mp3">
OR
<audio src="yourMusic.mp3">
Also, you can check more options here https://www.w3schools.com/tags/tag_embed.asp

I have bbpress-bundled-with-wordpress

If I write :
<iframe src=http://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2Fbarackobama%2Fposts%2F10154508876046749&width=500 width="500" height="527" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
Then facebook post is embedded but it is followed by a weird box.
Sample:
Did I type in something wrong?

Gif from external video

I have a list of video thumbnail and I want, when onmouseover, succeed in watching some images of the video
This is the code:
<iframe src="https://drive.google.com/open?id=0B2w5tmFmifnDUkpHRmZ4VEJ1Rzg" scrolling="no" frameborder="0" width="700" height="430" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true">

iframe google map is not working

I am using an iFrame to show google-map, but it is not working.
If I paste the URL into the browser, then it is showing the exact location.
I don't know why it is not working.
My HTML code:
<div><iframe src="<?php echo $uni['GoogleMapLink'];?>" width="97%" height="50%" frameborder="0" style="border:1px solid #ccc;"></iframe></div>
<?php echo $uni['GoogleMapLink'];?> is https://www.google.co.in/maps/place/Birmingham+City+University/#52.517047,-1.897309,17z/data=!3m1!4b1!4m2!3m1!1s0x4870b
The output in the browser is:
<div><iframe src="https://www.google.co.in/maps/place/Birmingham+City+University/#52.517047,-1.897309,17z/data=!3m1!4b1!4m2!3m1!1s0x4870bcf7bed14f49:0x783aa84ea9692f19" width="97%" height="50%" frameborder="0" style="border:1px solid #ccc;"></iframe></div>
You are not allowed to display that URL in an iframe. If I create a fiddle containing your code:
<div><iframe src="https://www.google.co.in/maps/place/Birmingham+City+University/#52.517047,-1.897309,17z/data=!3m1!4b1!4m2!3m1!1s0x4870b" width="97%" height="50%" frameborder="0" style="border:1px solid #ccc;"></iframe></div>
and look in the javascript console, I see:
Refused to display 'https://www.google.co.in/maps/place/Birmingham+City+University/#52.517047,-1.897309,17z/data=!3m1!4b1!4m2!3m1!1s0x4870b' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
You should look at the Embed API or use Google's tools to create a map you can put on your page.

Facebook iframe like button not working

my facebook iframe like button is working offline but not online on the server..this is the code used:
<iframe src="http://www.facebook.com/plugins/like.php?app_id=125925834166578&href=http%3A%2F%2Fwww.facebook.com%2FBaradei.Presidency&send=false&layout=button_count&width=450&show_faces=true&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>
And this is the webpage in which the like button at the bottom of the page isn't working http://www.ali_lsheikh.0fees.net/baradei.html
And here is it embeded in the facebook page
http://www.facebook.com/Baradei.Presidency?sk=app_103822229704881
I think you need to replace the development app ID with your production app ID.

Categories