StansAssets / com.stansassets.android-native

Android Native Plugin Wiki
https://api.stansassets.com/android-native/
10 stars 1 forks source link

Video recording not working anymore (v2021.2) #42

Open cyliax opened 3 years ago

cyliax commented 3 years ago

Android 6/10/?: I've updated to 2021.2 and I do not get the video path anymore. What I get instead is a thumbnail jpg path:

AN_Camera.CaptureVideo((result) => OnMediaCaptured(result));

result.Media.Path is somthing like:

/data/user/0/de.kids_interactive.OurApp/files/JPEG_20210716_1124141403802103.jpg

The plugin is showing the native video camera and you can capture a movie.

iOS 12.4.5: Native video view starts but when you start to capture, it stops immediately and you get a video with 1 frame length. But at least it returns a video.

iOS 14.5.1 is working.

So why is that. Was working before. Can you help us. Thank you.

fillmore-admin commented 3 years ago

Both AN_Camera.CaptureImage and UM_Application.CameraService.TakePicture

are both not working on Android OS 11.

AndroidNative: Unity: [Async] Sent to Unity ->: {"m_media":[],"m_error":{"m_code":100,"m_message":"Error creating directory: /storage/emulated/0/bichooser"}}

Could be related.

qbytx commented 3 years ago

Confirming that we cannot get CameraService to take video or picture on android 11

cyliax commented 3 years ago

As a workaround: I'm working with a mix of 2021.2 (iOS) and 2021.1 (Android) so far, import Android plugin first. This is working without breaking changes in code or issues when recording videos.

fillmore-admin commented 3 years ago

It also has problems when built with unity 2019.4.29 LTS

fillmore-admin commented 3 years ago

As a workaround: I'm working with a mix of 2021.2 (iOS) and 2021.1 (Android) so far, import Android plugin first. This is working without breaking changes in code or issues when recording videos.

Not sure what you mean, I tried re-importing the Android plug in and it doesn't work still.

cyliax commented 3 years ago

I'm talking about Android Native Pro and iOS Native Pro versions not Unity versions. I meant using an older Android Native Pro combined with the current iOS Native Pro was working for me for now.

fillmore-admin commented 3 years ago

I'm talking about Android Native Pro and iOS Native Pro versions not Unity versions. I meant using an older Android Native Pro combined with the current iOS Native Pro was working for me for now.

Any idea on when a fix will be published? Can you link me to a working Android version?

cyliax commented 3 years ago

Unfortunately I can't provide you links to our internal archive. Please ask the developers if they can provide you the older version cause I'm not the publisher and can't check your license.

fillmore-admin commented 3 years ago

Unfortunately I can't provide you links to our internal archive. Please ask the developers if they can provide you the older version cause I'm not the publisher and can't check your license.

I'm happy to wait if a fix has been found and is close to being released?

fillmore-admin commented 3 years ago

Any update?

GreatVV commented 2 years ago

I need this fix too