[mono-android] rtp Stream is not playing
Dennis_BS
trekkieland-software at web.de
Fri Jun 29 14:31:05 UTC 2012
hi,
my videoView do not play my rtp stream. but why not?
regards Dennis
My output:
06-29 16:10:46.610 I/ServiceManager(11204): Waiting for service
media.audio_flinger...
06-29 16:10:47.610 W/AudioSystem(11204): AudioFlinger not published,
waiting...
My code:
using Android.Views;
using Android.Widget;
using Android.Util;
namespace HelloTabWidget
{
[Activity(Label = "My Activity")]
public class PlayerActivity : Activity
{
VideoView videoView;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Player);
Button button = FindViewById<Button>(Resource.Id.playButton);
button.Click += delegate
{
playVideo();
};
}
protected void playVideo()
{
videoView = FindViewById<VideoView>(Resource.Id.videoView1);
var myUri = Android.Net.Uri.Parse("rtp://192.168.0.119:5555/");
videoView.SetVideoURI(myUri);
//Toast.MakeText(this, uri.ToString(),
ToastLength.Short).Show();
videoView.Start();
}
}
}
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/rtp-Stream-is-not-playing-tp5710679.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list