Closed Pernifloss closed 1 year ago
I've developed a viewer count for OvenPlayer and I wanted to know if the video was playing or paused to stop, sending request when it is paused.
How can I find the info from api variable inside a OvenTemplate?
api
const ViewerCountDisplay = function ($container, api, data) { ... return OvenTemplate($container, "ViewerCountDisplay", api.getConfig(), data, events, onRendered, onDestroyed); }
Thanks.
Oh, I found api.getState() that return "idle", "playing", "paused", "error". Sorry, thanks anyway.
api.getState()
I've developed a viewer count for OvenPlayer and I wanted to know if the video was playing or paused to stop, sending request when it is paused.
How can I find the info from
api
variable inside a OvenTemplate?Thanks.