aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Unblock youtube via java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Unblock youtube via java" Watch "Unblock youtube via java" New topic
Author

Unblock youtube via java

akshay shetye
Greenhorn

Joined: Aug 12, 2009
Posts: 6
Youtube is banned in turkey. So i want to write a web application in j2ee via which people of turkey can sracrh /dowload and play youtube video. that is i want to devlop website similar tovideo75.com. I am uisng the following servlet. But what happens is that it doesnot stream the video as such. It only gets the player and one video screenshot to clint side. Then this player tries to download video from youtube.com. The moment the player tries to access youtube.com it gets blocked , as youtube is banned in turkey.So waht i want is that i want the whole video and other traffic to go through my site. I am currelyly using google data api to search youtube video. But whihile playing the player tries to get the data directly form youtube

How can i make the entire traffic go through my servre??

Currenly i am using a servlet. and one jsp

i have following line in jsp
<iframe src="/MyWebApplication/TestServlet"></iframe>
this is i am only caling the servlet in iframe

the follwing is my servlet code


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18988
    
    8

You can't hijack the client machine's proxy settings like that just by doing something on the server.

Seems to me the simplest way to change the browser's proxy settings -- if the user indeed wants to do that -- would be to display an ordinary HTML page which tells the user what the settings are and how to configure them in their browser.
akshay shetye
Greenhorn

Joined: Aug 12, 2009
Posts: 6
I think you misunderstood my question . I want to make a proxy server. Clint pc onccnet to my server .My server to youtube.
clintpc - my server - youtube

So here my srver is trying to download the video from youtube and trying to deliver it to clint in realtime
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unblock youtube via java