startPlayingFileToRemote method

Future<int> startPlayingFileToRemote({
  1. required int sessionId,
  2. required String fileUrl,
  3. bool loop = false,
  4. PortsipPlayFileAudioMode playAudio = PortsipPlayFileAudioMode.mixedWithMicrophone,
})

Plays the audio/video file at fileUrl into the stream sent to the remote party on sessionId.

Returns 0 on success, negative error code on failure.

Implementation

Future<int> startPlayingFileToRemote({
  required int sessionId,
  required String fileUrl,
  bool loop = false,
  PortsipPlayFileAudioMode playAudio =
      PortsipPlayFileAudioMode.mixedWithMicrophone,
}) async {
  throw UnimplementedError(
    'startPlayingFileToRemote has not been implemented.',
  );
}