Example #1
0
        public override object ConvertFromInvariantString(string value)
        {
            if (value == null)
            {
                return(null);
            }

            Uri result;

            if (!Uri.TryCreate(value, UriKind.Absolute, out result) || result.Scheme == "file")
            {
                return(VideoSource.FromFile(value));
            }

            return(VideoSource.FromUri(result));
        }