The current MarkerTour or VideoTour store Writable
Currently playing media controller
Play the media
Pause the media
Media paused state
Media current time
Media total duration
The current active MarkerTour or VideoTour
The current opened Marker of the current shown MicrioImage
Gets the current state as an independent, minimal JSON object. This includes the currently open image(s), marker(s), and actively playing media (video, audio, tour) and its state. You can use this object in any other environment to immediately replicate this state (neat!).
Example:
// Save the current state in Browser 1
const state = micrio.state.get();
// Save or sync this object to Browser 2 and load it there..
// This makes the <micr-io> session state identical to Browser 1.
micrio.state.set(state);
Sets the state from a MicrioStateJSON object, output by the function above here.
This works on any Micrio instance!
Generated using TypeDoc
HTMLMicrioElement state controller
The
State.Mainconstructor is used asHTMLMicrioElement.state, and offers: