With digital media you can run a companion ajax call to 'ping' the server every n seconds - but that isn't very secure. that method is largely used for performance and audience analytics.
if you want to 'securely' track video streams, you'd need to do that within the server that is serving them -- and probably not count things based on the session's start time, but the amount of content consumed. For example, I can either stream a YouTube video in 'near- real-time' , or use a browser plugin to instantly download it, I could also download 20 YouTube streams at once. If your server does bandwidth profiling , the amount of data per stream can vary too. You could do that in Pyramid, but you'd have much better performance in C or Java ( maybe even just an nginx module that does some logging and reporting ). If you decided to do that in Pyramid, I would suggest running a completely different Pyramid Application for serving & logging media files , so that doesn't affect the resources for the rest of your site. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
