Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Play a video in Android

$
0
0

Hello Guys,

I want to play a video in videoView from the local file system(say a video from asset folder/Drawable folder). the following what i tried

    protected override void OnCreate (Bundle bundle)
    {
        base.OnCreate (bundle);

        SetContentView (Resource.Layout.Main);
        var videoView = FindViewById<VideoView> (Resource.Id.SampleVideoView);
        videoView.SetVideoPath("android.resource://drawable//videofile.3gp");

        videoView.Start ();   
    }

Any help would be appreciated.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>