You are not logged in.

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

1

Wednesday, January 18th 2017, 3:25am

React with Krpano, What is the best interact way?

Hi,

I'm developing Web site with React library (from Facebook) embeding Krpano in it.
However, it's not easy to interact within components with Krpano interface.

What do you think the best way to interact between them?

Do I have set another functions outside of reacts?
Are there any ones who have such experience?

2

Thursday, May 4th 2017, 2:41pm

I have it working in React by having the krpano container outside the React app container.

Source code

1
<div id="app"></div><div id="pano"></div>


When calling the embedpano method it loads the 360 video / photo.

I only have an issue with my single page application. When I route to the next page having the 360 video it gives a "FATAL ERROR: LICENSE ERROR - WRONG DOMAIN". When I refresh the page it does work without error.

Trying a quick and dirty workaround by reloading the page once, but a more solid solution is appreciated *g*