Tuesday, January 17, 2012

[android-developers] Re: No Video but audio present when using MediaPlayer on the emulator

Does anyone have any sample code for playing video. Although it could
be emulator using the debugger it seems like the window is not even
being created even when the Mediaplayer is turned off. I'm using a
class I extended from VideoView. The surfaceCreated method does not
ever get called. I'm using this view within a GridView and I cannot
get any response from the OnClicked handler in the GridView. It works
fine for other objects in the GridView.

A working sample would be very useful to help me see what is going on.

As a sidenote I have a 3.6GHz Quadcore PC. Does the emulator make use
of the multiple cores?

On Jan 16, 7:22 pm, "rperi...@yahoo.com" <rperi...@yahoo.com> wrote:
> Thanks for the reply Mark. I guess I will need to try it out on a real
> device.
>
> On Jan 16, 4:25 am, Mark Murphy <mmur...@commonsware.com> wrote:
>
>
>
> > You are trying to use the emulator to play back video. This is
> > unlikely to be successful due to the speed of the emulator. For
> > testing video in apps, most likely you will need to use an Android
> > device.
>
> > On Mon, Jan 16, 2012 at 1:09 AM, rperi...@yahoo.com <rperi...@yahoo.com> wrote:
> > > Has anyone else had this issue. I'm trying to play video and the video
> > > window is not present although I can hear audio. I tried creating the
> > > Mediaplayer as an AsyncTask and the same thing happens although UI
> > > performance is much better.
>
> > > Any ideas on what could be wrong?
>
> > > --
> > > 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 DC:http://marakana.com/training/android/-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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