/// <summary> /// Removes XMP Metadata of FLV file format /// This method is supported by version 18.11 or higher /// </summary> public static void RemoveXMPMetadata() { using (FlvFormat format = new FlvFormat(Common.MapSourceFilePath(filePath))) { format.RemoveXmpData(); format.Save(Common.MapDestinationFilePath(filePath)); } }
public static void UpdateXMPMetadata() { using (FlvFormat format = new FlvFormat(Common.MapSourceFilePath(filePath))) { format.XmpValues.Schemes.XmpBasic.CreateDate = DateTime.Now; format.XmpValues.Schemes.XmpBasic.Label = "Test"; format.XmpValues.Schemes.DublinCore.Source = "http://groupdocs.com"; format.XmpValues.Schemes.DublinCore.Format = "FLV Video"; format.Save(Common.MapDestinationFilePath(filePath)); Console.WriteLine("File saved to destination folder..."); } }