Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Youtube AS3 API block ads help

Contributor ,
Aug 16, 2010 Aug 16, 2010

Hi all,

I sucesfully load youtube videos to my flash by following this steps: http://code.google.com/apis/youtube/flash_api_reference.html

Now I want to be able to block the ads, a friend said he did it by adding this code ?rel=0&showinfo=0 at the end of the video url in HTML but I am not sure how to do it for the AS3 code

Any help will be much appreciated

Cheers

rS

TOPICS
ActionScript
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 16, 2010 Aug 16, 2010

Try to append it to video url:

http://www.youtube.com/v/VIDEO_ID?rel=0&showinfo=0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 16, 2010 Aug 16, 2010

Hi Andrew,

I did by calling player.loadVideoByUrl("http://www.youtube.com/v/<MY_VID_ID>?rel=0&showinfo=0", 0); but no luck

Check out my output console:

player ready

player state: -1

player state: -1

video quality: small

player state: 3

GET AD BREAKS : BaseAdbreakDefiner

loading: [AdSlot: break.start=0 id=0 loader=[object AfvAdLoader]]

player state: 1

At some point is calling the ads, any ideas?
Cheers
rS

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 16, 2010 Aug 16, 2010
LATEST

Frankly, it would be quite stupid of youtube to allow ad skipping in the videos that are meant to show commercials. Its a money thing. So, I guess, even if there was a hack - it would be closed by youtube. Unless, of course, there is a legit way which I cannot find.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines