-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
24 lines (21 loc) · 712 Bytes
/
example.php
File metadata and controls
24 lines (21 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
include 'videoThumbLink.php';
$videoUrl1 = 'http://www.youtube.com/watch?v=g2cF4-tHvqI';
$videoUrl2 = 'http://www.dailymotion.com/video/xfbzic_richard-stallman-free-software-song_music';
$videoUrl3 = 'http://vimeo.com/3642750';
$videoUrl4 = 'http://xyz.com/124124';
?>
<style>
img {
width: 300px;
height: 200px;
}
</style>
<h3>Youtube</h3>
<img src="<?php echo videoThumbLink::getThumbLink($videoUrl1); ?>" />
<h3>Dailymotion</h3>
<img src="<?php echo videoThumbLink::getThumbLink($videoUrl2); ?>" />
<h3>Vimeo</h3>
<img src="<?php echo videoThumbLink::getThumbLink($videoUrl3); ?>" />
<h3>Not Recognized</h3>
<img src="<?php echo videoThumbLink::getThumbLink($videoUrl4); ?>" />