inkexit Posted July 24, 2009 Share Posted July 24, 2009 I've got what's probably sort of a strange request. I'm trying to devlop a page that has an embedded media player in it, and I'd like to be able to monitor if the user has listened to all the tracks completely. the media player would already have, say, 5 tracks loaded up, and it would play through all of them. After all the tracks have played in their entirity, a boolean value in a database would be changed. Anybody know of a media player that could do this via php? Quote Link to comment https://forums.phpfreaks.com/topic/167343-monitor-media-player/ Share on other sites More sharing options...
RussellReal Posted July 25, 2009 Share Posted July 25, 2009 why don't you just code a media player in flash and set up a session with the user when he hits the page, then pass the session id to flash thru flashVars then everytime the user finishes a song send the song number and session ID to the server.. and you tally those values up in to the database, and when the user has listened to ALL the songs set the boolean value to true Quote Link to comment https://forums.phpfreaks.com/topic/167343-monitor-media-player/#findComment-882541 Share on other sites More sharing options...
inkexit Posted July 25, 2009 Author Share Posted July 25, 2009 Ok, well how will flash know when the song is over, and not just loaded, or stopped? I was thinking of only having a stop and play button, no skip, no clickable timeline bar. But I still don't understand how to get flash to actually understand that the end of the file has been reached? Quote Link to comment https://forums.phpfreaks.com/topic/167343-monitor-media-player/#findComment-882901 Share on other sites More sharing options...
RussellReal Posted July 26, 2009 Share Posted July 26, 2009 flash has events.. The one you're looking for is Event.SOUND_COMPLETE Quote Link to comment https://forums.phpfreaks.com/topic/167343-monitor-media-player/#findComment-883360 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.