expo-video-player icon indicating copy to clipboard operation
expo-video-player copied to clipboard

Android expo-video-player error

Open dgdagadin87 opened this issue 2 years ago • 6 comments

Describe the bug On Android (Galaxy A12, Android version 11), when I try to record video from the phone camera, I want to play it on next screen, and I render expo video player to play it. But I catch error

Encountered a fatal error during playback: h.f.c.d.o0.b$a: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(1, null, null, video/avc, null, -1, null, [1920, 1080, -1.0], [-1, -1])

To Reproduce Steps to reproduce the behavior:

  1. Start recording video
  2. Stop recording video
  3. Navigate to next screen
  4. On next screen, render expo-video-player with this video.
  5. See error I wrote above

Expected behavior A clear and concise description of what you expected to happen.

Additional information:

  • Type: expo
  • Device: Samsung Galaxy A12
  • OS: Android 11
  • Package version 3.1
  • Expo version 1.0.0
  • Expo CLI version 4.12.10

dgdagadin87 avatar Dec 23 '21 14:12 dgdagadin87

Can you help me please?

dgdagadin87 avatar Dec 24 '21 11:12 dgdagadin87

Hi,

I would also be interested by any tips about this.

paul-leymet avatar Jan 05 '22 15:01 paul-leymet

I am also getting this one here frequently

[VideoPlayer] Fatal Error - Encountered a fatal error during playback: Player error: null: [object Object]

Only on Android, iOS working fine.

hirbod avatar Apr 06 '22 13:04 hirbod

I am also getting this one here frequently

[VideoPlayer] Fatal Error - Encountered a fatal error during playback: Player error: null: [object Object]

Only on Android, iOS working fine.

+1 on this

simahero avatar Jun 11 '22 19:06 simahero

Same issue as https://github.com/ihmpavel/expo-video-player/issues/464

ihmpavel avatar Jun 24 '22 08:06 ihmpavel

This issue has been resolved in the newest version of expo-av (12.0.4). The way videos getting unmounted has changed, I haven't seen this error anymore with SDK 46

hirbod avatar Aug 12 '22 17:08 hirbod