Genvid Streams Parameters

The Genvid Streams Parameters define data streams from your game for your broadcast session. You can use multiple data streams for the same Streams object by changing the Size setting to have the number of data streams required for your application. (See Set Up the Data Stream Parameters for more information.)

Each element of this array refers to assets that contain several properties.

Genvid Plugin Streams inspector view
Id

The unique name of the data stream. (This must be unique to any other stream in your project.)

Framerate

The rate at which the On Submit Stream function will be executed. 30 is the default value.

All other values use the formula: Min(value, Game Framerate).

For example, in a game running at 30 FPS:

  • At value 10, the stream is sent at Min(10, 30) = 10 Frames per second.

  • At value 100, the stream is sent at Min(100, 30) = 30 Frames per second.

Warning

The submit functions suffixed with JSON only support JSON serializable objects.

Each method not ending with JSON requires:

  • The stream name that will receive the data, and

  • Serialized data in byte[] or string.

Each method ending with JSON requires:

  • The stream name that will receive the data, and

  • JSON-serializable data

As an example, in the Unity cube sample, we use the Genvid Streams Parameters to submit data about copyright, cube names, cube positions, cube colors, and camera info. The data types above each have their respective streams and submission frequencies. We recommend following this pattern of dedicated data streams for better organization and flexibility.