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: [email protected]
[mailto:[email protected]] On Behalf Of Wally McClure
Sent: Wednesday, February 01, 2012 2:10 PM
To: [email protected]
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: [email protected]
To: [email protected]
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
[email protected] UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid