/// <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)); } }
/// <summary> /// Reads FLV header metadata /// This method is supported by version 18.11 or greater /// </summary> public static void ReadFlvHeaderMetadata() { using (FlvFormat format = new FlvFormat(Common.MapSourceFilePath(filePath))) { Console.WriteLine(format.Header.Version); Console.WriteLine(format.Header.HasVideoTags); Console.WriteLine(format.Header.HasAudioTags); Console.WriteLine(Convert.ToString(format.Header.TypeFlags, 2).PadLeft(8, '0')); } }
/// <summary> /// Gets XMP Metadata of FLV file format /// This method is supported by version 18.11 or higher /// </summary> public static void GetXMPMetadata() { using (FlvFormat format = new FlvFormat(Common.MapSourceFilePath(filePath))) { Console.WriteLine(format.XmpValues.Schemes.XmpBasic.CreateDate); Console.WriteLine(format.XmpValues.Schemes.XmpBasic.Label); Console.WriteLine(format.XmpValues.Schemes.DublinCore.Source); Console.WriteLine(format.XmpValues.Schemes.DublinCore.Format); } }
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..."); } }