Be sure that the decoder (target sdk) supports the video format you are using. You can use VLC Player to convert video format to the desired one. In my case, I converted the MP4 to WebM file and load it in the VideoView . Here is how you get the file path and play your video .
You can't play video in Raw folder. You should put your video (.3gp, mp4) in SD card of Emulator and play it. Because Emulator just supports playing videos in SD card (not for Raw like audio).
Well ! if you are using a android Compatibility Video then the only cause of this alert is you must be using a video sized more then the 300MB. Android doesn't support large Video (>300MB). We can get it by using NDK optimization. You can access your SD card via the DDMS
In the ShowVideo activity i have button to upload the video , when i got the message " Can't Play Video " i been able to take video from the same path and upload it and can check that video at server side but video view didn't played that video . So, the Video Path of the SDCard is not the problem thats for sure.
September 2015 in Xamarin. Android Getting " Can't Play video error" when using video view to play a video var videoView = FindViewById (Resource.Id.SampleVideoView);
Play video from url in VideoView [ Android ] Ask Question Asked 4 years, 2 months ago. Active today. Viewed 57k times 16. 4. I found a similar questions but nothing work for me. I try play video from this url: ... saying " can't play this video " - EdgeDev May 29 '20 at 16:19 | show 2 more comments. 3.
My guess is that your video is incompatible with Android . Try it with a different video . This one definitely works used to work with Android (but does not on newer devices, for some reason). If that video works, and yours does not, then your video is not compatible with Android .
I am developing an android application which requires a youtube video player embedded within it. I successfully got the RTSP video URL from the API, but while trying to load this rtsp url in my android video view, it says " Can't play this video .Previously I developed a similar application in this method, and it worked fine at that time, but it also failing to load now.
How to use a VideoView element to play videos on your Android app. If needed, you can read more about the VideoView widget in detail before proceeding. Note: Find the full code of the project towards the end of the post. Read the entire post for further clarification and explanations.
I have tried all the example on the net and I still cant get videoview to play a video here is my code and the err im getting.