Exemplo n.º 1
0
        protected virtual void PlayInternal(bool resume)
        {
            try
            {
                if (!RunningOnExtender || !Config.Instance.EnableTranscode360 || Helper.IsExtenderNativeVideo(this.Filename))
                {
                    PlayAndGoFullScreen(this.Filename);
                }
                else
                {
                    // if we are on an extender, we need to start up our transcoder
                    try
                    {
                        PlayFileWithTranscode(this.Filename);
                    }
                    catch
                    {
                        // in case t360 is not installed - we may get an assembly loading failure
                        PlayAndGoFullScreen(this.Filename);
                    }
                }

                if (resume)
                {
                    PlaybackController.Seek(PlayState.PositionTicks);
                }
            }
            catch (Exception ex)
            {
                Logger.ReportException("Failed to play " + this.Filename, ex);
            }
        }