Exemple #1
0
    public void LoadVideo(VideoDisplay videoDisplay)
    {
        currentVideo = videoDisplay;

        if (GuideAdapter.Instance)
        {
            Haze.Logger.Log("Loading video: " + videoDisplay.VideoName);

            GuideAdapter.Instance.SendLoadVideo(videoDisplay.VideoName, videoDisplay.Settings.is360 ? "360" : "235");
            displaying      = true;
            allDevicesReady = false;
            startedPlayback = false;
            lastTimeShown   = 0;

            videoPlayer.OpenMedia(new MediaPath(videoDisplay.FullPath, MediaPathType.RelativeToPersistentDataFolder), autoPlay: false);

            timeSlider.SetValueWithoutNotify(0);

            Haze.Logger.Log("Loading...");
            onLoad.Invoke();
            onPause.Invoke();

            HasVideoLoaded = true;
            ConnectionsDisplayer.UpdateAllDisplays();
        }
        else
        {
            Haze.Logger.LogError("Error: No GuideAdapter instance!");
        }
    }
Exemple #2
0
	public void Auth() {
		if(CurrentPIN == pinInput.text) {
			IsAppUnlocked = true;
			TemporalUnlock = true;
			//Update all device displays
			foreach(ConnectionsDisplayer.DisplayedConnectionHandle h in ConnectionsDisplayer.Instance.Handles) {
				h.display.UpdateDisplay();
			}
			//Ok!
			if(shouldOpenSettings) {
				openSettingsPanel.Invoke();
			}
			CloseAuthPanel();
			ConnectionsDisplayer.UpdateAllDisplays();
			if(VideoDisplay.expandedDisplay != null) {
				VideoDisplay.expandedDisplay.expand();//update that display.
			}
		}
	}