0
Answered

How do I find avartar loaded in the webpage or not?

bsuriyak uts 4 years ago in SitePal Silver updated 4 years ago 9

Answer

Answer

Great question. 

You neeed to define the callback vh_sceneLoaded().

After this function is called, the API is open for business & ready to receive calls.

+1
Under review

Hello!

Your question is not clear - please rephrase 

Regards

Gil

When I call "AC_VHost_Embed" function it loading the avartar in my webpage. initially it will show some loader after that only it will show the avartar. While loading the avartar if I call any function related to avartar, it will raise exception. so  How do I know whether it is completely loaded or not? 

Answer

Great question. 

You neeed to define the callback vh_sceneLoaded().

After this function is called, the API is open for business & ready to receive calls.

Before call the next function to do something for avartar I have to check whether it is completely loaded or not.

I get example will helpful for me to use? can you share it?

Can I get an example to use call back function? 

Sure. 

You can see the use of vh_sceneLoaded() in most of our API examples.


This may be a good one to look at - 

http://www.oddcast.com/support1/syc_classic.html


Other useful API examples can be found here - 

http://www.oddcast.com/support1/reference.html


Hope this helps,

Regards

Gil