public override object ConvertFromInvariantString(string value)
        {
            Uri uri;

            if (value == null)
            {
                return(null);
            }
            if (Uri.TryCreate(value, (UriKind)UriKind.Absolute, out uri) && (uri.Scheme != "file"))
            {
                return(VideoSource.FromUri(uri));
            }
            return(VideoSource.FromFile(value));
        }
Пример #2
0
 public VideoPlayer(VideoSource source, bool autoPlay = false)
 {
     this.AutoPlay = autoPlay;
     this.Source   = source;
 }