Forum Moderators: coopster
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.