07-29-2016 09:47 AM
Hi,
I'm confused as to when should you pass a string or object into 'addPreviewWindow'.
The API documentation has these examples.
$(
'#phone'
).cwic(
'addPreviewWindow'
,{previewWindow:
'previewVideoObjectID'
});
$(
'#phone'
).cwic(
'addPreviewWindow'
,{previewWindow: previewVideoObject, window: iFramePinPWindow});
Thanks!
07-29-2016 11:30 AM
addPreviewWindow takes a 'videoWindow' object (previously created via createVideoWindow), and maps it to the functionality of displaying a user video-preview. The function can accept either the DOM ID (as a string) of the existing videoWindow object, or a direct object reference (e.g. a variable name pointing to an object of type videoWindow).
Whether the string or object reference is used depends on how your code used createVideoWindow and whether your code kept a reference to the videoWindow object by string DOM ID, or via a variable pointing directly to the videoWindow object.
07-29-2016 11:38 AM
When I do createVideoWindow, it does not immediately call the success function.
When does that getting called?
07-29-2016 02:28 PM
Hmm...looking at the documentation, it looks like that can happen if your setup can't do video:
NOTE: This function will just 'do nothing' and the success() callback will never be called if either of the following are true:
Can describe what does happen (does the success come at some later point in time or after some later function?) Anything interesting in the browser console log?
If the above doesn't help, I would suggest opening a DevNet Developer Support ticket and attaching the Jabber SDK plugin log output (see https://developer.cisco.com/site/jabber-websdk/develop-and-test/voice-and-video/troubleshooting/)
Open a support ticket: https://developer.cisco.com/site/devnet/support/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide