videojs-contrib-ads icon indicating copy to clipboard operation
videojs-contrib-ads copied to clipboard

feat: ads error interface

Open wseymour15 opened this issue 1 year ago • 0 comments

⚠️ 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.

wseymour15 avatar Feb 21 '24 20:02 wseymour15