Click here to Skip to main content
15,883,917 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sorry for my silly question.

I have an idea and have no way to do that.

I have a Client application (Windows form) and a Server application. Server application is Firefox browser. From Client, I will connect to the browser via Client application (which called "Remote application"). After that, I will see and use the browser on Client machine through Client application.

Next. Client will send to Server a message: "I want you connect to www.youtube.com". Server will receive Client request, and call the browser to connect and load page "www.youtube.com"

After loading, the page YouTube.com will appear on Client machine via Client application.

Then, I will type: "Harry Potter" in the YouTube textbox to search the film. By a click to the link, the "temporary files" of the film will be downloaded and stored in Server location, and I can start watching the film normally.

If I don't miss, the "temporary files" of the film - which will be downloaded on Server - will continue transferring to Client application as I can watch.

I mean that: When I require to watch "Harry Potter" film, the temporary files will be downloaded by Firefox browser on Server. Then, the browser will send it to Client application.

Here is my question: After Firefox browser download temporary files of the film, is there any way to show the film on Client application without receiving temporary files from Server?

That mean having a "Refresh" button on Client application. When Firefox browser finished downloading, I can click only the "Refresh" button to show the film. Client needn't to "re-download" the film from Server.

Thank you for help!
Posted
Comments
Philippe Mori 17-Mar-15 12:24pm    
I think that it does not make sense.
1) A browser is not a server.
2) Video are streamed and thus might not be stored as a file.
3) Your application would depends on implementation details that could change (the way YouTube or Firefox work).
4) You should retreive the data directly from the real server.
user8x86 17-Mar-15 12:37pm    
Thanks. I mean that my Server is like a Cloud, and Firefox browser is an application on that Cloud. Client can connect to Server and use that apllication.
Philippe Mori 17-Mar-15 13:02pm    
It makes even less sense. You don't run a browser on the server.

1 solution

No, your server application is not Firefox browser.

All browsers (IE, Firefox, Chrome, Opera, ...) run oin the client, and communicate with a server based application running in a webserver (another program that understands how to manaage websites).

Even if you include a web browser in your WinForms application - and that's easy to do, just drop a WebBrowser control on it) it still runs at the client, never the server.
Servers are unattended, so browsers do not make any sense there.

If you want to watch a film on your client, you have to send the video data in some form - which in your scenario means "sending the temporary files" to the client.

The alternative is Streaming[^]: where the video is "guided" by the server from the provider to the client but the data doesn't go via the server in the first place.
 
Share this answer
 
Comments
user8x86 17-Mar-15 12:33pm    
Thanks Mr. OriginalGriff.
I know your mean. You are talking about WebBrowser. But I want my Server apllication is Firefox browser, because if I don't download the film, I won't pay any cost for that.

From Client, the size of a message which will be sent to Server is very small. And, I will pay the cost of that message without the film.

I hope that clearly. Thank you.
OriginalGriff 17-Mar-15 12:57pm    
Um.
First off, you can't run the browser at the server.
Secondly, that sounds like you are trying to watch pay-per-view movies without paying, which is illegal and not something this site will be involved with in any way, even if you could do it - which you can;t, because the server would be downloading the film, so it would have to pay anyway...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900