Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Make sure our AVPlayer has an AVPlayerItem if we already got a URL
            UpdatePlayerItem();

            // Setup sub-view controllers.
            // 1) A PlaybackViewController for the video and playback controls.
            playbackViewController        = (PlaybackViewController)Storyboard.InstantiateViewController("Playback");
            playbackViewController.Player = player;

            // 2) A PlaybackDetailsViewController for property values.
            playbackDetailsViewController        = (PlaybackDetailsViewController)Storyboard.InstantiateViewController("PlaybackDetails");
            playbackDetailsViewController.Player = player;

            // Add both new views to our stackView.
            stackView.AddArrangedSubview(playbackViewController.View);
            stackView.AddArrangedSubview(playbackDetailsViewController.View);
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			// Make sure our AVPlayer has an AVPlayerItem if we already got a URL
			UpdatePlayerItem ();

			// Setup sub-view controllers.
			// 1) A PlaybackViewController for the video and playback controls.
			playbackViewController = (PlaybackViewController)Storyboard.InstantiateViewController ("Playback");
			playbackViewController.Player = player;

			// 2) A PlaybackDetailsViewController for property values.
			playbackDetailsViewController = (PlaybackDetailsViewController)Storyboard.InstantiateViewController ("PlaybackDetails");
			playbackDetailsViewController.Player = player;

			// Add both new views to our stackView.
			stackView.AddArrangedSubview (playbackViewController.View);
			stackView.AddArrangedSubview (playbackDetailsViewController.View);
		}