compressed video file not play in VideoView from WebServer
See original GitHub issuei’m developing application which record the video and save to web server, and since recorded video have too much size i use compression technique SiliCompressor in order to reduce size of original video.
after applying compression technique, video size reduces and i also play that compressed video file into my VideoView and till here working perfectly.
when i upload compressed video file to my live webserver and try to play video from url in VideoView, it’s not playing.
However it work in my localhost server well.
can u help me what is problem ?
here is my code to play video from my live web server
VideoView vv = (VideoView)findViewById(R.id.vv);
vv.setZOrderOnTop(true);
try {
MediaController mediacontroller = new MediaController(this);
mediacontroller.setAnchorView(vv);
Uri uri = Uri.parse(_video_link);
vv.setMediaController(mediacontroller);
vv.setVideoURI(uri);
vv.seekTo(1);
} catch (Exception e) {
Log.e("Error", e.getMessage());
e.printStackTrace();
}
vv.requestFocus();
vv.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
public void onPrepared(MediaPlayer mp) {
mp.setLooping(true);
vv.start();
}
});
vv.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mp)
{
vv.resume();
}
});
Issue Analytics
- State:
- Created 5 years ago
- Comments:39 (1 by maintainers)
Top Results From Across the Web
compressed video file not play in VideoView from WebServer
i'm developing application which record the video and save to web server, and since recorded video have too much size i use some...
Read more >VideoView - Android Developers
Displays a video file. The VideoView class can load images from various sources (such as resources or content providers), takes care of computing...
Read more >react-native-video - npm
Put the player in fullscreen mode. On iOS, this displays the video in a fullscreen view controller with controls. On Android ExoPlayer & ......
Read more >What Is Video Streaming? Definition, Meaning and How It Works
Video streaming enables users to view videos online without having to ... data in the video file is compressed and sent to the...
Read more >How to Play Video from URL in Android? - GeeksforGeeks
The VideoView widget is capable of playing media files, and the formats supported by the VideoView are 3gp and MP4. By using VideoView...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok sure , I’ll wait for your response.
Hi, Did anyone resolve this issue…?..“Video not streaming from web url after compression.”