oliverbj Posted May 23, 2011 Share Posted May 23, 2011 Hello there, I am going around and thinking of this is possible. Let's say I have a flash video player or something, and the thing I want to do is, that when the flash video is DONE playing, a PHP script/function will be made. How can that be done? I guess it should be a little bit like Lockerz. You know, when the video is done, you get credited. Any suggestions? Regards. Quote Link to comment https://forums.phpfreaks.com/topic/237265-call-php-event-after-video-is-done/ Share on other sites More sharing options...
btherl Posted May 23, 2011 Share Posted May 23, 2011 It's certainly possible. But I don't know the details of how. The general concept is called AJAX, and specifically it sounds like you want Flash to make a request back to your php script. Quote Link to comment https://forums.phpfreaks.com/topic/237265-call-php-event-after-video-is-done/#findComment-1219308 Share on other sites More sharing options...
Xyphon Posted May 24, 2011 Share Posted May 24, 2011 Search up how to send variables from Flash to PHP. I've done it before, but I don't have the code on hand. You can use that, and AJAX, to update your page as soon as the video is finished. (correct me if I'm wrong, please, I am not very knowledgeable with AJAX, but I think it can work like that..) Quote Link to comment https://forums.phpfreaks.com/topic/237265-call-php-event-after-video-is-done/#findComment-1219316 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.