Ejemplo n.º 1
0
        public static async Task <MediaInfo> Open(string source)
        {
            MediaInfo mediaInfo = new MediaInfo();

            mediaInfo.Source = source;
            await mediaInfo.FF_Open(source);

            return(mediaInfo);
        }
Ejemplo n.º 2
0
        public static async Task <MediaInfo> Open(string source)
        {
            MediaInfo mediaInfo = new MediaInfo();

            mediaInfo.Source = source;
            await mediaInfo.FF_Open(source);

            if (!source.StartsWith("http"))
            {
                mediaInfo.Title = Path.GetFileName(source);
            }
            return(mediaInfo);
        }
        public static async Task <MediaInfo> Open(string source, string externalAudioSource)
        {
            MediaInfo mediaInfo = new MediaInfo();

            mediaInfo.Source = source;
            await mediaInfo.FF_Open(source).ConfigureAwait(false);

            if (!source.StartsWith("http"))
            {
                mediaInfo.Title = Path.GetFileName(source);
            }
            mediaInfo.ExternalAudioSource = externalAudioSource;
            await mediaInfo.FF_ExternalAudioOpen(externalAudioSource).ConfigureAwait(false);

            return(mediaInfo);
        }