[mono-android] documentation and samples

Tatiana Golod tatiana.golod at vianettv.com
Wed Feb 1 20:35:23 UTC 2012


Thanks,

When I use the java code example of the MediaPlayer I can hear only the
audio, but no video (mp4).

I also tried the VideoView along with MediaController, the same result. 

I'm using emulator so that might be the problem. 

Also, I might missing something in using the SurfaceHolder, what I do is
simply created SurfaceView obj:

 

       protected override void OnCreate(Bundle InBundle)

       {

       ....

            var player = new MediaPlayer();

            player.SetDataSource(this,
Android.Net.Uri.Parse("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"));

 

            var surfaceView = new SurfaceView(this);

            player.SetDisplay(surfaceView.Holder);

            player.Prepare();

            player.SetOnPreparedListener(this);

       ....

                }

       void MediaPlayer.IOnPreparedListener.OnPrepared(MediaPlayer mp)

       {

            mp.Start();

       }

 

 

 

 

 

 

 

 

was looking in the java code, 

From: monodroid-bounces at lists.ximian.com
[mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Wally McClure
Sent: Wednesday, February 01, 2012 2:10 PM
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] documentation and samples

 

I'll have an example of this out on March 1 in Visual Studio Magazine.  I
can't share it until then, but it will be out on their website then.

 

To stream video, its just about a 1 to 1 port of the java code.

 

Wally

  _____  

From: tatiana.golod at vianettv.com
To: monodroid at lists.ximian.com
Date: Wed, 1 Feb 2012 12:09:03 -0500
Subject: [mono-android] documentation and samples

Hello, 

I'm new to MonoDroid. I'm straggling to find a code sample fro stream_video
using player.

Also, can you refer me to additional documentation in addition to the "
Getting Started" in the Xamarin website

(http://docs.xamarin.com/android).

Thanks.

 

Tatiana

 


_______________________________________________ Monodroid mailing list
Monodroid at lists.ximian.com UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120201/ca5d1fe3/attachment-0001.html>


More information about the Monodroid mailing list