Reputation: 2248
I'm using Xamarin Android Player emulator to test the app I'm developing. The emulator doesn't play video at all. There's a black screen in place of the videoview.
I've written very simple code just to test the video playback. The code is below:
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.video);
videoView = FindViewById<VideoView>(Resource.Id.SampleVideoView);
var uri = Android.Net.Uri.Parse("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4");
videoView.SetVideoURI(uri);
videoView.Start();
}
Is it because the emulator doesn't support video playback or for some other reason? I have INTERNET permission checked off in the android manifest. Which other emulator can I test it on?
Upvotes: 0
Views: 346
Reputation: 7342
I have tested your code and it definitely works. You can try it on GenyMotion Emulator.
Upvotes: 1