Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jdevp opened this issue May 11, 2023 · 7 comments

Comments

@jdevp
Copy link

jdevp commented May 11, 2023

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
Copy link

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

@jdevp
Copy link
Author

jdevp commented Jun 20, 2023

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
Copy link

Belveloper commented Jun 21, 2023

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
Copy link
Author

jdevp commented Jun 21, 2023

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
Copy link
Author

jdevp commented Jun 22, 2023

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
Copy link

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

@jdevp
Copy link
Author

jdevp commented Jun 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants