


PHP TIME TO MINUTES FULL
I can only make a best effort to verify to the boards that they were engaged with the entire credit hour for a full 50 minutes. It seems I finally found the right forum for this discussion (I have been trying for over a year!).įor my particular situation, I can't be concerned with whether users want to be dishonest and not actually sit or pay attention. Personally, I think there are more effective ways to ensure course participation. There's also nothing to stop users from turning down the sound and doing something else while the video is playing and nothing to guarantee that the user was paying attention or understood what they were watching. Alternatively, deploying your video as a SCORM activity should enable some user tracking capabilities. This would require some significant development work in both Flash (a custom video player) and PHP (a custom service script to record the video playback data in Moodle). If you really want to get the exact time in seconds, you'd need to measure the elapsed time in the Flash client and the video player playhead position when playback stops. It can sometimes take considerably more time for a video to play back than we'd expect. The reason is that this doesn't account for the time it takes for the Flash video player to download, the time it takes for the user's computer the inititialise it, the buffer time before the video starts playing and any buffering during the video playback if your server is busy or the user has a slow or intermittent internet connection. I don't think measuring the server time between HTTP requests by each user (how Moodle measures elapsed time) is a particularly accurate way of verifying how much of each video each user has watched.
