This custom hook allows you to award or deduct points from your users for watching YouTube Videos. The Video Add-on (premium) replaces this hook and adds support for Vimeo as well as YouTube.
This hook supports three different ways you can reward your users for watching a video:
Points are triggered as soon as the user starts watching the video. Points will trigger even if the user selects to pause the video immediately after it has finished loading.
Points are triggered once a user has finished watching the entire video. Since a lot of things can go wrong while watching a full video, a leniency percentage must be set. This leniency value is the maximum percentage a users view of a movie can differ from the actual length they watch.
Awards or deducts points for every x number of seconds watched of the video.
Only videos that are embedded using the mycred_video shortcode will reward points! Furthermore, if you reward users using the Interval method, no badges or ranks will trigger!
The amount value, logic and log entry template in this hooks settings are your default settings. You can override these values when you use the mycred_video shortcode. A default value must be set to enable the hook. The hook will not work if you set the default amount to zero.
||Give or take points from users for watching videos.|