Using camera on Android Phone doesn't seem to work

Hello,

I am having trouble activating any camera on my android phone.

I have the following blueprint:

Running this on my laptop works and the webcam feed is displayed, on the phone it doesn’t and stays black(tried it with 3 different phones).

On all devices the onMediaOpened event fired and the onMediaOpenFailed event didn’t.

I’ve also tried printing the URL’s in the return value of the “enumerate video capture devices” function,
on the phone they were “vidcap://rear” and “vidcap://front”.

I also enabled the “Android Camera Player” Plugin and added the permissions to the android manifest.

Anyone has any idea what i’m doing wrong?

did you ever figured it out?

Have you set your material in the image slot of your HUD ?
Be carreful Material Domain.

Same here, on Win11 it works, on my android phones it stays black some-why, though the phone alerts of ongoing camera usage.

EDIT: The new Media Player/Media Framework in UE5.3.2 seems not not support Android Camera Input.
You can enforce the old usage by checking “Enable new style output” in the MediaPlayer_Texture and toggling the Texture Sample’s Sampler Type to External. You have also to use the permission manifest of the “Android Camera Player” Plugin.

Materials use a Texture Sample node which references the Media Texture asset. On the Texture Sample node, the Sampler Type property should be set to External unless you are using the Electra Media Player, then you must set the Sampler Type property to Color.

Source: Media Framework Overview for Unreal Engine | Unreal Engine 5.4 Documentation | Epic Developer Community

This approach worked for me on my Lineage 13/Android 13 mobile phone.