videojs-contrib-ads
videojs-contrib-ads copied to clipboard
feat: ads error interface
⚠️ In Progress
So far, this is how I expect the errors interface to work. An error can be set on the player.ads.error()
function by passing it an object containing a type
string and a metadata
object containing any custom data that is desired. The bulk of the work is in ads.js
There are examples of usage in this repo, but this can also be used when contrib ads is pulled into a user's repo. Errors can be handled or set by the user.
TODO: Tests for this functionality.