Thursday, January 27, 2011

[android-developers] Re: Video not getting played from URL, same video is getting played locally

Thanks a lot Mark....You make my day.

What I did is that download mp4box, then hinted my file with mp4box -
hint filename, then uploaded the file back to my server....I re ran
the application...and it worked for me.

Thanks Again.

Best regards
Amit

On Jan 28, 12:45 am, Mark Murphy <mmur...@commonsware.com> wrote:
> Your video may not be safe for streaming.
>
> http://stackoverflow.com/questions/1841397/android-mediaplayer-emulat...http://groups.google.com/group/android-developers/browse_thread/threa...http://groups.google.com/group/android-developers/browse_thread/threa...
>
>
>
> On Thu, Jan 27, 2011 at 3:49 AM, Amit <amitmishr...@gmail.com> 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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscribe@googlegroups.com
> > 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1andhttp://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment