I have one list and in this list I set the list of videos,
some video playing and some is not working. So I want to have a message(like video is not working) when video is not working or not playing.
How I check video is working or not ?
And I play this video URL in videoview.
If video is not working there are two reasons.
First the video's size is bigger then device and second, video is properly not working.
Related
I am trying to make an app where users post videos and see the posted videos in a feed ( like facebook). It all works. I am using cameraview for capturing video and Exoplayer for playing it. It works fine but the issue is that if video is posted by a device different than the device playing it then the video is not taking the full width of the screen.I guess it depends on the aspect ration/resolution of the video being posted.
How do I overcome this problem? How do apps like fb and instagram ensure the video is playing in the same area on all devices without cropping/stretching it
Thank you
I am creating a Video Player Application with custom User interface using MediaPlayer with Surfaceview , the video is playing through url everything is working fine , now i want to add video quality option like 540p , 720p etc I have url of different quality to play same video but with different resolution but i dont know how i can change Datasource of playing video to set url of desired resolution at runtime and change it and play it from where it is resumed just like Youtube.. I tried following code
mp.setDataSource(String.valueOf(Uri.parse(params[0])));
mp.prepare();
mp.start();
by using this video is playing but when i try to change Datsourec again by passing new url to
mp.setDataSource(String.valueOf(Uri.parse(params[0])));
It gives me IllegalstateException.. i tried to release and reset Medaiplayer but not able to do it .. Any Help would be beneficial.
I wants to play a video in mute mode without any media controller like facebook. I have uses a custom listView, in which i have used VideoView to play video when listview scroll is stopped/idle. But i am not getting proper output as required.
I also tried this link but did not get solution.
Thanks if any suggestion/solution. I apologize for my English.
## NOTE All videos are played from network/internet from different URLs.
My application uses a simple VideoView .It uses an 3gp file from assetsbut all i can see is a blank screen and music of that video.
Would someone help me to display the video?
P.S-I am trying it on emulator?
Do not use emulator for testing video playback. Its ability to handle video playback is very limited. You should use actual device to play videos.
Check https://stackoverflow.com/a/3005928/1341006 by Commonsware for more details
I am using Video View To stream Video.
I am able to start video successfully But what happens is after playing some video I am getting Dialog Box saying Can not play this video.
When I tried multiple times then I realized that It shows me dialog at random length of video played.
I don't able to find why this is happening.