endmr11 / ed_screen_recorder

Screen recorder plugin for Flutter. Supports IOS and Android devices.
MIT License
26 stars 36 forks source link

Call to 'startRecordScreen' doesn't work at the very first time after fresh app install. #82

Open jdevp opened 1 year ago

jdevp commented 1 year ago

I'm testing the new release 0.0.13. I built the permissions request at the beginning of my app to get the permissions away. Here is the issue that I run into.

  1. Click on the start record button which calls 'startRecordScreen' but nothing is recorded (don't even see screen cast warning popup window).
  2. Click on the stop record button which calls 'stopRecordScreen', again nothing happens.
  3. Click on the start record button again, the second time. After that the screen cast popup window is displayed and it starts to record.

I tested it by using the example coming with the package. It has the same issue. Users need to click on the start/stop/start button in order to trigger the recording at very first time. While with the old version, I don't have this issue.

Belveloper commented 1 year ago

for my case i couldn't start the record at all !! any solutions ?

jdevp commented 1 year ago

Can you be more specific? You couldn't record for the first time or all the time. What's your OS, Android or iOS? Have you checked if all the permissions set correctly? Did you try the sample code that comes with the package?

Belveloper commented 1 year ago

I couldn't start the recording at all Am using a real device (s22 android 13) to test, and yes, i checked all permissions in the main. Before i start recording

I managed to run the example. It shows the pop-up to start recording. But doesn't save the result to the gallery (sometimes it works, but not stable 1 / 10 times to work !!)

jdevp commented 1 year ago

I think that you are correct. I tested on my old phone, Android 10 SDK 29 but it failed to record. The problem seems to be that the stopRecord never returns anything so it doesn't encode the video. It's sad that we can't find a good screen record package for Flutter. I'll have to look for some other solution as well, maybe FFMPEG or something.

jdevp commented 1 year ago

I wonder if you have tried the old version. This inconsistency becomes very difficult to trouble shoot. On the phone that it works, it works all the time but, on the phone, it doesn't work, it never worked. Don't' know if it has anything to do with the Android version, SDK/API level or something else. I wish that the owner would take some time to fix it.

Belveloper commented 1 year ago

I'll try an older version to check if it works on my sdk version

jdevp commented 1 year ago

I tried the old version and it has the same issue with the following message. The call to stopRecordScreen never returns. It seems to be the same issue on my good phone but with the first time run after fresh install.

Starting record W/System ( 5346): A resource failed to call release.