Android Question I want to play a mp4 video in b4a, I alway get "can't play this video"

AndyChang

Member
Licensed User
I read the user guide about VideoView in Audio chapter https://www.b4x.com/android/help/audio.html#videoview

and copy the sample program directly into my test program (like attached), add library audio and carefully replace the position of my v1.mp4. But I get "can't play this video (like the attached file show)"

What's wrong with my program?
Please help me. Thanks.

Andy
 

Attachments

  • videoplaytest.zip
    6.7 KB · Views: 525
  • error msg.png
    error msg.png
    50.3 KB · Views: 503

AndyChang

Member
Licensed User
Thank DonManfred,

I want to learn how to play MP4 video in B4A. Through the User guide and forums, I found many way can play video.
I test one by one. Some method can pass the compilation but will generate error msg (can't play this video), some I don't even know how to install the libraries.

I have read the articles that Erel showed in the forums ( https://www.b4x.com/android/forum/threads/exoplayer-mediaplayer-videoview-alternative.72652/)
It looks so easy to implement. I am happy to start test it. I found that I am lack of many basic knowledge. I don't even know how to add the Library exoplayer.aar into additional libraries folder. I feel so upset.
I need help to learn
1) Where to find the additional libraries folder
2) If I find the folder, then I copy the file exoplayer.aar into the folder. (Is that right?)
3) Then I change the directory and MP4 file name and use libraries manager to add Audio library. (Is that right?)
4) Then I can run the program. (Is that right?)
Andy need help.
 
Upvote 0

AndyChang

Member
Licensed User
I found the detail description about additional libraries folder in the Beginners Guide. I lost reading about this chapter.
Sorry everybody. I will study it first, if It still can not work, I will come back to ask for help. Thanks you all.
Andy
 
Upvote 0
Top