Custom video player over youtube video player?

ItsYoBuddy

Rise And Grind!
Apr 6, 2008
1,609
17
38
Philly
I have a video site and I want to have a custom video player overlap the youtube video player and other video websites out there. I know its possible because many websites out there do it. They don't host any video from their website and get videos from other video websites. I tried searching google for an answer but could find none.

Anyone know how to go about doing this? The only idea that comes to mind is to buy the social media script from here: Youtube Clone Script - Video Sharing Script - Media Script - Youtube Clone and adjust the code around. I have a design for my site already so I don't want to use the one the social media script has. I also have someone coding the video site so I don't need their code other then the custom video player they have there. But I still don't know if this would work. Anyone have any suggestions?
 


I'd write a script to grab the FLV url from youtube, and from there you can use pretty much any player you want.

here's the code I use in c# to do it

Code:
        public static string GetVideoFlvUrl(string youtubeId)
        {
            WebClient client = new WebClient();
            string data = client.DownloadString("http://www.youtube.com/get_video_info?video_id=" + youtubeId);

            // update correct url
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.youtube.com/get_video?video_id=" + youtubeId + "&t=" + HttpUtility.ParseQueryString(data).GetValues("token")[0] + "&fmt=18");    
            req.AllowAutoRedirect = false;
            HttpWebResponse myHttpWebResponse = (HttpWebResponse)req.GetResponse();

            return myHttpWebResponse.Headers["Location"];
        }
 
The JW player works but it shows the youtube logo still. I see other sites not having the youtube logo. Anyway around this?
 
The JW player works but it shows the youtube logo still. I see other sites not having the youtube logo. Anyway around this?

they use a php file which uses curl to grab the video, its against the terms of service, but you can still do it until they block you

Logo is part of the api
 
It looks like you can't do it but I swear other sites get videos from youtube and don't host the videos and still don't have the YT logo. If anyone can do it I am willing to pay you for your services. Please PM me if you can do this.