create static method

Future<RtmpStream> create(
  1. RtmpConnection connection
)

Implementation

static Future<RtmpStream> create(RtmpConnection connection) async {
  var object = RtmpStream._();
  object._memory =
      await HaishinKitPlatform.instance.newRtmpStream(connection);
  object._eventChannel =
      EventChannel("com.haishinkit.eventchannel/${object._memory}");
  return object;
}