createDataStream abstract method

  1. @Deprecated('Please use createDataStreamWithConfig instead.')
Future<int?> createDataStream(
  1. bool reliable,
  2. bool ordered
)

Creates a data stream. Call this method after joining a channel. Agora does not support setting reliable as true and ordered as true. Each user can create up to five data streams during the lifecycle of RtcEngine . Deprecated: Please use createDataStreamWithConfig instead.

Param ordered Whether or not the recipients receive the data stream in the sent order: true: The recipients receive the data in the sent order. false: The recipients do not receive the data in the sent order.

Param reliable Whether or not the data stream is reliable: true: The recipients receive the data from the sender within five seconds. If the recipient does not receive the data within five seconds, the SDK triggers the streamMessageError callback and returns an error code. false: There is no guarantee that the recipients receive the data stream within five seconds and no error message is reported for any delay or missing data stream.

return ID of the created data stream, if the method call succeeds. < 0: Failure. You can refer to Error Codes and Warning Codes for troubleshooting.

Implementation

@Deprecated('Please use createDataStreamWithConfig instead.')
Future<int?> createDataStream(bool reliable, bool ordered);