public static NativeFileInfo FromPath(string path) { string fileType = PathUtils.GetExtension(path); if (MediaRenderer.AllMediaTypes.Contains(fileType)) { return(MediaFileInfo.FromPath(path, true)); } return(new NativeFileInfo(path, true)); }
public static ITaggedMediaFileInfo GetTaggedMediaFileInfo(string path, bool deepLoad) { try { MediaFileInfo mfi = MediaFileInfo.FromPath(path, deepLoad); return(mfi as ITaggedMediaFileInfo); } catch (Exception ex) { Logger.LogException(ex); return(null); } }