Youtube embed code changed

Forum to report possible Nuevoplayer bugs and issues and Nuevoplayer 4 fixes by Nuevolab Team

Youtube embed code changed

Postby nuevolab » Thu Jan 20, 2011 10:37 am

Youtube changes their embed code from flash object to some iframe.
For Nuevoplayer owners it might be important to update youtube function which extracts youtube URL.
The function is located inside file 'nvconfig.php' or 'nvfunction.php'.
Directory can be different: in CLipshare: nuevo,nvp,nvlab. For AVS: 'nuevo' or 'media/nuevo'

Updated function looks like that:
Code: Select all
function get_youtube($embed) {
   $yt = '';
   if(strlen($embed)>0)
   {
      $pos = strpos($embed,"youtube.com/embed/");
      if($pos>0) {
         $key = substr($embed,$pos+18,11);
         return "http://www.youtube.com/watch?v=".$key;
      }
      $pos = strpos($embed,"youtube.com");
      if($pos)
      {
         preg_match('/youtube\.com\/v\/([\w\-]+)/', $embed, $match);
         return "http://www.youtube.com/watch?v=".$match[1];            
      }
   }
   return $yt;
}


Of course the file with mentioned function is updated in download section for registered users.

Good luck.
nuevolab
Site Admin
 
Posts: 99
Joined: Sun Sep 06, 2009 2:32 am

Youtube changes continued

Postby nuevolab » Sun Jan 30, 2011 12:58 pm

Unfortunately with embed code change there are more changes coming lately that limit youtube streaming using their official API.
You can find number of videos not possible to be streamed even if they are allowed to be embed and are not private.
This happens mostly with videos from Youtube official partner channels or custom Youtube channels.
Good example is custom VEVO channel and many artists channels supported by VEVO.
Generally this is connected to youtube ads campaigns,

Nothing can be done with it to the current version of Nuevoplayer.
If such video attempted to be played through API - gets youtube API 150 error and of course stops streaming.

Even if we change it in nearest future, and some videos will be streaming again, youtube ads will appear on it.
Not so good news, not elegant to play such videos, but that's how youtube decided.
To avoid double ads, to avoid current not playing videos we suggest in place of those videos that cannot be streamed in old way - use youtube embed player now, or even better not to use such videos at all. That's each user individual choice.

Ww will update our youtube API for Nuevoplayer soon, so it will stream each video again, but as I mentioned it won't be ever as it was before.
nuevolab
Site Admin
 
Posts: 99
Joined: Sun Sep 06, 2009 2:32 am

Re: Youtube embed code changed

Postby nuevolab » Sat Jul 02, 2011 4:56 am

Nuevoplayer 4 development is dicontinued.

New Nuevoplayer version is "5" and it comes with new youtube API, which play all youtube videos except private videos and those tha are not allowed to be embedded.
The plugin is written according to latest youtube actionscript 3 API. We also added several tweaks, took care about possible issues hat even latest API produce.

Thanks for patience.
nuevolab
Site Admin
 
Posts: 99
Joined: Sun Sep 06, 2009 2:32 am


Return to Nuevoplayer 4 Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron