Exemple #1
0
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            ContentView         = R.layout.activity_main;
            brightcoveVideoView = (BrightcoveVideoView)findViewById(R.id.brightcove_video_view);
            base.onCreate(savedInstanceState);

            vmapComponent = new VMAPComponent(brightcoveVideoView);

            View view = findViewById(R.id.ad_frame);

            if ((view != null) && (view is ViewGroup))
            {
                vmapComponent.addCompanionContainer((ViewGroup)view);
            }
            else
            {
                Log.e(TAG, "Companion container must be an instance of a ViewGroup");
            }

            Video video = Video.createVideo("http://media.w3.org/2010/05/sintel/trailer.mp4", DeliveryType.MP4);

            video.Properties.put(VMAPComponent.VMAP_URL, "http://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/ad_rule_samples&ciu_szs=300x250&ad_rule=1&impl=s&gdfp_req=1&env=vp&output=vmap&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ar%3Dpremidpost&cmsid=496&vid=short_onecue&correlator=");

            brightcoveVideoView.add(video);
            brightcoveVideoView.start();
        }
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            ContentView         = R.layout.activity_main;
            brightcoveVideoView = (BrightcoveTextureVideoView)findViewById(R.id.brightcove_video_view);
            base.onCreate(savedInstanceState);

            Video video = Video.createVideo("http://media.w3.org/2010/05/sintel/trailer.mp4", DeliveryType.MP4);

            brightcoveVideoView.add(video);
            brightcoveVideoView.start();
        }
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            // When extending the BrightcovePlayer, we must assign the BrightcoveVideoView
            // before entering the superclass. This allows for some stock video player lifecycle
            // management.
            ContentView         = R.layout.bundled_video_activity_main;
            brightcoveVideoView = (BrightcoveVideoView)findViewById(R.id.brightcove_video_view);
            base.onCreate(savedInstanceState);

            // Add a test video from the res/raw directory to the BrightcoveVideoView.
            string PACKAGE_NAME = ApplicationContext.PackageName;
            Uri    video        = Uri.parse("android.resource://" + PACKAGE_NAME + "/" + R.raw.shark);

            brightcoveVideoView.add(Video.createVideo(video.ToString()));
        }
Exemple #4
0
 public override void onVideo(Video video)
 {
     brightcoveVideoView.add(video);
     brightcoveVideoView.start();
 }
			public override void onVideo(Video video)
			{
				brightcoveVideoView.add(video);
				brightcoveVideoView.start();
			}