Beispiel #1
0
        private void OnError(VideoPlayer arg1, string arg2)
        {
            string msg = isPT ? "Não foi possível exibir o vídeo" : "No es posible ver el video";

            _infoText.SetText(msg);

            StartCoroutine(CleanInfoText());

            if (fromURL)
            {
                Play(_clipName);
            }
            else
            {
                Play(_clip);
            }
        }
        protected IEnumerator PrepareVideo()
        {
            _player.Prepare();

            if (_fromURL)
            {
                string msg = isPT ? "Baixando o vídeo..." : "Descargando el vídeo...";
                _infoText.SetText(msg);
            }

            while (!_player.IsPrepared())
            {
                yield return(null);
            }

            _infoText.SetText("");

            yield return(null);

            _holdFade = false;
        }