示例#1
0
        /// <summary>
        /// The most basic way of "constructing" this object by providing all the needed info.
        /// </summary>
        /// <param name="path">Path to the media file.</param>
        /// <param name="name">Name of the file</param>
        /// <param name="format">Extension of the file.</param>
        /// <returns>The newly constructed NBVideo object</returns>
        public static Task <NBVideo> FromGivenInfoAsync(string path, string name, string format)
        {
            NBVideo nbVideo = new NBVideo(path, name, format);

            return(nbVideo.SetupPropertiesAsync());
        }
示例#2
0
        /// <summary>
        /// "Construct" this object using a StorageFile object/media file.
        /// </summary>
        /// <param name="file">The file</param>
        /// <returns>The newly constructed NBVideo object</returns>
        public static Task <NBVideo> FromStorageFileAsync(StorageFile file)
        {
            NBVideo nbVideo = new NBVideo(file);

            return(nbVideo.SetupPropertiesAsync());
        }