playFile method
Play file to remote side of this call
Implementation
Future<void> playFile(String pathToMp3File, {bool loop=false}) async {
_logs?.print('Starting play file callId:$myCallId $pathToMp3File loop:$loop');
try {
_playerId = await SiprixVoipSdk().playFile(myCallId, pathToMp3File, loop) ?? 0;
} on PlatformException catch (err) {
_logs?.print('Can\'t start playing file callId:$myCallId Err: ${err.code} ${err.message}');
return Future.error((err.message==null) ? err.code : err.message!);
}
}