YouTube Playlist Generator

Discussion in 'Websites' started by MrLeN, Aug 15, 2008.

  1. MrLeN

    MrLeN Well-Known Member

    Messages:
    406
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    120
    #21
    Oh, you mean don't use YouTube embed code? There is some other embed code I can use?
     
    MrLeN, Aug 16, 2008 IP
  2. hsbsitez

    hsbsitez Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #22
    hsbsitez, Aug 16, 2008 IP
  3. MrLeN

    MrLeN Well-Known Member

    Messages:
    406
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    120
    #23
    Oh.. I see. I apologize. I thought you were trying to tell me not to bother making my website because someone else has already made a player. I was getting really offended. I thought you were being smart. OKies, I will take a look into this. Thanks for the suggestion.

    Also, just so you know I have figured out how to make the YouTube video move from the previous video to the next video. So I pretty much have all the functionality I need now. I probably wont use the site you showe me above - because I've already spent too much effort getting this player working (it's been really hard), but I'll certainly check it out for ideas.

    Again, sorry for taking you the wrong way.
     
    MrLeN, Aug 16, 2008 IP
  4. hsbsitez

    hsbsitez Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #24
    tell me when u have that functionality on your site, I am interested in your solution aswell.
     
    hsbsitez, Aug 16, 2008 IP
  5. MrLeN

    MrLeN Well-Known Member

    Messages:
    406
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    120
    #25
    Well, I found the solution on this page:

    http://code.google.com/apis/youtube/js_example_1.html

    If you view the source and then find:

    
    function setytplayerState(newState) {
              updateHTML("playerstate", newState)
            }
    
    Code (markup):
    Then change it to:

    
            function setytplayerState(newState) {
              updateHTML("playerstate", newState);
    	  if (getPlayerState() === 0) location.href = 'http://www.google.com';
    	  else setTimeOut(testState,1000);
            }
    
    Code (markup):
    When the player ends, it will redirect to Google

    You can use that functionality with some PHP to redirect to the next page. In my case all I gotta do is redirect it to my video ID &p=2 or &p=3 etc etc

    Also, I am going to add a textarea which has embed code, just like YouTube has. So if someone is viewing a video, they can simply get that code and be able to launch the video they're watching from their own website. It will be more viral that way.

    I also figured out how to get the YouTube video names from the website, so I can easily list the playlist videos on the side (just like YouTube Playlists).. I have that functionality working on http://www.tubeshine.com/list-spy.php - which gets video names on the fly.

    I am going to put pagination on that page and list 10 at a time. I am currently trying to figure out how to display the latest videos sorted by date added, but it's hard because I already have a loop inside a loop. I am not a programmer you see. I am just an ideas guy. I really struggle with programming. But I get things done just from sheer determination and persistence.

    I don't even want to know about programming. I just learned by stealth. Out of need. I have more of an interest in SEO and marketing and building networks of sites and all that sort of thing. I am more interested in front end stuff and copy.

    Anyway, with a bit more determination, I'll get TubeShine working just fine. The average programmer would look at my code and laugh their guts out for 3/4 of an hour (I know that), but I am doing my best -- and it does the job. Maybe that's why I got so offended lol - because I put so much effort into it.
     
    MrLeN, Aug 16, 2008 IP
  6. avpx

    avpx Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #26
    Is it only me or the player doesnt work?
     
    avpx, Aug 16, 2008 IP
  7. MrLeN

    MrLeN Well-Known Member

    Messages:
    406
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    120
    #27
    It's working for me. What's happening?
     
    MrLeN, Aug 16, 2008 IP
  8. MrLeN

    MrLeN Well-Known Member

    Messages:
    406
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    120
    #28
    I have now fixed TubeShine.

    It was on the backburnder for a while there.

    But now it "automatically" moves from one video to the next.

    Please try it out and let me know what you think!

    http://www.tubeshine.com
     
    MrLeN, Mar 7, 2009 IP