Example #1
0
        private bool playPauseToggleIsSilent = false; //Used to indicate whether toggling the button should not issue the toggled signal

        /* Constants */
        //private const string videoSetSubtitleStartIconFilename = "video-set-subtitle-start-16x.png";
        //private const string videoSetSubtitleEndIconFilename = "video-set-subtitle-end-16x.png";
        //private const string videoSetSubtitleStartEndIconFilename = "video-set-subtitle-start-end-30x.png";

        public Video()
        {
            videoArea = Base.GetWidget(WidgetNames.VideoAreaHBox) as Box;

            InitializeVideoFrame();
            InitializePlayer();

            overlay  = new SubtitleOverlay();
            position = new VideoPosition(player);
            tracker  = new SubtitleTracker();

            Base.InitFinished += OnBaseInitFinished;
        }
Example #2
0
	public Video () {
		videoArea = Base.GetWidget(WidgetNames.VideoAreaHBox) as HBox;

		InitializeVideoFrame();
		InitializePlayer();

		position = new VideoPosition(player);
		overlay = new SubtitleOverlay();
		tracker = new SubtitleTracker();

		SetCustomIcons();
		Base.InitFinished += OnBaseInitFinished;
	}