Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/167343-monitor-media-player/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/167343-monitor-media-player/#findComment-882541
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/167343-monitor-media-player/#findComment-882901
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.