// Update is called once per frame
    void Update()
    {
        if (videoIsPlaying)
        {
            if (Input.GetKeyDown(KeyCode.Space))
            {
                activePlayer.Pause();
                videoIsPlaying = false;
            }
        }
        else if (!videoIsPlaying)
        {
            if (Input.GetKeyDown(KeyCode.Space))
            {
                activePlayer.Play();
                videoIsPlaying = true;
            }
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            activeMoviePlayer.EndPlaybackAndReturn();
        }
    }