Android libvlc Error handler for load errors of differrent media types
Posted: 08 Mar 2021 23:38
Hello All,
I am new to the forum and I am hoping I am asking the right questions.
I have embedded libvlc in my Android app and it works perfect!
However, I wish to know if there are any android libvlc APIs I can use to determine if a media file can be played back without errors. I have this issue with some files where playback of the file causes a crash, I would like to warn the user that playing the content will cause a crash.
I used the MediaPlayer.setEventListener to listen for errors, yet no MediaPlayer.Event.EncounteredError are generated for these files.
Any ideas how I could handle this issue with differrent media gracefully.
Thanks,
G.
I am new to the forum and I am hoping I am asking the right questions.
I have embedded libvlc in my Android app and it works perfect!
However, I wish to know if there are any android libvlc APIs I can use to determine if a media file can be played back without errors. I have this issue with some files where playback of the file causes a crash, I would like to warn the user that playing the content will cause a crash.
I used the MediaPlayer.setEventListener to listen for errors, yet no MediaPlayer.Event.EncounteredError are generated for these files.
Any ideas how I could handle this issue with differrent media gracefully.
Thanks,
G.