7
Views
2
Comments
Solved
[Vonage APIs Web] How fix this error:  "initializeSession is not defined" in a app using VonageApi
Question
Forge component by Parma Bhagwandin
1
Published on 15 Sep 2020

Hello Community!

Can you help me and let me know what I am doing wrong when I try to create a screen using the VONAGEvideo API. 

I´m following the VonageWebDemo, making littles adaptation for my application. 

So,  in my application, "Home" Screen corresponding to "CreateSession" screen in VonageWebDemo. And "Class" to "VideoPage_Publisher" screen. 

I have a problem to access the "class" screen, it shows this error:

An exception occurred in the client script. Error: initializeSession is not defined 


WHAT HAVE I DONE TO TRY TO IDENTIFY THIS ERROR:

1. Take a look in Service Center, and doesn't show anything about this error:


2. A debugging: (And I don´t know if this red string in GeneratedToken Variable is a problem)

3. I put "SessionId" and "TokenId" inputs´  from Class Screen as an expression to see if is really with a value. 

I attached the oml

Best Regards, 

Jessica Marques. 

HomeSchool.oml

Solution

Hi Jessica, 

You need to add the webblock opentok_wrapper from the module VonageWebComponent on your page. This is a drag and drop element with all the libraries.