#Android problems

1 messages ยท Page 1 of 1 (latest)

foggy onyx
#

Hello!

I unfortunately have some issues with this asset:

  1. On Android in a AR scene when you press the record button we call the 'Create Video Recorder' and directly after that we call 'Prepare Recording'. If the permissions are accepted a 3 seconds timer will start. This is because the AR camera is turned off for a second and it needs time to replace the AR object back into place. After the 3 second timer end there is a +- 1 second freeze and than the video is recording. This freeze is also vissible in the final recording.

  2. We encounterd different permiision pop-ups on different devices. On a Oppo we have a microphone + screen/cast record permission. But on a Pixel 6a we had a pop-up that asked for a single app or a fullscreen recording. If you press single recording the permission is not given. Why is that? This is the same issue as "How to Avoid Screen Selection Popup in Unity Library?"

  3. If you don't accept the microphone permission it doesn't ask you the next time you want to record a screen recording. Will this be fixed?

#

I see just now that there is a new version coming tomorrow. Is there something in it that will help me?

cobalt wasp
#

"single app or a fullscreen recording" - This we are still waiting for the device as its something not noticed in our tests. May I know what android version pixel is on?

foggy onyx
#

Any ideas about my other issues?

cobalt wasp
#

For AR,
After prepare is called, permissions are triggered. After this once you call StartRecording you see the freeze?

foggy onyx
#

yes

#

i call start recording when the user accepted the permission

cobalt wasp
#

ok, where do you see the freeze? Right after calling StartRecording?

foggy onyx
#

yup

cobalt wasp
#

Ok. Do you have any minimal test project we can try?

#

Also, regarding #1, if microphone option is enabled and if the permission is not allowed, it ends the prepare with an error.

foggy onyx
#

But you should see the same pop-up if you have an newer pixel device and test it on your demo scene

cobalt wasp
#

Do you have any logcat log on that device?

foggy onyx
#

Currently not because im not at work anymore. Tomorrow I can give that

cobalt wasp
#

Also, I can't reproduce the #3 issue. After declining audio permission, multiple times, it just wont show permission as user needs to manually enable it from settings. This is expected.

foggy onyx
#

Yeah we catched that with a pop-up now but i was wondering if i could make it easier for the user ๐Ÿ˜„

foggy onyx
#

it will be the new standard for android 15 i think

cobalt wasp
#

I didn't cover the issue in the submitted version, but definitely will resolve it once i get the logcat log

#

We haven't upgraded yet to 15. I will check.

foggy onyx
#

Than our only option for now is excluding pixels or show a pop-up that they need to press entire screen

foggy onyx
#

Are there already patch-notes for the update tomorrow?

foggy onyx
#

This has nothing to do with the problems I have right?

cobalt wasp
#

Pls check #3 as I was unable to reproduce with latest build.

foggy onyx
#

Can I share the logs to you in DM please?

#

Send

#

This will have the freeze in it and the weird single or entire screen pop up in it. Device used: Pixel 6a, android 14

#

Oh. Is it possible to not save videos in a folder with the unity project name. But directly into the fotos begin screen? Like it should when you do s screen recording on Android itself?

cobalt wasp
foggy onyx
#

Which device you have?

cobalt wasp
#

But can you try updating this .aar file in the unity project and see if you can avoid that popup?

cobalt wasp
foggy onyx
#

Im on API 33

#

Minimum is 24

#

If I update the plugin. What are the steps.to do that? Just update or should I first use the uninstall button

foggy onyx
#

Yeah so just click the uninstall button

cobalt wasp
#

Delete Assets/Plugins/VoxelBusters/CoreLibrary folder

Delete Assets/Plugins/VoxelBusters/ScreenRecorderKit folder

Delete Assets/Plugins/Android/com.voxelbusters.replaykit.androidlib folder (if exists)

#

ok

#

I think it deletes all the above folders.

foggy onyx
#

Thnx. And where do I find the aar in the project?

cobalt wasp
#

pls search for com.voxelbusters.screenrecorderkit.video-recorderin the unity project

foggy onyx
#

Got it. I will try those in a new branch and let you know ๐Ÿ™๐Ÿป

cobalt wasp
#

sure!

#

Unfortunately, I couldn't cross check as It dont show up in the emulator.

foggy onyx
#

๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป

#

It's in dutch but it's solved ๐Ÿฅณ

#

What did you do exactly?

#

Did you also saw what was going wrong with the freeze in the logs?

cobalt wasp
#

I passed MediaProjectionConfig.createConfigForDefaultDisplay() when creating the required intent

foggy onyx
#

Sorry to tag you again in here but did you also found something weird in the logs of my freezing problem? @cobalt wasp

cobalt wasp
#

Btw, did you send the logcat log?