This is the code function sanitize_youtube_url_to_id($arg){ if(strpos($arg,'youtube.com/embed')!==false){ $auxa = explode('/','youtube.com/embed/'); if($auxa[1]){ return $auxa[1]; } } if(strpos($arg,'youtube.com')!==false || strpos($arg,'youtu.be')!==false ){ if(DZSHelpers::get_query_arg($arg,'v')){ return DZSHelpers::get_query_arg($arg,'v'); } if(strpos($arg,'youtu.be')!==false){ $auxa = explode('/','youtube.com/embed/'); $arg = $auxa[count($auxa)-1]; } } return arg; }
ARCHIVE
youtube
Posted on August 29 2016 / in PHP
I have struggled for some hours with this From my understanding you need to first get the list of subtitles languages first – in their v3 data api it is called captions.list ( link ) From there, you have the list and ids of each caption attached to the video id. Then, you can use
Posted on August 1 2011 / in Flash / 14 comments
Ok, so it’s been more then one year now since the html5 madness. Flaming versus discussions have mostly stopped or at least are not that flaming. Clients are changing their sites from flash to html5 or at least providing fallbacks ( the smart ones ). Stock flash is dropping, everyone wants their slider
Recent Comments