question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compressed video file not play in VideoView from WebServer

See original GitHub issue

i’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:open
  • Created 5 years ago
  • Comments:39 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
pritesh25commented, May 31, 2018

ok sure , I’ll wait for your response.

1reaction
SahilKashyapcommented, Jun 14, 2020

Hi, Did anyone resolve this issue…?..“Video not streaming from web url after compression.”

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found