Forum Moderators: coopster

Message Too Old, No Replies

PHP Flash Player

         

embgroup

11:46 am on Jan 27, 2007 (gmt 0)

10+ Year Member



Hi,

I am trying to create a SWF that takes its variables from PHP:

Here is the basic idea:

1. Client attempts to play video e.g. player.swf?id=dsfgsdfgsdfgsdfg (id is the encrypted name of the video)
Action: flash passes id to PHP file and awaits a response

2. PHP checks the clients cookie to see if they are logged in (encrypt their IP address) to prevent cookie spoofing
Actions: PHP either returns login true (go to step 6, or not logged in go to step 3)

3. If not logged in show the login box
Actions: Flash to display a username and password boxes

4. Client tries to login with username and password
Actions: Flash passes username and password to PHP

5. PHP checks the user to see if they are valid users
Actions: PHP either returns login true (go to step 6, or invalid username and password error message)

6. If logged on/ on login successful stream the video from server
Actions: PHP passes the url for the video for flash to stream

I am an experienced PHP programmer so all of the PHP listed I a
can do no problem, it is the interaction with Flash that is the hard part.

Any help or ideas would be much appreciated.

Thanks.

justageek

4:08 pm on Jan 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not sure what help you are asking for exactly? But, flash can accept and send variables so all you want to do can be done easy enough.

JAG

embgroup

9:54 am on Jan 28, 2007 (gmt 0)

10+ Year Member



Thanks that is good information, I appreciate your reply.