Namespace window
Defined in: cwic.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Global window namespace
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
window._cwic_onPopupVideoPluginLoaded(videopluginobject, win)
global(window) level function to handle video plug-ins loaded in iframe/popup window.
|
| <static> |
window._cwic_onSSOTokenReceived(msg)
global(window) level function object to handle SSO token receiving from child window (popup or iFrame).
|
Method Detail
<static>
window._cwic_onPopupVideoPluginLoaded(videopluginobject, win)
global(window) level function to handle video plug-ins loaded in iframe/popup window.
Should be called from video object onLoad handler $.fn.cwic-createVideoWindow.
Example onLoad function in iframe.html
Example onLoad function in iframe.html
- Parameters:
- {JSAPI} videopluginobject
- video plug-in object (DOM Element)
- {DOMWindow} win
- iframe or popup window
- Returns:
- undefined
<static>
{function}
window._cwic_onSSOTokenReceived(msg)
global(window) level function object to handle SSO token receiving from child window (popup or iFrame).
Should be called after the token is returned in URL of the target HTML page configured via 'redirect_uri' parameter.
- Parameters:
- {Object} msg
- message received from popup/iFrame
- {string} msg.url
- URL with parameters:
- access_token - returned token
- token_type - Always "Bearer"
- expires_in - Number of seconds the returned token is valid
