2014-05-02, 20:28
Hi,
I'd like to perform an action on a remote server then a video is mark watched. I've written python before - looks straightforward to write an addon.
So it looks to me like the right way is to subclass the player, and take action on onplaybackstopped. From there, figure out what video was just being watched, and then check the database to see if the watched flag is set (i.e. the user watched the video to the end and now the watched flag is set.
Does this sound like the right path forward, or is there a better way to do this?
Thanks!
Damon
I'd like to perform an action on a remote server then a video is mark watched. I've written python before - looks straightforward to write an addon.
So it looks to me like the right way is to subclass the player, and take action on onplaybackstopped. From there, figure out what video was just being watched, and then check the database to see if the watched flag is set (i.e. the user watched the video to the end and now the watched flag is set.
Does this sound like the right path forward, or is there a better way to do this?
Thanks!
Damon