Basic sending application for IVI example¶
This example shows how to turn any kzb file into a sending application without modifications.
For the contents of this example, the Kanzi VR feature uses the completed “Create a simple IVI application” tutorial in the main Kanzi workspace for streaming the IVI.
Get the tutorial¶
To get the tutorial, in the Kanzi Studio Quick Start window, click Examples. Next to the First tutorial, click .
Kanzi Studio downloads the tutorial to the <KanziWorkspace>/Tutorials directory. You can find:
The tutorial assets in the
<KanziWorkspace>/Tutorials/First/Assetsdirectory.The completed tutorial in the
<KanziWorkspace>/Tutorials/First/Completeddirectory.
Launching the application¶
The Kanzi VR feature uses the kzb file from the tutorial for streaming the IVI.
<KanziWorkspace>\Tutorials\First\Completed\Application\bin\first_application.kzb
Add the path to this file to the IVI stream in the virtual environment configuration.
To start the file, use the Kanzi VR Launcher and the virtual environment configuration. See Config and startup example and Starting stream-enabled virtual environments.
Modifying the configuration¶
To switch the IVI stream to a different kzb file:
Replace the value of the
kzbkey with the path to the kzb file that you want to use.For example,
${KANZI_HOME}/Tutorials/Pages/Completed/Application/bin/pages.kzbRestart the local applications.
To switch the IVI stream to a stream from a different device, such as a screen from an Android device:
Remove the
kzbkey.Set the value of the
hostkey to match the hostname or IP address of the device. The device must be reachable on the local network.Start a stream on that device.
Restart the local applications.