Load flash movies directly from any source (no temporary files)

This is a discussion on Load flash movies directly from any source (no temporary files) within the C# Programming forums, part of the General Programming Boards category; Hello, everybody! As known, Flash Player is always copying swf file from I-net before playing it. But how can we ...

  1. #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?

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    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...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    13
    Flash video do copy, here is the link

  4. #4
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    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)

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  6. #6
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    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.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  8. #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?

  9. #9
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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.

  10. #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

  11. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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