Results 1 to 13 of 13
  1. #1
    Infinitry's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    1
    My Mood
    Amazed

    Question [Help]Make a youtube video player

    can you guys help me to figure out how to make a youtube video player using VB 2008. I found a code - >
    Code:
     Dim Str As String = TextBox1.Text.Replace("/watch? v=", "/v/")
            AxWindowsMediaPlayer1.URL = Str
    .... but its not working. When I press the play button, it just loads -> connecting...bla bla not playing. Any help out there?

    thank you

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Goto the tuts section, Read My API tutorial.

    It has everything you will need to access Youtube API and all of it's features


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. #3
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Lol you can find almost anething in your sig tuts >.<

  4. #4
    Angeal's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    18
    yea i want to know this too
    could be usefull

  5. #5
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful

    Wink

    Quote Originally Posted by Infinitry View Post
    can you guys help me to figure out how to make a youtube video player using VB 2008. I found a code - >
    Code:
     Dim Str As String = TextBox1.Text.Replace("/watch? v=", "/v/")
            AxWindowsMediaPlayer1.URL = Str
    .... but its not working. When I press the play button, it just loads -> connecting...bla bla not playing. Any help out there?

    thank you
    I think you have 2 errors here:

    1: You have used a space between ? and v (/watch? v=), so no replacement will take place.
    2: I think windows media player cannot load swf ('/v/' loads swf not flv).

    Here is what you need to do in order to play:

    Create a project.
    On the toolbox, right click any item and click "Choose Items" as shown;


    Now select the "Shockwave Flash Object" from the COM components and click "OK".



    Now the object will appear in the toolbox. Drag it to the form and dock it to the container.



    Rename the control to "Ytube".
    Double click the form and write the following code:

    [php]'Replace the videoID with your video ID
    Dim videoID As String = "https://www.youtube.com/watch?v=vnMqkZmuEC0"
    'The replacement was your first mistake.
    videoID = videoID.Replace("/watch?v=", "/v/")
    ytube.Movie = videoID
    [/php]



    Enjoy the video

  6. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    API > then anything, best to study it


     


     


     



    The Most complete application MPGH will ever offer - 68%




  7. #7
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by NextGen1 View Post
    API > then anything, best to study it
    Agree, but if they just want to watch the video, I don't think API is necessary.

  8. #8
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Right, But I assume this is a Full player,

    Quote Originally Posted by threadstarter/OP
    can you guys help me to figure out how to make a youtube video player using VB 2008.
    Flash Player with Static or modified URL is not a Youtube Video Player,
    ,That code can play any flash url. so in a sense it is a flash player.

    Why not take advantage of full integration,

    All you are doing is embedding flash and taking advantage of it by navigating to a URL.

    API will allow you to use your own buttons, own GUI, etc etc, PLus you can do video searches, and play other videos, as opposed to requiring the user to enter in a url or location (in this case or above example, the player is static, if you add a textfield to replace it being static, it still requires a c&p url, using API negates that) yes more complex, but also more advanced, doesn't hurt to learn
    Last edited by NextGen1; 03-18-2010 at 11:37 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  9. The Following User Says Thank You to NextGen1 For This Useful Post:

    MJLover (03-18-2010)

  10. #9
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful

    Talking

    Quote Originally Posted by NextGen1 View Post
    Right, But I assume this is a Full player,



    Flash Player with Static or modified URL is not a Youtube Video Player,
    ,That code can play any flash url. so in a sense it is a flash player.

    Why not take advantage of full integration,

    All you are doing is embedding flash and taking advantage of it by navigating to a URL.

    API will allow you to use your own buttons, own GUI, etc etc, PLus you can do video searches, and play other videos, as opposed to requiring the user to enter in a url or location (in this case or above example, the player is static, if you add a textfield to replace it being static, it still requires a c&p url, using API negates that) yes more complex, but also more advanced, doesn't hurt to learn
    Ya, agree !!! I made 1 with the API long time ago. API is really superb. Gives you every minute detail. Best for making a completely customized Youtube.
    The reason I posted the little tutorial after your post about API is that he asked for a simpler solution and he can't even do string replacement correctly and API will be difficult as hell for him !!
    Last edited by MJLover; 03-18-2010 at 11:50 AM.

  11. The Following User Says Thank You to MJLover For This Useful Post:

    NextGen1 (03-18-2010)

  12. #10
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Agreed, Still worth the read , Web Services will be needed sooner or later, in future cases there is almost no way to learn how to use custom web services, so best bet is to start with something that has some documentation is all


     


     


     



    The Most complete application MPGH will ever offer - 68%




  13. The Following User Says Thank You to NextGen1 For This Useful Post:

    MJLover (03-18-2010)

  14. #11
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful

    Talking

    Quote Originally Posted by NextGen1 View Post
    Agreed, Still worth the read , Web Services will be needed sooner or later, in future cases there is almost no way to learn how to use custom web services, so best bet is to start with something that has some documentation is all
    Agree, btw I am making a thread tracker. Of which you will get the most benefit as a mod (what is minion ???)

    /Our agreeing will take this thread to many pages, so close it
    Last edited by MJLover; 03-18-2010 at 01:22 PM.

  15. #12
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    @ Closing,

    Unless

    A. Op (thread starter) Requests Close
    B. Issue is marked Solved (resolved)
    C. Or me or mods deem it so

    This thread stays open (no offense) this will be a beneficial thread and as discussed in another instant, if good can come from it, no need to close it.

    In the mean time, no reason to close it.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  16. #13
    MJLover's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Neverland
    Posts
    759
    Reputation
    33
    Thanks
    110
    My Mood
    Cheerful
    Quote Originally Posted by NextGen1 View Post
    @ Closing,

    Unless

    A. Op (thread starter) Requests Close
    B. Issue is marked Solved (resolved)
    C. Or me or mods deem it so

    This thread stays open (no offense) this will be a beneficial thread and as discussed in another instant, if good can come from it, no need to close it.

    In the mean time, no reason to close it.
    Ok, ok, No problem , I am actually surprised !!

Similar Threads

  1. [Tutorial]How to make a Youtube Video Downloader
    By o0OpurezO0o in forum Programming Tutorials
    Replies: 9
    Last Post: 11-06-2010, 09:03 PM
  2. [Help] YouTube Video in Sig?
    By Rave. in forum Suggestions, Requests & General Help
    Replies: 1
    Last Post: 06-26-2010, 02:50 AM
  3. Help! Youtube videos don't come up in my sig!
    By Viper 85626 in forum General
    Replies: 12
    Last Post: 05-16-2010, 04:32 PM
  4. I am making Crossfire hack video and i need help...
    By Brumbo in forum CrossFire Hacks & Cheats
    Replies: 15
    Last Post: 08-03-2009, 04:39 AM
  5. Help making video
    By nighthawk3 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 09-07-2008, 08:49 PM