ZEGOCLOUD / zego_uikit_prebuilt_live_streaming_flutter

MIT License
5 stars 7 forks source link

No way to add extra info #8

Open GiddyNaya opened 1 year ago

GiddyNaya commented 1 year ago

I'm trying to add some extra information to the stream so I can retrieve from the server but I can't find any example on how to do this via the initialization.

How can I add extra_info to this stream, example photo_url: model.photo?

SafeArea(
  child: ZegoUIKitPrebuiltLiveStreaming(
    appID: zegoCloudAppId,
    appSign: zegoCloudAppSign,
    userID: model?.userId ?? "",
    userName: model?.username ?? "",
    liveID: model?.liveId ?? "",
    config: model?.isHost == true
        ? ZegoUIKitPrebuiltLiveStreamingConfig.host()
        : ZegoUIKitPrebuiltLiveStreamingConfig.audience() //
      ..onLiveStreamingEnded = ((ended) => {if (ended) finish(context)})
      ..topMenuBarConfig.buttons = [
        ZegoMenuBarButtonName.minimizingButton,
        ZegoMenuBarButtonName.leaveButton,
      ],
  )