Optional
getUrl to the video page and specific playback time of currentTime. If provided will be used by annoto for email notifications, in the dashboard, etc.
current playback time of the player in seconds and media source of the player
Optional
getUrl to the video page. Useful if Annoto is embedded inside iframe for example. default: window.location.href is used.
Optional
logoutFor SSO enabled integrations only. If Provided, Will be called when user triggers Logout action and "Logout" option will appear in the drawer menu.
If possible the promise should reslove/reject when the logout flow is finished.
Optional
mediaCallback that allows to enrich details about the played media. If provided the function is called by the widget to obtain additional details about the media.
media details obtained from the player
additional details about the played media, such as title
Optional
setupCallback that allows to modify the configuration This callback is called when media is ready and it's preferences is loaded from the backend
configuration to override the exiting config (will be deep merged by Annoto)
Optional
ssoFor SSO enabled integrations only. If Provided, Will be called when user triggers Authentication. If not provided a message in the form is shown.
If possible the promise should reslove/reject when the auth flow is finished.
Callback hooks for triggering actions such as auth and getting info