Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.51 KB

File metadata and controls

37 lines (20 loc) · 1.51 KB

Gyroscope Sample

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.

Usage

Hardware acceleration

Recommend enabling Hardware Encoder support on the Render Streaming inspector to improve performance using hardware acceleration.

Procedure

  1. Launch the signaling server using public mode. Please refer to this link for launching.

Launch web server

  1. Open Gyro scene and specify IP address of the signaling server to the Signaling URL parameter on the inspector.

Signaling url on inspector

  1. Specify the build platform (Currently iOS supported only) and start building. Connect the device to the PC, and transfer the application to the device.

Build settings

  1. Open Broadcast scene and Specify IP address of the signaling server to the Signaling URL parameter on the inspector.

Open Broadcast scene

  1. Click on the Play button in Unity Editor.

  2. Push the Play button on the device and check streaming video.