<iframe width="853" height="480"
src="<?php echo 'https://www.youtube.com/embed/oLuKopMbl9k'; ?>"
frameborder="0"
allow="accelerometer;
autoplay;
encrypted-media;
gyroscope;
picture-in-picture" allowfullscreen>
</iframe>
How can I hide actual YouTube video URL in codeingiter / PHP from user,
I have hide the "src" attribute value so user no one can directly copy and paste it.
As far as i know, its not possible to hide a URL from user, user will always be able to download the video as long he can watch it in browser
EDIT: forget to mention you can try to use other platforms, but with you tube is not possible to hide as you can click on the logo and open in YouTube
Related
I want to upload an embedded youtube video in my laravel website.
For that I have uploaded an embedded youtube video link (provides from youtube embed option) in my admin panel and saved to database. Then I retrieved the video links from database and try to show it in blade template. But frontend only shows the video link as it saved in the database not the video.
<iframe width="300" height="220" src="https://www.youtube.com/embed/6T8stXj7Dzg?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
But if I manually used the links in the html then the video successfully shown.Like below code
<div id="panel-9-11-0-0" class="so-panel widget widget_sow-editor panel-first-child" data-index="27" >
<iframe width="300" height="220" src="https://www.youtube.com/embed/E7SCzULQYUQ?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<h3>title</h3>
</div>
How can I solve it ?
Follow the link to setup laravel project for uploading an embedded video in laravel
https://packagist.org/packages/cohensive/embed
blade part
#foreach($video as $data)
<div class="media">
<h4>{{ $data->title }}</h4>
<div class="media-body">
{!! Embed::make($data->links)->parseUrl()->getIframe() !!}
</div>
</div>
#endforeach
I am using facebook follow button. how can i capture that whether user successfully followed page or not in jquery or javascript?
below are my iframe code
<iframe id="facebookIf" src="https://www.facebook.com/plugins/follow.php?href=https%3A%2F%2Fwww.facebook.com%2Fzuck&width=78&height=65&layout=button&size=large&show_faces=true&appId" width="78" height="65" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>
I am including a Youtube video in my webpage, this is the code:
<div id="content">
<iframe class="aftermovie" width="800" height="450" src="//www.youtube.com/
embed/vjFA_UNSl9c?rel=0" frameborder="0" allowfullscreen>
</iframe>
</div>
The site is running in localhost, when I use Chrome to see the page I see the video but can't do anything, in Firefox everything runs like it is supposed to.
you need the http protocole in your src to make this work with chrome
<iframe class="aftermovie" width="800" height="450" src="http://www.youtube.com/embed/B4bb69Moff8?rel=0" frameborder="0" allowfullscreen></iframe>
I have a website running the following code:
<iframe class="fanbox" width="472" height="220" src="http://www.connect.facebook.com/widgets/fan.php?href=<?php echo urlencode('http://www.facebook.com/my-website-page'); ?>&width=472&colorscheme=light&show_faces=true&stream=false&header=false&height=220&css=<?php echo urlencode('http://mywebsite.com/css/fb-style.css'); ?>"></iframe>
It was working, but it's seems that facebook removed this method of getting the Fan Box. Now I receive a 404 Not Found Error: http://www.connect.facebook.com/widgets/fan.php
It was really removed/moved? How can I do this now?
You should use the Like Box here. If you just want the "Fans" images, then uncheck "stream", etc until you get what you desire. Then click "Get Code" and choose "IFrame" in the dialog box.
In your example, it would be:
<iframe src="//www.facebook.com/plugins/likebox.php?href=<?php echo urlencode('YOUR_FB_URL'); ?>&width=292&height=258&show_faces=true&colorscheme=light&stream=false&border_color&header=false&" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:258px;" allowTransparency="true"></iframe>
Frankly, I'm not sure what I'm doing wrong. This is my code, but for some reason, the map is outputting a blank iFrame with a source URL that if I click will send me to the proper map, so the URL is being input correctly, but it's not actually being displayed on my website.
<?php $addressStr ="516 East Liberty Street, Ann Arbor, MI 48104"; ?>
<iframe width="206" height="175" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php echo "http://maps.googleapis.com/maps/api/staticmap?center={$addressStr}&zoom=15&size=204x173&markers=color:orange|{$addressStr}&sensor=true&output=embed"; ?>"></iframe>
It's not an iframe. You need a standard <img> tag ?