You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm having trouble getting this plugin to work on Android devices.
I get the error below, I believe related to the output file. I'm no Android expert, and hours of search on Google about MediaRecorder, getExternalStoragePublicDirectory, and setOutpuFile gives me no clearer clue as to why this is happening. So just want to ask, anything come to mind why this error may occur?
My device information:
Samsung Galaxy Tab A (2019)
Android 9 (API 28)
I've also used permission_handler plugin to request permission for external storage.
Thank you very much.
The text was updated successfully, but these errors were encountered:
It is resolved. In case anyone else runs into problems with Android, I give a quick run through of the modifications I made to get it working. Sorry these are screenshots and not links to the actual code lines.
The following modifications were made in file FlutterScreenRecordingPlugin.kt
The original mDisplayWidth and mDisplayHeight were causing MediaRecorder to fail for some reason, I modified as follows.
I found I had to edit Activity.Compat.startActivityForResult to use registrar.activity(), else I was getting a null exception error with the current code.
Finally, I had to modify declaration of late init variable _result, else I was also getting a null exception error.
Hi, I'm having trouble getting this plugin to work on Android devices.
I get the error below, I believe related to the output file. I'm no Android expert, and hours of search on Google about MediaRecorder, getExternalStoragePublicDirectory, and setOutpuFile gives me no clearer clue as to why this is happening. So just want to ask, anything come to mind why this error may occur?
My device information:
Samsung Galaxy Tab A (2019)
Android 9 (API 28)
I've also used permission_handler plugin to request permission for external storage.
Thank you very much.
The text was updated successfully, but these errors were encountered: