public StreamGroup(ArchiveTranscoderJobSegmentPresentationDescriptor presDescriptor)
        {
            streams      = new ArrayList();
            this.payload = "dynamicPresentation";
            this.cname   = presDescriptor.PresentationCname;

            this.wireFormat = PresenterWireFormatType.Unknown;
            foreach (PresenterWireFormatType t in Enum.GetValues(typeof(PresenterWireFormatType)))
            {
                if (presDescriptor.PresentationFormat == t.ToString())
                {
                    this.wireFormat = t;
                    payload         = Utility.formatToPayload(t).ToString();
                    break;
                }
            }
        }
        public ArchiveTranscoderJobSegmentPresentationDescriptor ToPresentationDescriptor()
        {
            ArchiveTranscoderJobSegmentPresentationDescriptor d = new ArchiveTranscoderJobSegmentPresentationDescriptor();

            d.PresentationCname = this.cname;
            if (this.payload == "dynamicPresentation")
            {
                d.PresentationFormat = this.wireFormat.ToString();
            }
            else if (this.payload == "RTDocument")
            {
                d.PresentationFormat = this.wireFormat.ToString();
            }
            else if (this.payload == "dynamicVideo")
            {
                d.PresentationFormat = "Video";
                d.VideoDescriptor    = this.ToVideoDescriptor();
            }
            return(d);
        }