Hoi,
Bij deze geef ik, eindelijk, mijn YouTube-Class weg.. En deze is vandaag helemaal opnieuw gemaakt.
Het is daarom ook nog niet af, in dit topic post ik updates.
Wanneer is dit handig?
- Als je een YouTube downloader wilt maken.
- YouTube videos makkelijk in je eigen player wilt zetten.
In versie 1
- Basis.
- getVideoId
- getVideoTitle
- getVideoInfo
- getVideoUrls
- getVideo
Wat komt in versie 1.1
- getAudioUrls
- getAudio
- getRelatedVideos
Downloads
Versie 1: http://www.basmilius.com/cache/class.youtubecrack.1.txt
Demo Video Let op, mn host kan wat traag zijn door itt30.nl
http://www.basmilius.com/cache/video.php?id=5QYxuGQMCuU
http://www.basmilius.com/cache/video.php?id=IcrbM1l_BoI
Demo Audio Let op, mn host kan wat traag zijn door itt30.nl
http://www.basmilius.com/cache/audio.php?id=5QYxuGQMCuU
http://www.basmilius.com/cache/audio.php?id=IcrbM1l_BoI
How to use
Bas
Bij deze geef ik, eindelijk, mijn YouTube-Class weg.. En deze is vandaag helemaal opnieuw gemaakt.
Het is daarom ook nog niet af, in dit topic post ik updates.
Wanneer is dit handig?
- Als je een YouTube downloader wilt maken.
- YouTube videos makkelijk in je eigen player wilt zetten.
In versie 1
- Basis.
- getVideoId
- getVideoTitle
- getVideoInfo
- getVideoUrls
- getVideo
Wat komt in versie 1.1
- getAudioUrls
- getAudio
- getRelatedVideos
Downloads
Versie 1: http://www.basmilius.com/cache/class.youtubecrack.1.txt
Demo Video Let op, mn host kan wat traag zijn door itt30.nl
http://www.basmilius.com/cache/video.php?id=5QYxuGQMCuU
http://www.basmilius.com/cache/video.php?id=IcrbM1l_BoI
Demo Audio Let op, mn host kan wat traag zijn door itt30.nl
http://www.basmilius.com/cache/audio.php?id=5QYxuGQMCuU
http://www.basmilius.com/cache/audio.php?id=IcrbM1l_BoI
How to use
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [URL="http://www.php.net/dirname"]dirname[/URL][COLOR= #007700]([/COLOR]__FILE__[COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]/class.youtubecrack.php[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) ===[/COLOR] [COLOR= #0000BB]11[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$youtube[/COLOR] [COLOR= #007700]= new[/COLOR] YouTubeCrack[COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$youtube[/COLOR][COLOR= #007700]->[/COLOR]setVideoId[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$youtube[/COLOR][COLOR= #007700]->[/COLOR]getVideoUrls[COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/print"]print[/URL] [COLOR= #0000BB]$youtube[/COLOR][COLOR= #007700]->[/COLOR]getVideo[COLOR= #007700]([/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]hd720[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #DD0000]video/mp4[/COLOR][COLOR= #007700]]);
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/print"]print[/URL] [COLOR= #DD0000]Invalid request.[/COLOR][COLOR= #007700];
}[/COLOR]
?> Bas
Het word dan wel het type audio/mp4, dat is het enige wat youtube voorschotelt.

