/
.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

NameDescriptionType
eventThe name of the event type you want to unsubscribe from.string
callbackThe 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);