Flash Media Server / PHP Application

I need help finding resources that could help me, or at least point me in the right direction when creating a Flash server / PHP application server. I basically want to improve my current application, instead of progressing with a flash media server so that the video not only broadcasts well, but also cannot be downloaded by the end user.

What the current application does is the login form on the main page, and then when you log in, the user can go to the site by selecting a video from a specific category of video or video uploaded by a specific user. All this is done using PHP. On the video page, progressive download is used to display the video after passing the video ID using PHP.

I need to know how PHP and the Flash server work. Are there any resources where I can find a good example application (very simple) that demonstrates how PHP and the flash server can be used for dynamic video streaming, so that PHP checks for login IDs, video, video and video information categories while the flash media server is transmitting the video.

+7
php flash media
source share
5 answers

Indeed, PHP and FMS should not talk at all. This can be done as part of the FMS, but a much simpler approach is to let your Flash Player (which you still have to do) to talk to FMS. Messaging from FMS to FMS is well documented and very simple. Just ask PHP to release a Flash player with any information you need. It is likely that eaiser should authenticate PHP and provide Flash with some kind of authentication token if you are really worried about security.

Just so that you know that just because your media streams does not mean that someone cannot download it. There are several tools for copying streaming media. This, of course, is safer, but this is not complete proof.

+3
source share

You can try Red5 instead of Flash Media Server. I used to use Flash Media Server in the past, and this can be painfully taken care of. With Red5 you are at least more flexible and free. If you follow the Red5 path, you will find more people setting it up as follows a one-time ticket for Red5 communication . I find this very close to what you are looking for.

+1
source share

The biggest problem with PHP and Flash (mediaserver) is the different "flow" of code. PHP is simple:

Run the request, do something, send a response. Done.

FlashMedia loads (compiles) your code when a client connects, and then only events are fired. Most operations are not returned, but require a callback.

Download the application .. wait for something .. Event triggered: do something, release another request along with the response handler object, etc.

I have an extensive chat service with FlashMedia server and PHP both front and server.

The interface is simple: simple PHP / HTML pages that will eventually create a <OBJECT> -tag loading of some Flash applet. This flash applet must connect to the flash server using the information / credentials passed to it with the FlashVars parameter or the downloaded (generated) XML data from a separate URL.

From this point, the Flash applet (client) does this with the Flashmedia server. In this example, you want to verify the credentials from Mediaserver. You must use AMFPHP for this.

AMFPHP is a replacement for Macromedia's "Flash Remoting", where Flash [applets / servlets] can perform asynchronous communication over HTTP.

For the AMFPHP environment, you are writing an interface class that completes your validation code. There is a test page that confirmed the answer of your wrapper.

(The AMFPHP Framework can also generate AS2 sample code, so you have an idea how the Flashmedia server should send the request and process the responses.)

  • Warning: AMFPHP uses POST to send and retrieve data. In the past, there were problems when 2k data was truncated. I now only use it for relative short messages.
  • AMFPHP is very reliable. You can use it for external logging, for example.
+1
source share

Using a flash server so that videos are not only good they cannot be downloaded until the end User

This does not work. This makes it β€œharder” for some people in the same way that not putting a large, huge β€œ download here ” button makes it β€œharder”, but the content is still downloaded to their computer, just differently. All downloaded can be saved to disk.

0
source share

I do like that. First, you can use the FMS authentication plugin for authentication. Of course, you can make your own stuff in PHP. Instead of adding PHP to the original Apache FMS, I decided to run XAMPP in parallel, with a different port, of course.

To start and stop the encoder, you can use the FMLEcmd command.

My environment:

  • Flash Media 3.5 Development Server
  • Flash Media Live Encoder 3.1
  • XAMPP (on port 8080)
0
source share

All Articles