Closed himanshu8443 closed 1 month ago
Thank you for your bug report. We will review it and get back to you if we need more information.
There is a newer version of the library available. You are using version 6.4.5, while the latest stable version is 6.5.0. Please update to the latest version and check if the issue still exists.
Note: If the issue still exists, please update the issue report with the latest information.
Thank you for your bug report. We will review it and get back to you if we need more information.
@himanshu8443 I tested it with your URL, but I didn't see any errors in logcat. Could you please give me some clues about it?
@himanshu8443 I tested it with your URL, but I didn't see any errors in logcat. Could you please give me some clues about it?
Whenever I play this URL player closes and logs the above error. I don't know if it is a device-specific issue but I am also getting the same error in android emulator. Have you tried it in emulator? And also try changing the audio track
Properties
avd.ini.displayname Pixel_3a_API_34_extension_level_7_x86_64
avd.ini.encoding UTF-8
AvdId Pixel_3a_API_34_extension_level_7_x86_64
disk.dataPartition.size 6442450944
hw.accelerometer yes
hw.arc false
hw.audioInput yes
hw.battery yes
hw.camera.back emulated
hw.camera.front emulated
hw.cpu.ncore 2
hw.device.hash2 MD5:0e6953ebf01bdc6b33a2f54746629c50
hw.device.manufacturer Google
hw.device.name pixel_3a
hw.dPad no
hw.gps yes
hw.gpu.enabled yes
hw.gpu.mode auto
hw.keyboard yes
hw.lcd.density 440
hw.lcd.height 2220
hw.lcd.width 1080
hw.mainKeys no
hw.ramSize 1536
hw.sdCard yes
hw.sensors.orientation yes
hw.sensors.proximity yes
hw.trackBall no
image.androidVersion.api 34
image.sysdir.1 system-images\android-34\google_apis\x86_64\
PlayStore.enabled false
runtime.network.latency none
runtime.network.speed full
snapshot.present no
tag.display Google APIs
tag.id google_apis
vm.heapSize 256
I tested it on the emulator, and it works correctly.
The answer is here : https://github.com/google/ExoPlayer/issues/6525 The mime type is audio/mpeg-L2 which is not mandatory on android device integration. The solution should be to build with ffmpeg (I never try)
ok, I can confirm when I tried playing it without using selectedAudioTrack
property video played fine. The error only occurs on using onAudioTracks
property and changing the audio track using selectedAudioTrack
by default audio selected is index 1 (audio/mp4a-latm) changing to 'audio/mpeg-L2' causes error
so just adding selectedAudioTrack={{ type: SelectedTrackType.INDEX, value: 0, }}
in player properties should reproduce the issue
I tested in some other player that also claims to uses Exo Player it was playing fine that's why I thought its not Exo Player issue may be it is
I reproduce the issue on an exoplayer sample (without ffmpeg). In fact in the sample, the track is grey because it is not supported. Here user cannot identify the track as unsupported. I will add a new flag to be able to track unsupported tracks. I really think the solution is to enable ffmpeg in exoplayer to be able to play this track...
I reproduce the issue on an exoplayer sample (without ffmpeg). In fact in the sample, the track is grey because it is not supported. Here user cannot identify the track as unsupported. I will add a new flag to be able to track unsupported tracks. I really think the solution is to enable ffmpeg in exoplayer to be able to play this track...
yes ffmpeg is really needed to provide support on various devices. this is the only blocker i am facing currently.
Let's follow up in: https://github.com/TheWidlarzGroup/react-native-video/issues/3106
Version
6.5.0
What platforms are you having the problem on?
Android
System Version
14
On what device are you experiencing the issue?
Real device
Architecture
Old architecture
What happened?
Getting error in some mkv files
showing audio is unsupported but I tried in various other native players that use Exoplayer and the video is playing fine
Reproduction Link
No response
Reproduction
Try playing the sample URL and the player shows error
here is a sample video URL = https://pixeldra.in/api/file/bQb6RKk3?download,