This sample shows ways to operate the direction of a camera on the remote PC from the mobile device that equipped gyro sensor.
Note
In this version, it was checked on only iOS devices. Android and other devices are not supported by this sample.
Note
If no codec is available on both sender and receiver, the video can not stream. Please note that the compatibility of codecs is different corresponding to platforms and graphics API.
Recommend enabling Hardware Encoder support
on the Render Streaming
inspector to improve performance using hardware acceleration.
- Launch the signaling server using public mode. Please refer to this link for launching.
- Open
Gyro
scene and specify IP address of the signaling server to theSignaling URL
parameter on the inspector.
- Specify the build platform (Currently iOS supported only) and start building. Connect the device to the PC, and transfer the application to the device.
- Open
Broadcast
scene and Specify IP address of the signaling server to theSignaling URL
parameter on the inspector.
-
Click on the Play button in Unity Editor.
-
Push the
Play
button on the device and check streaming video.