Your video may not be safe for streaming. http://stackoverflow.com/questions/1841397/android-mediaplayer-emulator-and-url http://groups.google.com/group/android-developers/browse_thread/thread/8161a1aabc11357b http://groups.google.com/group/android-developers/browse_thread/thread/f046f900657f1fb0
On Thu, Jan 27, 2011 at 3:49 AM, Amit <[email protected]> wrote: > Hi All, > > I am trying to play video on my application. The video files are > hosted in my server and I am using the VideoView to play them. > > The problem I am facing is that no video is shown in the screen. The > logcat only shows the amount of buffering but it does not shows any > type of codec that has been used to pay the video > > Surprisingly if i transfer the same file to my sdcard and use the > default player, it plays fine saying that MPEG4 codes is been used. > > What may be the problem. > > Kindly Help > > Here is my code for the reference- > > setContentView(R.layout.videoplayer); > Bundle bundle = getIntent().getExtras(); > > VideoView videoView = (VideoView) findViewById(R.id.VideoView); > videoView.setOnPreparedListener(this); > MediaController mediaController = new MediaController(this); > mediaController.setAnchorView(videoView); > > Uri video = Uri.parse("http://newshunt.biz/Test/video/Test/ > outputfile.mp4"); > videoView.setMediaController(mediaController); > videoView.setVideoURI(video); > videoView.start(); > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

