Plugin.Maui.ScreenRecording icon indicating copy to clipboard operation
Plugin.Maui.ScreenRecording copied to clipboard

On Android crashes when screen recording starts

Open sileski opened this issue 1 year ago • 4 comments
trafficstars

On Android, app crashes when we try to record screen for the second time. This problem occurs specifically when using this package from the NuGet package manager. Surprisingly, if the same package is directly included in the project, screen recording works as expected.

Sample project: ScreenRecordingAndroidCrashSample Steps to Reproduce:

  1. Click Start Recording
  2. Wait a few second and then click Stop Recording
  3. Click again Start Recording
  4. App crashes, throwing a Java.Lang.IllegalStateException.

sileski avatar May 13 '24 10:05 sileski

@rdurish This is the same case in my project as well..

kocevilija avatar May 15 '24 11:05 kocevilija

I am currently using a customized version for my app (with different times to ask for permissions, etc). So as @sileski reported I don't see the crash.

@jfversluis any ideas?

rdurish avatar May 15 '24 12:05 rdurish

@rdurish I'm currently checking this issue, because I fixed it long ago #14

sact1909 avatar May 15 '24 12:05 sact1909

@jfversluis For some reason if you install the Nuget package you will get the error message but just in that case, if you clone the repository and added as a reference project and try to record a second video, it works properly, you think it was something that missing on the build release?? we can check this together whenever you want...

sact1909 avatar Jun 10 '24 15:06 sact1909

I think that was never released, whoops. It should be in 1.0.0-preview3 now so please try that!

jfversluis avatar Jan 05 '25 09:01 jfversluis