コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.PlayerSimple);
            BrightcoveVideoView brightcoveVideoView = FindViewById <BrightcoveVideoView>(Resource.Id.brightcove_video_view);

            brightcoveVideoView.Add
            (
                Video.CreateVideo
                (
                    GetString(Resource.String.video),
                    BrightcoveSDK.Player.Media.DeliveryType.Mp4
                )
            );
            brightcoveVideoView.Start();

            return;
        }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Create your application here
            SetContentView(Resource.Layout.PlayerSimple);
            BrightcoveVideoView brightcoveVideoView = FindViewById <BrightcoveVideoView>(Resource.Id.brightcove_video_view);

            brightcoveVideoView.Add
            (
                Video.CreateVideo
                (
                    "http://solutions.brightcove.com/bcls/assets/videos/Bird_Titmouse.mp4",
                    BrightcoveSDK.Player.Media.DeliveryType.Mp4
                )
            );
            brightcoveVideoView.Start();

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

            // Create your application here
            SetContentView(Resource.Layout.PlayerSimpleWithControls);
            ActionBar.Hide();
            BrightcoveVideoView brightcoveVideoView = FindViewById <BrightcoveVideoView>(Resource.Id.brightcove_video_view);

            MediaController controller = new MediaController(this);

            brightcoveVideoView.SetMediaController(controller);

            brightcoveVideoView.Add
            (
                Video.CreateVideo
                (
                    GetString(Resource.String.video),
                    BrightcoveSDK.Player.Media.DeliveryType.Mp4
                )
            );
            brightcoveVideoView.Start();
        }