C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-31-2009, 08:57 PM   #1
Registered User
 
Join Date: May 2009
Posts: 13
Load flash movies directly from any source (no temporary files)

Hello, everybody!

As known, Flash Player is always copying swf file from I-net before playing it. But how can we load flash movies directly from any source without usage of temporary files to protect this swf from any other outside access?
Poche is offline   Reply With Quote
Old 06-02-2009, 03:10 AM   #2
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
I highly doubt it downloads it before playing.
No, it streams the file. In other words, it downloads pieces of information which is stored into memory, decoded and played back. No temporary files...
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-02-2009, 08:33 PM   #3
Registered User
 
Join Date: May 2009
Posts: 13
Flash video do copy, here is the link
Poche is offline   Reply With Quote
Old 06-02-2009, 08:53 PM   #4
int x = *((int *) NULL);
 
Cactus_Hugger's Avatar
 
Join Date: Jul 2003
Location: Banks of the River Styx
Posts: 891
Quote:
Originally Posted by Poche View Post
Hello, everybody!

As known, Flash Player is always copying swf file from I-net before playing it. But how can we load flash movies directly from any source without usage of temporary files to protect this swf from any other outside access?
And so what if you do? If it comes across an HTTP stream, I can still mimic that same HTTP request (or simply eavesdrop on the real HTTP request), and store that. Strip the HTTP header, and done: I have the .flv file.
This is likely part of Flash itself, and there's probably not much you can do about it.
__________________
long time; /* know C? */
Unprecedented performance: Nothing ever ran this slow before.
Any sufficiently advanced bug is indistinguishable from a feature.
Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
The best way to accelerate an IBM is at 9.8 m/s/s.
recursion (re - cur' - zhun) n. 1. (see recursion)
Cactus_Hugger is offline   Reply With Quote
Old 06-03-2009, 05:06 AM   #5
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
Are you asking "how can I build a browser that doesn't store the content on the disk", or "can I make the web-server stop the browser from storing content on the disk"? If the latter, you can't - it's entirely up to the web-browser [and it's plug-ins] to decide how to store things.

You could probably, with a lot of effort produce a browser [or browser plug-in] that doesn't store the data in a file.

Of course, neither solution is really effective against someone who really wants the content, as it still passes from your server to the local machine in some way, and that means that someone with a packet sniffer can reconstruct the content and store it somewhere, and then do whatever it is you are trying to prevent (e.g. play it again without paying, redistribute it elsewhere, etc). It may make it a bit harder than just copying files, but it's not rocket science.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 06-03-2009, 08:37 AM   #6
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
Quote:
Originally Posted by Poche View Post
Flash video do copy, here is the link
Flash does not copy the video. The browser stores a cached version of it.
If you don't want that - you need to disable the browser's cache.
You can never really protect something that's publically accessible from the outside. Even if I disabled my cache, I could just use a http proxy debugger to find out the http request to get the movie.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-03-2009, 08:52 AM   #7
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
Or set up another machine to be http-proxy and cache the files!

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 06-03-2009, 09:11 PM   #8
Registered User
 
Join Date: May 2009
Posts: 13
I’m trying to build an app, which should have a control (let’s call it Flash Video Player), which plays FLV from server (certain URL). If you trying to use some Flash Player ActiveX, you can find that for Flash Player ActiveX you have to save the movie to a temporary location to load it and play, isn’t it? You'll have to create a corresponding link that you can pass to the Flash Player ActiveX and then delete the movie after it is played. Of course you can’t guarantee high security level , but I think it’s good, if at least no temporary files are created. So the question is how to make Flash Player ActiveX be able to load flash movies directly from any source without temp files?
Poche is offline   Reply With Quote
Old 06-03-2009, 09:43 PM   #9
Super Moderator
 
Join Date: Sep 2001
Posts: 4,680
Not to sound discouraging, but you can expect YouTube to have looked into this pretty thoroughly. Even so, you can get plugin's that break their copy protection in 2 seconds. With a bit of knowledge, you can do it by hand in under a minute.

IIRC, temporary files aren't all that playable by themselves - I think the browser usually modifies them in someway, but I could be wrong. I'd be more worried about someone decompiling your controls (or viewing the source in any other way) and sending a direct HTTP request for the SWF. You could configure your server to not respond to an HTTP request for the SWF unless the request comes from your other control, and it comes very soon after the other control is downloaded.
sean is offline   Reply With Quote
Old 06-04-2009, 08:18 PM   #10
Registered User
 
Join Date: May 2009
Posts: 13
Quote:
Originally Posted by sean View Post
IIRC, temporary files aren't all that playable by themselves - I think the browser usually modifies them in someway, but I could be wrong. I'd be more worried about someone decompiling your controls (or viewing the source in any other way) and sending a direct HTTP request for the SWF. You could configure your server to not respond to an HTTP request for the SWF unless the request comes from your other control, and it comes very soon after the other control is downloaded.
Useful advice, thanks
Poche is offline   Reply With Quote
Old 06-04-2009, 08:45 PM   #11
Registered User
 
Join Date: May 2009
Posts: 13
I think F-IN-BOX is the solution . It is able to load movies directly to the ActiveX thereby avoiding the temporary file step, protecting movies from unauthorized access.
And Flash Video Player ActiveX ‘s DLL protection from decompiling can be implemented by BoxedApp Packer – discussed in “Protection of DLLs” thread.
Poche is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for comments Prelude A Brief History of Cprogramming.com 15 01-02-2004 10:33 AM
Makefiles, Object files, Source files, OH MY! Inquirer Linux Programming 2 04-29-2003 10:36 PM
using a class in multiple source files??? Crossbow C++ Programming 9 06-18-2002 07:42 PM
linking source files estranged C Programming 9 04-03-2002 06:38 PM
How to implement several source files? Gades C Programming 3 11-21-2001 02:44 PM


All times are GMT -6. The time now is 05:05 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22