Add Audio- and Video-Stream Prefabs to GenvidSession

A GenvidSession object with child streams added.

Once you’ve created a Genvid Session, you need to add the different streams which will make up the broadcast session. The stream types originating from your game include video, audio, and data streams. This section walks you through setting up the audio and video streams.

In This Section

Video

  1. Drag and drop a Video prefab into GenvidSession as a child of the GenvidSession.

  2. The GenvidSession has a Video Stream section. Drag and drop your current Video prefab into this field.

    A GenvidVideo object.
  3. Change the name for your video stream. The name can just be Video.

  4. Change the framerate for your video stream. The value should be set to 30 or 60.

  5. Choose your Capture Type.

    • Automatic will capture the entire game and UI.
    • Texture will capture the object set in Video Source (which can be a camera or a texture). This capture type will remove the UI, but you will need to update the VideoSource public object if you decide to change capture or texture.

Audio

  1. Drag and drop an Audio prefab into GenvidSession as a child of the GenvidSession.

  2. The GenvidSession has an Audio Stream section. Drag and drop your current Audio prefab into this field.

    A GenvidAudio object.
  3. Change the name for your audio stream. This name can just be Audio.

  4. Choose an Audio Format mode. We suggest to stay in F32LE unless you have specific needs.

  5. Choose the appropriate Audio Mode.

    • Unity will use the Unity audio which is the default option. This is compatible with some audio plugins.
    • WASAPI will use the audio from your machine. This is useful if Unity audio does not work with the audio plugin currently in use.