Reference
Methods
Method | Description |
---|---|
TouchCastPlayerAPI.embed() | This method will allow you to embed players into any webpage. |
TouchCastPlayerAPI.doAction() | This method will allow you to control the player. |
TouchCastPlayerAPI.Event.subscribe() | This method will allow you to subscribe to a Player Api event, which will fire on different types of actions. |
TouchCastPlayerAPI.Event.unsubscribe() | This method will allow you to unsubscribe from any Player Api event you have previously subscribed. |
Event Types
Click here to get more info about each event.
Event Type | Description |
---|---|
TouchCastPlayerAPI.events.TOGGLE_SEARCH | The event is dispatched only in viewer mode. It dispatches when clicking on the search button in the player, when pressing the key combination COMMAND + F on a Mac or CTRL + F on a Win, calling the TOGGLE_SEARCH action. Use this to open/close a search popup in the article viewer. |
TouchCastPlayerAPI.events.EMBED_PLAYER_ADDED_TO_DOM | This event is dispatched when an embed player was added to the DOM, but not yet fully initialized. |
TouchCastPlayerAPI.events.EMBED_PLAYER_FULLY_READY | This event is dispatched when an embed player is fully initialized and ready to be used. At this stage is safe to use the TouchCastPlayerAPI.doAction() method. |
TouchCastPlayerAPI. | This event is dispatched during playback of an embed player. Use this to track playback time. |
TouchCastPlayerAPI. | This event is dispatched when an embed player has finised playback and reached video end. |
TouchCastPlayerAPI. | This event is dispatched when an embed player has started playback, even if it's for the very first time or just a simple resume. |
TouchCastPlayerAPI. | This event is dispatched when an embed player has finished playback and reached video end. |
TouchCastPlayerAPI. | This event is dispatched after interactive event in an embed player. Has next field:
possible values: one of TouchCastPlayerAPI.interactiveType
possible values: one of TouchCastPlayerAPI.interactiveMode or null
possible values: Object or null |
TouchCastPlayerAPI. | This event is dispatched after control event in an embed player. Has next field:
possible values: one of TouchCastPlayerAPI.controlsType
|
TouchCastPlayerAPI. | This event is dispatched after load or change video(Tc in Tc), returned current all available values of language. Has next field:
on first position always off and on second position always default language |
TouchCastPlayerAPI. | This event is dispatched after load and init fabric analytics. |
TouchCastPlayerAPI. | This event is dispatched after parsed manifest of HLS, returned all available values of quality. Has next field:
|
TouchCastPlayerAPI. | This event is dispatched after successful start play if flag autoPlay is present in config. |
TouchCastPlayerAPI. | This event is dispatched after failed start play if flag autoPlay is present in config. |
TouchCastPlayerAPI. | This event is dispatched after each click on player area. |
TouchCastPlayerAPI. | This event is dispatched after refresh token |