Go
Not registered? Sign up!

YouTube api not working?

Google Translate
72 posts | return to the Setup Problems forum | get the rss feed for this thread

Aug. 15, 2008Kristoffer

Hi, first of all thanks to Jeroen for making this player. I set it up for YouTube yesterday, and it worked fine. Today the player is not working. Images of the videos are shown, but when trying to play only an exclamation mark is shown. Anyone had the same problem or did I miss something?

The problem can be seen here: http://www.effektpedaler.dk/product.asp?product=3295&sub=478&page=1

Code:

<embed src="http://www.effektpedaler.net/flash/player.swf" width="400" height="625" bgcoor="000000" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://gdata.youtube.com/feeds/api/users/EMPRESSEFFECTS/uploads?max-results=50&orderby=viewCount&skin=http://www.effektpedaler.net/flash/skins/kleur.swf&playlist=bottom"/>

We are using an older version of the player placed on same server for soundclips, it works fine.

-Kristoffer

Aug. 15, 2008Ceasar

Yup I can confirm this issue
Also the example http://www.jeroenwijering.com/?page=wizard&example=13 isn't working

have reported this issue here
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/55957d39161c37b4/2b18de8d53befe98?show_docid=2b18de8d53befe98

Aug. 15, 2008Ceasar

@Jeroen

I think there is something wrong with the yt.swf
Video's can not be played anymore with the playlist
Single video's can be played
Message is

Youtube error(video not found?):
Then the link to the video

Aug. 15, 2008Videos not found

Yep, I just got this problem too. Exact same.

Aug. 15, 2008Alex

Yep. Same thing here. Would love an updated yt.swf file. Thanks!

Aug. 15, 2008Ceasar

Here an answer from youtube

Hi all, we are having a problem with the chromeless swf hosted on the gdata
server.

We hope to have it fixed very soon.

Until then, if you like, you can migrate to the new url of the player swf
(not longer needs a developer key!)


http://www.youtube.com/apiplayer

Aug. 15, 2008Ceasar

I tried this in the yt.as

var ytLocation:String = "http://www.youtube.com/apiplayer";
The yt.fla works then but after uploading no response so probally there needs some things to change

Aug. 15, 2008Bob

Interesting...I am currently testing an older version (3.16) so if they change parameters then I am not sure what to do to make 3.16 work. If I migrate to the new JW player, it seems it still doesn't work according to Ceasar with his changes. Besides, I dont know how to alter .as files and recompile to swf so I am completely lost. Please let me know if someone figures out a final solution.

Thanks

Aug. 15, 2008Ceasar

Latest answer from youtube

We just pushed the fix live, so your players will start working again.
We do encourage everyone to switch over to the
http://www.youtube.com/apiplayer swf, though.


It still doesn't work here

Aug. 15, 2008Bob

Ceasar - Do they know you are using the JW Player? Or do they think you are using the chromeless swf?

Aug. 15, 2008Ceasar

Look at the url I posted with youtube

http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/55957d39161c37b4/2b18de8d53befe98?show_docid=2b18de8d53befe98

they know it's the JWplayer but it affect's all who are using the link to the player http://gdata.youtube.com/apiplayer/cl.swf

It needs to be reset to http://www.youtube.com/apiplayer
I tried that and compiled the fla to a new yt.swf. But nothing happens so I think there need some more changes to be done.
I search through all the files in the JWplayer but I only could find the gdata url in yt.as

I will try some more stuff or we have to wait till Jereon fixes this.
I have sent him a private message

Aug. 15, 2008Bob

Thanks for the update...I am assuming what ever fix he comes up with won't help me for JW player 3.16 ???

Aug. 15, 2008Bob

FYI, the player started working again on its own with no changes on my part. It appears what ever changes google/yt made have finally propagated across their servers. Thank GOD!!!

Ceasar, thanks for all of your help!

Aug. 15, 2008andre

The problem here is the same, hope it will be solved soon...

Aug. 16, 2008Ceasar

I think I know where the mistake is but don't know how to solve it

First in yt.as the url to the player should be changed to
var ytLocation:String = "http://www.youtube.com/apiplayer";

then this url will be passed as a file name
<media:content url="http://www.youtube.com/v/zuj2OW60m5k&f=gdata_user_uploads"

This should be changed to <media:player url="http://www.youtube.com/watch?v=zuj2OW60m5k" />

But looking at all the as files availible I cannot find any reference for parsing these youtube xml files or removing the string &f=gdata_user_uploads

Anyone with more experience ?

Aug. 16, 2008pathum

on created xml file, youtube video playlists are working again , but youtube feeds are still not working.

Aug. 16, 2008Ceasar

Just talking to myself but also could be the problem with youtube as more people are reporting this issue
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/448aa1e11c623ec5/863b41e69159ff09?show_docid=863b41e69159ff09

Also wanted to point out that these new URLs break the YouTube player
on the iPhone app. I'm getting URLs like this:

http://www.youtube.com/v/QVfeLavkFso&f=gdata_videos


Should I parse out the f=gdata_videos part? Is this a permanent
change? Can drastic changes like this be communicated better in the
future?

Aug. 17, 2008Luis

Any updates on this issue? My site http://infinitube.net is essentially useless without a working video player, and I'm keen to get it fixed asap.

Aug. 17, 2008Ceasar

Are there any goeroe's online ?

In the mediaparser.as there is a reference to the xml content url

case 'content':
if(!itm['file'] && ObjectParser.MIMETYPES[i.@type.toString()]) {
itm['file'] = i.@url.toString();
itm['type'] = i.@type.toString();
if(i.@duration) {
itm['duration'] = Strings.seconds(i.@duration);
}
if(i.@start) {
itm['start'] = Strings.seconds(i.@start);
}
}
break;

media:content url="http://www.youtube.com/v/zuj2OW60m5k&f=gdata_user_uploads"

I think this should be
media:player url="http://www.youtube.com/watch?v=zuj2OW60m5k"
So I try to change the case 'content': to case 'palyer': but that doens't work

Any help would be appreciated

Aug. 17, 2008Ceasar

I think the latest version in the trunk has solved this issue
@Jeroen, perhaps you also should change the reverange to the chromeless player ?

var ytLocation:String = "http://www.youtube.com/apiplayer";

I made this update for the yt.swf

Download here
http://www.cfcms.nl/yt.swf

Aug. 17, 2008omega_1569

mine doesnt work -.-

Aug. 17, 2008Johni

Just curious, is there going to be a lot of errors (in the future) with playing youtube videos? I have about 50 vids on my site and I don't want them to become unavailable every other week.

Thanks, J

Aug. 18, 2008Videos not found

No joy here with the new yt.swf from Ceasar..

No word from the dev team?

Aug. 18, 2008Ceasar

You also have to download the latest player like I said in my post

Download here

http://code.longtailvideo.com/trac/browser/trunk/as3

@Johni.
Don't ask here but at the youtube developer site as there are the one's who are keeping changing things

Aug. 18, 2008pathum

thanks ceasar,

Aug. 18, 2008manu

thx Ceasar ! The new player and your yt.swf have resolved my problem with youtube playlists.
Good job.

Aug. 18, 2008Kristoffer

Thanks Ceasar, same here - your new yt.swf and the new player solved the problem, just great

Aug. 18, 2008andre

Thanks Ceasar!! You're the man!

Aug. 18, 2008Emile

I need to use the embed code. How does the embed code look like?

Aug. 18, 2008Savior

my youtube aint working... i almost tried everything...
the only thing not working is the youtube player.

Aug. 18, 2008pathum

new player works youtube videos. but video Quality is very low.. how to fix this.

Aug. 19, 2008Dario

Thanks Caesar, but.... don't work in ie7!!!! How fix for ie????

Aug. 19, 2008HolmesSPH

Pathum send me a link... I think we may have the same issue... I want to compare... Thanks

Aug. 28, 2008Myke

Yeah no go in IE. IE needs to die. Now. DIE!

Sep. 04, 2008Bob

Did YT change the playlist url format? The url doesn't start with gdata, it's a normal url and it does not work. Anyone else having issues?

Sep. 08, 2008peder

yeah one of my clients noticed this aswell, player cant find certain videos from youtube (file not found?) but the video does exist. any word on when this is likely to be fixed?

Sep. 24, 2008meghaa

you tube is not working. whnevr i tried 2 play video evry tim show ki download d new version of adobe jabki i hv d latest version of adobe flash player. the bottom of d page evry time shows error......whn dis problm fix? n i thought dat dere is sum prob. in my pc

Sep. 26, 2008Chitra

How i will get YouTube.API dll ?

Oct. 31, 2008nisha

hi,

I have a small query. 2 days back I dowloaded a new game in my system. the name of the game is "Text twist".With this game one more Software got downloaded. The name of the software is "shockwave". I felt for some time that some virus has gone in my system. So by means of Control Panel I removed and deleted both the softwares.

Now when I tried to use youtube. the video are not running properly.

What should I do to overcome this problem.

Thanks and Regards
Nisha

Dec. 01, 2008Moe

Nisha,

You need shockwave to view youtube videos. Go to http://get.adobe.com/shockwave/ and install it. It's not a virus.

Jan. 09, 2009Chaddoud

Hi folks,

I'm having problems with videos from youtube in flash. I'm using the ytplayer but only the first movie of my list return data like total time and current in the controls bar. Does anyone can help me?

Apr. 02, 2009Sean

I'm having a similar issue. I'm loading the youTube API into as2, have been for a few months. One day we're checking out the site and after the first video has been loaded and destoy()'ed, no other video will load. Not even the player loads. Just get nothing!

Anyone else have this problem?

Apr. 02, 2009John

Is there anybody in there? Its a big problem. Why you can't fix it since 1 year?

Apr. 03, 2009Sean

@John

I gave up and switched over to the Chromeless player. While it is more cumbersome in that you have to code all the controls yourself, it is waaayyy faster and more stable.
Seriously consider it.

Jun. 02, 2009kyo

does anybody knows how to integrate this

javascript:if(document.location.href.match(/http:\/\/[a-zA-Z\.]*youtube\.com\/watch/)){document.location.href='http://www.youtube.com/get_video?fmt='+(isHDAvailable?'22':'18')+'&video_id='+swfArgs['video_id']+'&t='+swfArgs['t']}

into the player? it`s a script that gives you the mp4 video file from youtube.
work`s great in browser ... but i`m not good at php or java .. si i`m asking yo .. it`s posibile to make it work in JW?

Jun. 09, 2009nextman

yeah thats exactly what we need. it puts out a link for the highest quality video available whether its flv or mp4.

Jun. 22, 2009Baris

Is there anybody able to run the chromeless flash player with the sample FLA in AS2.0? There is no response , i got only blackscreen.

Aug. 11, 2009savio

hey ppl

Aug. 11, 2009savio

my youtube is not working and i dk how to fixed and i ned help
plese ppl help me

Aug. 25, 2009saad

my youtube did not play videos, they show the problem that you have either old version Adobe flash player or javasript turn of. then i check it and install flash player 10 version and turn on java script, but the problem are remain.....plz do some thing to active my youtube

Sep. 16, 2009justjoe

having the same problem jw player 4.3.
it used to work fine on my website until just recently when i last treid to play from a playlist
please help

Oct. 03, 2009Dave

Seems like this problem is back, or worse This may be a youtube problem.

The videos on my site, from youtube do not load sometimes!!!!

This is annoying!

Oct. 03, 2009lost

 
I've noticed a lot of sites with dead YouTube embeds.

I think it might be because YouTube changed from this:http://www.youtube.com/v/jBAQU7Q7TZYto this:http://www.youtube.com/watch?v=jBAQU7Q7TZY

Oct. 04, 2009livelife

today it stopped working at all... any solution guys?

Oct. 04, 2009G design

anyone know if this problem gonna be solved by longtail? because i am working on a new site and i like to insert jw player with playlist from youtube..

sorry the bad english.. XD

Oct. 09, 2009ALEX

my you tube says : Hello, you either have JavaScript turned off or an old version of Adobe's Flash Player. Get the latest Flash player. i have already downloaded it please help mee. my msn is leb0spwn@hotmail.com

Oct. 09, 2009Ethan LongTail

Hi Alex,

This is Ethan from LongTail here to help you.

YouTube's API is working with the JW Player - http://www.longtailvideo.com/support/jw-player-setup-wizard?example=5, make sure you have JS Turned on and have the latest version of Adobe Flash on your computer.

Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.

Best Regards,
-Ethan

Oct. 13, 2009Keith

Has this issue been resolved, is there a fix, do we need to upload something new?

Oct. 14, 2009Lacy

Hi Ethan - what about youtube playlists?

Oct. 15, 2009Leroy Vaughan

Well, it's not working for me. I downloaded your player and got player-viral.swf instead of player.swf...

The first problem is that your zip file out of the box doesn't work with the wizard code that your website spits out:
http://www.longtailvideo.com/support/jw-player-setup-wizard?example=5

I tried it twice and it works on your site but not with the contents of your zip file. When I click on a video to load it into the player nothing happens. It's set to autostart too. When I click play, nothing but the JWPlayer logo spinning...

I tested my video url and it works on the wizard page and it also works in the browser.....

Any help would be appreciated:


function jwPlay(vidSrc){
var so = new SWFObject('player.swf','ply','470','320','9','#ffffff');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addParam('skin', '/YouTubeJwSkin/rei2.swf');
so.addParam('autostart', true);
vidSrc = vidSrc.substring(vidSrc.lastIndexOf('/')+1, vidSrc.indexOf('?'));
vidSrc = 'http://www.youtube.com/watch%3Fv%3D' + vidSrc;

//this is the concatenated url and it seems to work just fine on your example page.
//vidSrc = http://www.youtube.com/watch%3Fv%3DShjxjaXKMJQ

so.addVariable('file', vidSrc);
so.write('videoPlayer');
}

Oct. 15, 2009Roger Berry

@Leroy Vaughan,

You are mixing up Adobe Flash Player parameters with JW FLV Player flashvars.

Review the documentation for the Adobe Flash Player parameters. http://kb2.adobe.com/cps/127/tn_12701.html

Review the documentation for the JW FLV Player flashvars. http://developer.longtailvideo.com/trac/wiki/FlashVars

Oct. 15, 2009Leroy Vaughan

That doesn't help me much. There aren't any code examples on the second link, so it hasn't really cleared up much.

I went to the setup page and that's where the code was at...and I'm not using the embed code either.

Your links weren't any help at all.

Oct. 15, 2009Leroy Vaughan

I'm using swfobject and the downloaded zip file from the download page...

Also, only using HQ you tube videos: http://developer.longtailvideo.com/trac/wiki/FlashFormats#YoutubeVideos

I followed the code example on the setup wizard page. It works there, but not on my page.

I have tried extra querystring variables at the end of my vid url:

type=video
fmt=18

Nothing seems to work. But the urls are valid. They work on the setup wizard page and also when pasted into a browser url.

Thanks for the attempt Roger, but it wasn't any help.

Oct. 15, 2009Roger Berry

It's all about the attitude, man. Here's your tested, working code — I can't do much about the attitude.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

  <head>

    <script src="swfobject.js"></script>

    <script type="text/javascript">
      function jwPlay(vidSrc)
      {
        var crap = vidSrc.substring(vidSrc.indexOf('?v=') + 3);

        var so = new SWFObject('player-4.6.450.swf', 'ply', '470', '320', '9.0.124', '#FFFFFF');
            so.addParam('allowscriptaccess',   'always');
            so.addParam('allowfullscreen',     'true');
            so.addVariable('file',              encodeURIComponent('http://www.youtube.com/watch?v=' + crap));
            so.addVariable('image',             encodeURIComponent('http://img.youtube.com/vi/' + crap + '/0.jpg'));
          //so.addVariable('skin',             '/YouTubeJwSkin/rei2.swf');
            so.addVariable('autostart',        'true');
            so.write('player');
      };
    </script>

  </head>

  </body>

    <div id="player" class="player"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
    <a href="#" onclick="jwPlay('http://www.youtube.com/watch?v=ShjxjaXKMJQ'); return false;">Load ShjxjaXKMJQ</a>

  </body>

</html>

Oct. 19, 2009Leroy Vaughan

Thanks! Got it working.

I'm not sure what I was doing wrong though. I didn't change any references to .js files or even the player.swf and yt.swf.

Your help is greatly appreciated!

Oct. 19, 2009Leroy Vaughan

I take that back. This thing doesn't work for me in any browser. It will, however, work in the preview window of Homesite 5.

But then, I'm plagued by the problem of only allowing playback once and having to wait umpteen minutes before I can play the vid again.

sending events to the player doesn't work, and trying to get an object reference to the player doesn't work either.

I took that code above, pasted into an html document, changed the name of the player{ver}.swf file to player.swf and it does not work....

doesn't work....doesn't work.

Oct. 24, 2009FAHAD

hello please help me with this my you tube is not working from last 1 and half month i also uploaded flash player but it is of no use please tell me what to do

Oct. 29, 2009Kevin Reagan

It appears the same issues are popping up again today.

The standard example page doesn't work (i.e., http://www.longtailvideo.com/support/jw-player-setup-wizard?example=5).

It worked earlier today, then stopped working.

Any updates re: this ongoing issue?

Oct. 29, 2009Kevin Reagan

I can confirm the problem is with cookies (per Koen) here:

http://www.longtailvideo.com/support/forum/Bug-Reports/11064/Mediaplayer-with-Youtube-doesn-t-work-anymore

Nov. 03, 2009disabledman

Every time I go to you tube, I .get a message that says that the program is performing an illegal operation. Please, help me.

Nov. 03, 2009Ethan LongTail

Hi disabledman,

This is Ethan from LongTail here to help you.

Unfortunately, this looks like there is an issue with your computer. If you get an illegal operation on YouTube.com, this is not something we can help you with.

Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.

Best Regards,
-Ethan

Nov. 05, 2009strangerpixel

Hi - don't know if this helps but I'm experiencing a problem just with Firefox 3.0.5 (Mac).

http://www.longtailvideo.com/support/jw-player-setup-wizard?example=5

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.