getStreamUri method

Future<String> getStreamUri(
  1. String profileToken
)

Calls getStreamUri2.

Implementation

Future<String> getStreamUri(String profileToken) async {
  dynamic streamUri = _mediaSupportLevel == MediaSupportLevel.one
      ? await media1.getStreamUri(profileToken,
          streamSetup: StreamSetup(
            stream: 'RTP-Unicast',
            transport: Transport(protocol: 'RTSP'),
          ))
      : await media2.getStreamUri(profileToken);

  return (streamUri is String) ? streamUri : (streamUri as m1.MediaUri).uri;
}