setPlayStreamCrossAppInfo method

Future<void> setPlayStreamCrossAppInfo(
  1. String streamID,
  2. ZegoCrossAppInfo info
)

Set up cross App playing stream information.

Available since: 2.19.0 Description: This information is used for authentication before playing a stream or when retrying playing a stream. Use cases: Used in scenarios that playing streams across apps. When to call: after createEngine, after the play stream can be changed at any time. Restrictions: This function is only valid when playing stream from Zego RTC server. Caution: Calling stopPlayingStream or logoutRoom will clear this information.

  • streamID Stream ID.
  • info Information for cross App playing stream.

Implementation

Future<void> setPlayStreamCrossAppInfo(
    String streamID, ZegoCrossAppInfo info) async {
  return await ZegoExpressImpl.instance
      .setPlayStreamCrossAppInfo(streamID, info);
}