예제 #1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Codec name: " + CodecName);
            sb.Append("Codec type: " + CodecType);
            if (Bitrate != 0)
            {
                sb.Append("\nBit rate: " + BasicMediaFormatInfo.GetBitrateFormat(Bitrate));
            }
            if (!Double.IsNaN(FrameRate))
            {
                sb.Append("\nFrame rate: " + FrameRate.ToString("0.00") + " FPS");
            }
            if (Duration != 0)
            {
                sb.Append("\nDuration: " + BasicMediaFormatInfo.GetTimeFormat((int)Duration));
            }
            if (Title != "")
            {
                sb.Append("\nTitle: \"" + Title + "\"");
            }
            if (Language != "")
            {
                sb.Append("\nLanguage: \"" + Language + "\"");
            }
            return(sb.ToString());
        }