Exemplo n.º 1
0
        private void PlayFileWithTranscode(string filename)
        {
            if (transcoder == null)
            {
                transcoder = new Transcoder();
            }

            string bufferpath = transcoder.BeginTranscode(this.Filename);

            // if bufferpath comes back null, that means the transcoder i) failed to start or ii) they
            // don't even have it installed
            if (bufferpath == null)
            {
                Application.DisplayDialog("Could not start transcoding process", "Transcode Error");
                return;
            }
            PlayAndGoFullScreen(bufferpath);
        }
        private void PlayFileWithTranscode(string filename)
        {
            if (transcoder == null)
                transcoder = new Transcoder();

            string bufferpath = transcoder.BeginTranscode(this.Filename);

            // if bufferpath comes back null, that means the transcoder i) failed to start or ii) they
            // don't even have it installed
            if (bufferpath == null)
            {
                Application.DisplayDialog("Could not start transcoding process", "Transcode Error");
                return;
            }
            PlayAndGoFullScreen(bufferpath);
        }