forked from GromNaN/TubeLink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.php
36 lines (28 loc) · 946 Bytes
/
demo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/*
* This file is part of the TubeLink package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @licence MIT
*/
require __DIR__ . '/src/autoload.php';
$t = TubeLink\TubeLink::create();
?>
<!DOCTYPE html>
<html>
<head><title>Videos</title></head>
<body>
<h1>Youtube</h1>
<?php echo $t->parse('http://youtu.be/gHYfY9lZaRE')->render() ?>
<h1>Dailymotion</h1>
<?php echo $t->parse('http://www.dailymotion.com/video/xr9av5')->render() ?>
<h1>Vimeo</h1>
<?php echo $t->parse('http://vimeo.com/15247292')->render() ?>
<h1>Spotify</h1>
<?php echo $t->parse('https://embed.spotify.com/?uri=spotify:track:4bz7uB4edifWKJXSDxwHcs')->render() ?>
<h1>SoundCloud</h1>
<?php echo $t->parse('http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F17373708')->render() ?>
</body>
</html>