1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use hidden iframe on website for YouTube views?

Discussion in 'YouTube' started by IndianGrad, Jul 1, 2011.

  1. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    Hello guys

    I was trying to get views to a YouTube video just as you get for a webpage by loading it in a iframe, but the YouTube video didn't seem to load. I then tried it for a YOuTUbe channel and that again didn't help :(

    The code I used was:

    HTML:
    <iframe src="http://youtu.be/xxxxxxx" width="0" height="0" frameborder="0"></iframe>
    Am I missing something?

    Note: I don't want to embed it and autoplay it since autoplay views there aren't counted.
     
  2. jgeeked

    jgeeked Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    333
    Likes Received:
    316
    Location:
    The Moon
    I thought that the iframe method no longer worked with getting views?
     
  3. m0nster

    m0nster Senior Member

    Joined:
    Oct 20, 2010
    Messages:
    1,047
    Likes Received:
    1,005
    Occupation:
    NYC hustler
    Location:
    USA
    i'm sure YT prevented this from working a LONG time ago. sorry buddy
     
  4. agnosticon

    agnosticon Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 6, 2009
    Messages:
    520
    Likes Received:
    1,088
    Location:
    Mars

    Create 2 pages: a.htm & b.htm

    a.htm code:

    <IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=0 HEIGHT=0 SRC="http://yourwebsite.com/b.htm"></IFRAME>


    b.htm code:

    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://yotube.url/watch?v=VIDEOSTRING">

    -------
    this will work for you:)
     
    • Thanks Thanks x 3
    Last edited: Jul 1, 2011
  5. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    Ohk... Looks like I am pretty late to the party :(

    Could you suggest any better use for my iframe traffic...
     
  6. agnosticon

    agnosticon Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 6, 2009
    Messages:
    520
    Likes Received:
    1,088
    Location:
    Mars
    sure.. let me know how much traffic are you getting per day and what kind of traffic is it?
     
  7. Dark Lord

    Dark Lord Junior Member

    Joined:
    Nov 2, 2009
    Messages:
    140
    Likes Received:
    57
    This doesn't work, at all. :(
     
  8. agnosticon

    agnosticon Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 6, 2009
    Messages:
    520
    Likes Received:
    1,088
    Location:
    Mars
    you are doing something wrong, it does work, just tested it again
     
  9. phatzilla

    phatzilla Jr. VIP Jr. VIP

    Joined:
    Apr 9, 2009
    Messages:
    1,382
    Likes Received:
    1,022
    Can i get a link to the website you tested it on? The youtube page is 'loaded' but the video doesn't actually play.
     
  10. agnosticon

    agnosticon Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 6, 2009
    Messages:
    520
    Likes Received:
    1,088
    Location:
    Mars

    If its not working for you, use this script

    Code:
    <iframe class="youtube-player" type="text/html" width="640" height="385" src="http://you.tube.comwhatever/watch?v=aSa-lIrUhtI?fs=1&autoplay=1" frameborder="0">
    </iframe>
    
    <script type="text/javascript">
    <!--
    setTimeout('window.location.href="http://google.com"', 20000) /* 5 seconds */
    //-->
    
    
    after five seconds of viewing it will forward to google.com you can play with the time & url as you like.

    Regards,
     
  11. phatzilla

    phatzilla Jr. VIP Jr. VIP

    Joined:
    Apr 9, 2009
    Messages:
    1,382
    Likes Received:
    1,022
    That's what im saying, --youtube doesn't allow iframes and hasn't for a while. If you can get what you're saying to actually work for you on a site, i'll be impressed.
     
  12. jgeeked

    jgeeked Regular Member

    Joined:
    Jun 6, 2011
    Messages:
    333
    Likes Received:
    316
    Location:
    The Moon
    The share embed code that youtube give you is a iframe code unless you check use old embed code, so that leads me to believe that iframes must work on youtube if they give you a iframe code?
     
  13. IndianGrad

    IndianGrad Junior Member

    Joined:
    May 13, 2011
    Messages:
    156
    Likes Received:
    31
    Occupation:
    Internet Marketing
    Location:
    In the sea of blackhatters
    That's code for embedding videos in which case autoplay won't count as views - so the hidden iframe would be useless.


    True. I can't get YouTube videos to work in the way suggested.
     
  14. urbanbackground

    urbanbackground Registered Member

    Joined:
    Sep 25, 2010
    Messages:
    71
    Likes Received:
    8
    Ever got this to work? PM me
     
  15. puneetas3

    puneetas3 Senior Member

    Joined:
    Jan 8, 2012
    Messages:
    876
    Likes Received:
    384
    Thanks for this method. Got this working with my own twist. If you want to JV with me for this then send me $20000 through WU. PM me for details to send. Lol. this won't work anymore.
     
  16. kokoloko75

    kokoloko75 Elite Member

    Joined:
    Jan 1, 2011
    Messages:
    1,628
    Likes Received:
    1,940
    Occupation:
    Design director
    Location:
    Paris (France)
    Simple iFrame is too easy to detect...

    Also, maybe you should use the HTML5 version of YouTube videos player.
    Some good things to do with this ;)

    Beny
     
  17. djlobo

    djlobo Power Member

    Joined:
    May 10, 2011
    Messages:
    521
    Likes Received:
    152
    thanks for bringing up an ANCIENT topic -m-!