setMediaEncryption method

  1. @override
dynamic setMediaEncryption(
  1. bool encryption
)
override

This method is used to set the media encryption.

Implementation

@override
setMediaEncryption(bool encryption) async {
  try {
    await mirrorFlyMethodChannel
        .invokeMethod('setMediaEncryption', {"encryption": encryption});
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception ", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}