• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Unblock youtube via java

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Marshal
Posts: 28424
102
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic