/
.Event.unsubscribe()
.Event.unsubscribe()
Description
The method TouchCastPlayerAPI.Event.unsubscribe()
allows you to unsubscribe a callback from any events previously subscribed to using TouchCastPlayerAPI.Event.subscribe()
.
TouchCastPlayerAPI.Event.unsubscribe(event, callback);
Parameters
Name | Description | Type |
---|---|---|
event | The name of the event type you want to unsubscribe from. | string |
callback | The callback function that you want to unsubscribe from the provided event type. | function |
Output
This method has no output.
Example
TouchCastPlayerAPI.Event.unsubscribe(TouchCastPlayerAPI.events.VIDEO_ENDED, event_callback_video_ended);
, multiple selections available,