13
Views
2
Comments
Solved
[Vonage APIs Web] How fix this error:  "initializeSession is not defined" in a app using VonageApi
Question
vonage-apis-web
Web icon
Forge asset by LINKIT R&D

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
2019-01-15 10-16-47
Parma Bhagwandin
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.

2020-09-15 09-38-17
Jessica Marques

Hi Parma, 

Now it worked perfectly! Thank you very much for your help! :)

Best Regards, 

Jessica Marques. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.