Function stringifyDashManifest

  • Parameters

    • manifest: DeepOptional<{
          MPD: {
              BaseURL?: readonly {
                  _content: string;
                  availabilityTimeComplete?: boolean;
                  availabilityTimeOffset?: number;
                  byteRange?: string;
                  serviceLocation?: string;
              }[];
              EssentialProperty?: readonly {
                  id?: string;
                  schemeIdUri: string;
                  value?: string;
              }[];
              Location?: readonly {
                  _content: string;
              }[];
              Metrics?: readonly {
                  Range?: readonly {
                      duration?: number;
                      starttime?: number;
                  }[];
                  Reporting: readonly {
                      id?: string;
                      schemeIdUri: string;
                      value?: string;
                  }[];
                  metrics: string;
              }[];
              Period: readonly {
                  AdaptationSet?: readonly {
                      Accessibility?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      AudioChannelConfiguration?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      BaseURL?: readonly {
                          _content: ...;
                          availabilityTimeComplete?: ...;
                          availabilityTimeOffset?: ...;
                          byteRange?: ...;
                          serviceLocation?: ...;
                      }[];
                      ContentComponent?: readonly {
                          Accessibility?: ...;
                          Rating?: ...;
                          Role?: ...;
                          Viewpoint?: ...;
                          contentType?: ...;
                          id?: ...;
                          lang?: ...;
                          par?: ...;
                      }[];
                      ContentProtection?: readonly {
                          default_KID?: ...;
                          id?: ...;
                          pro?: ...;
                          pssh?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      EssentialProperty?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      FramePacking?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      InbandEventStream?: readonly {
                          Event?: ...;
                          actuate: ...;
                          href?: ...;
                          messageData?: ...;
                          schemeIdUri: ...;
                          timescale?: ...;
                          value?: ...;
                      }[];
                      Rating?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      Representation?: readonly {
                          AudioChannelConfiguration?: ...;
                          BaseURL?: ...;
                          ContentProtection?: ...;
                          EssentialProperty?: ...;
                          FramePacking?: ...;
                          InbandEventStream?: ...;
                          SegmentBase?: ...;
                          SegmentList?: ...;
                          SegmentTemplate?: ...;
                          SubRepresentation?: ...;
                          SupplementalProperty?: ...;
                          Switching?: ...;
                          audioSamplingRate?: ...;
                          bandwidth: ...;
                          bitrate?: ...;
                          codecs?: ...;
                          codingDependency?: ...;
                          dependencyId?: ...;
                          frameRate?: ...;
                          height?: ...;
                          id: ...;
                          maxPlayoutRate?: ...;
                          maximumSAPPeriod?: ...;
                          mediaStreamStructureId?: ...;
                          mimeType?: ...;
                          parent: ...;
                          profiles?: ...;
                          qualityRanking?: ...;
                          sar?: ...;
                          scanType?: ...;
                          segmentProfiles?: ...;
                          startWithSAP?: ...;
                          width?: ...;
                      }[];
                      Role?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      SegmentBase?: {
                          Initialization?: (...) | (...);
                          RepresentationIndex?: (...) | (...);
                          availabilityTimeComplete?: (...) | (...) | (...);
                          availabilityTimeOffset?: (...) | (...);
                          indexRange?: (...) | (...);
                          indexRangeExact: boolean;
                          presentationTimeOffset?: (...) | (...);
                          timescale?: (...) | (...);
                      };
                      SegmentList?: {
                          BitstreamSwitching?: (...) | (...);
                          Initialization?: (...) | (...);
                          RepresentationIndex?: (...) | (...);
                          SegmentTimeline?: (...) | (...);
                          SegmentURL?: (...) | (...);
                          actuate: actuateType;
                          availabilityTimeComplete?: (...) | (...) | (...);
                          availabilityTimeOffset?: (...) | (...);
                          duration?: (...) | (...);
                          href?: (...) | (...);
                          indexRange?: (...) | (...);
                          indexRangeExact: boolean;
                          presentationTimeOffset?: (...) | (...);
                          startNumber?: (...) | (...);
                          timescale?: (...) | (...);
                      };
                      SegmentTemplate?: {
                          BitstreamSwitching?: (...) | (...);
                          Initialization?: (...) | (...);
                          RepresentationIndex?: (...) | (...);
                          SegmentTimeline?: (...) | (...);
                          availabilityTimeComplete?: (...) | (...) | (...);
                          availabilityTimeOffset?: (...) | (...);
                          bitstreamSwitching?: (...) | (...);
                          duration?: (...) | (...);
                          index?: (...) | (...);
                          indexRange?: (...) | (...);
                          indexRangeExact: boolean;
                          initialization?: (...) | (...);
                          media?: (...) | (...);
                          presentationTimeOffset?: (...) | (...);
                          startNumber?: (...) | (...);
                          timescale?: (...) | (...);
                      };
                      SupplementalProperty?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      Switching?: readonly {
                          interval: ...;
                          type?: ...;
                      }[];
                      Viewpoint?: readonly {
                          id?: ...;
                          schemeIdUri: ...;
                          value?: ...;
                      }[];
                      actuate: actuateType;
                      audioSamplingRate?: readonly number[];
                      bitstreamSwitching?: boolean;
                      codecs?: string;
                      codingDependency?: boolean;
                      contentType?: string;
                      frameRate?: readonly [number, number];
                      group?: number;
                      height?: number;
                      href?: string;
                      id?: number;
                      lang?: string;
                      maxBandwidth?: number;
                      maxFrameRate?: readonly [number, number];
                      maxHeight?: number;
                      maxPlayoutRate?: number;
                      maxWidth?: number;
                      maximumSAPPeriod?: number;
                      mimeType?: string;
                      minBandwidth?: number;
                      minFrameRate?: readonly [number, number];
                      minHeight?: number;
                      minWidth?: number;
                      par?: readonly [number, number];
                      parent: {
                          AdaptationSet?: readonly (...)[];
                          AssetIdentifier?: {
                              id?: ...;
                              schemeIdUri: ...;
                              value?: ...;
                          };
                          BaseURL?: readonly (...)[];
                          EventStream?: readonly (...)[];
                          SegmentBase?: {
                              Initialization?: ...;
                              RepresentationIndex?: ...;
                              availabilityTimeComplete?: ...;
                              availabilityTimeOffset?: ...;
                              indexRange?: ...;
                              indexRangeExact: ...;
                              presentationTimeOffset?: ...;
                              timescale?: ...;
                          };
                          SegmentList?: {
                              BitstreamSwitching?: ...;
                              Initialization?: ...;
                              RepresentationIndex?: ...;
                              SegmentTimeline?: ...;
                              SegmentURL?: ...;
                              actuate: ...;
                              availabilityTimeComplete?: ...;
                              availabilityTimeOffset?: ...;
                              duration?: ...;
                              href?: ...;
                              indexRange?: ...;
                              indexRangeExact: ...;
                              presentationTimeOffset?: ...;
                              startNumber?: ...;
                              timescale?: ...;
                          };
                          SegmentTemplate?: {
                              BitstreamSwitching?: ...;
                              Initialization?: ...;
                              RepresentationIndex?: ...;
                              SegmentTimeline?: ...;
                              availabilityTimeComplete?: ...;
                              availabilityTimeOffset?: ...;
                              bitstreamSwitching?: ...;
                              duration?: ...;
                              index?: ...;
                              indexRange?: ...;
                              indexRangeExact: ...;
                              initialization?: ...;
                              media?: ...;
                              presentationTimeOffset?: ...;
                              startNumber?: ...;
                              timescale?: ...;
                          };
                          Subset?: readonly (...)[];
                          SupplementalProperty?: readonly (...)[];
                          actuate: actuateType;
                          bitstreamSwitching: boolean;
                          duration?: number;
                          href?: string;
                          id?: string;
                          parent: {
                              BaseURL?: (...) | (...);
                              EssentialProperty?: (...) | (...);
                              Location?: (...) | (...);
                              Metrics?: (...) | (...);
                              Period: readonly (...)[];
                              ProgramInformation?: (...) | (...);
                              SupplementalProperty?: (...) | (...);
                              UTCTiming?: (...) | (...);
                              availabilityEndTime?: (...) | (...);
                              availabilityStartTime?: (...) | (...);
                              id?: (...) | (...);
                              maxSegmentDuration?: (...) | (...);
                              maxSubsegmentDuration?: (...) | (...);
                              mediaPresentationDuration?: (...) | (...);
                              minBufferTime: number;
                              minimumUpdatePeriod?: (...) | (...);
                              profiles: readonly (...)[];
                              publishTime?: (...) | (...);
                              suggestedPresentationDelay?: (...) | (...);
                              timeShiftBufferDepth?: (...) | (...);
                              type?: (...) | (...);
                          };
                          start?: number;
                      };
                      profiles?: readonly string[];
                      sar?: readonly [number, number];
                      scanType?: VideoScanType;
                      segmentAlignment: ConditionalUintType;
                      segmentProfiles?: string;
                      selectionPriority: number;
                      startWithSAP?: number;
                      subsegmentAlignment: ConditionalUintType;
                      subsegmentStartsWithSAP: number;
                      width?: number;
                  }[];
                  AssetIdentifier?: {
                      id?: string;
                      schemeIdUri: string;
                      value?: string;
                  };
                  BaseURL?: readonly {
                      _content: string;
                      availabilityTimeComplete?: boolean;
                      availabilityTimeOffset?: number;
                      byteRange?: string;
                      serviceLocation?: string;
                  }[];
                  EventStream?: readonly {
                      Event?: readonly {
                          duration?: ...;
                          id?: ...;
                          messageData?: ...;
                          presentationTime: ...;
                      }[];
                      actuate: actuateType;
                      href?: string;
                      messageData?: string;
                      schemeIdUri: string;
                      timescale?: number;
                      value?: string;
                  }[];
                  SegmentBase?: {
                      Initialization?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      RepresentationIndex?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      availabilityTimeComplete?: boolean;
                      availabilityTimeOffset?: number;
                      indexRange?: readonly [number, null | number];
                      indexRangeExact: boolean;
                      presentationTimeOffset?: number;
                      timescale?: number;
                  };
                  SegmentList?: {
                      BitstreamSwitching?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      Initialization?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      RepresentationIndex?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      SegmentTimeline?: {
                          S?: readonly (...)[];
                      };
                      SegmentURL?: readonly {
                          index?: (...) | (...);
                          indexRange?: (...) | (...);
                          media?: (...) | (...);
                          mediaRange?: (...) | (...);
                      }[];
                      actuate: actuateType;
                      availabilityTimeComplete?: boolean;
                      availabilityTimeOffset?: number;
                      duration?: number;
                      href?: string;
                      indexRange?: readonly [number, null | number];
                      indexRangeExact: boolean;
                      presentationTimeOffset?: number;
                      startNumber?: number;
                      timescale?: number;
                  };
                  SegmentTemplate?: {
                      BitstreamSwitching?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      Initialization?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      RepresentationIndex?: {
                          range?: readonly [(...), (...)];
                          sourceURL?: string;
                      };
                      SegmentTimeline?: {
                          S?: readonly (...)[];
                      };
                      availabilityTimeComplete?: boolean;
                      availabilityTimeOffset?: number;
                      bitstreamSwitching?: string;
                      duration?: number;
                      index?: string;
                      indexRange?: readonly [number, null | number];
                      indexRangeExact: boolean;
                      initialization?: string;
                      media?: string;
                      presentationTimeOffset?: number;
                      startNumber?: number;
                      timescale?: number;
                  };
                  Subset?: readonly {
                      contains: readonly number[];
                      id?: string;
                  }[];
                  SupplementalProperty?: readonly {
                      id?: string;
                      schemeIdUri: string;
                      value?: string;
                  }[];
                  actuate: actuateType;
                  bitstreamSwitching: boolean;
                  duration?: number;
                  href?: string;
                  id?: string;
                  parent: {
                      BaseURL?: readonly {
                          _content: string;
                          availabilityTimeComplete?: boolean;
                          availabilityTimeOffset?: number;
                          byteRange?: string;
                          serviceLocation?: string;
                      }[];
                      EssentialProperty?: readonly {
                          id?: string;
                          schemeIdUri: string;
                          value?: string;
                      }[];
                      Location?: readonly {
                          _content: string;
                      }[];
                      Metrics?: readonly {
                          Range?: readonly (...)[];
                          Reporting: readonly {
                              id?: ...;
                              schemeIdUri: ...;
                              value?: ...;
                          }[];
                          metrics: string;
                      }[];
                      Period: readonly {
                          AdaptationSet?: readonly {
                              Accessibility?: ...;
                              AudioChannelConfiguration?: ...;
                              BaseURL?: ...;
                              ContentComponent?: ...;
                              ContentProtection?: ...;
                              EssentialProperty?: ...;
                              FramePacking?: ...;
                              InbandEventStream?: ...;
                              Rating?: ...;
                              Representation?: ...;
                              Role?: ...;
                              SegmentBase?: ...;
                              SegmentList?: ...;
                              SegmentTemplate?: ...;
                              SupplementalProperty?: ...;
                              Switching?: ...;
                              Viewpoint?: ...;
                              actuate: ...;
                              audioSamplingRate?: ...;
                              bitstreamSwitching?: ...;
                              codecs?: ...;
                              codingDependency?: ...;
                              contentType?: ...;
                              frameRate?: ...;
                              group?: ...;
                              height?: ...;
                              href?: ...;
                              id?: ...;
                              lang?: ...;
                              maxBandwidth?: ...;
                              maxFrameRate?: ...;
                              maxHeight?: ...;
                              maxPlayoutRate?: ...;
                              maxWidth?: ...;
                              maximumSAPPeriod?: ...;
                              mimeType?: ...;
                              minBandwidth?: ...;
                              minFrameRate?: ...;
                              minHeight?: ...;
                              minWidth?: ...;
                              par?: ...;
                              parent: ...;
                              profiles?: ...;
                              sar?: ...;
                              scanType?: ...;
                              segmentAlignment: ...;
                              segmentProfiles?: ...;
                              selectionPriority: ...;
                              startWithSAP?: ...;
                              subsegmentAlignment: ...;
                              subsegmentStartsWithSAP: ...;
                              width?: ...;
                          }[];
                          AssetIdentifier?: {
                              id?: (...) | (...);
                              schemeIdUri: string;
                              value?: (...) | (...);
                          };
                          BaseURL?: readonly {
                              _content: ...;
                              availabilityTimeComplete?: ...;
                              availabilityTimeOffset?: ...;
                              byteRange?: ...;
                              serviceLocation?: ...;
                          }[];
                          EventStream?: readonly {
                              Event?: ...;
                              actuate: ...;
                              href?: ...;
                              messageData?: ...;
                              schemeIdUri: ...;
                              timescale?: ...;
                              value?: ...;
                          }[];
                          SegmentBase?: {
                              Initialization?: (...) | (...);
                              RepresentationIndex?: (...) | (...);
                              availabilityTimeComplete?: (...) | (...) | (...);
                              availabilityTimeOffset?: (...) | (...);
                              indexRange?: (...) | (...);
                              indexRangeExact: boolean;
                              presentationTimeOffset?: (...) | (...);
                              timescale?: (...) | (...);
                          };
                          SegmentList?: {
                              BitstreamSwitching?: (...) | (...);
                              Initialization?: (...) | (...);
                              RepresentationIndex?: (...) | (...);
                              SegmentTimeline?: (...) | (...);
                              SegmentURL?: (...) | (...);
                              actuate: actuateType;
                              availabilityTimeComplete?: (...) | (...) | (...);
                              availabilityTimeOffset?: (...) | (...);
                              duration?: (...) | (...);
                              href?: (...) | (...);
                              indexRange?: (...) | (...);
                              indexRangeExact: boolean;
                              presentationTimeOffset?: (...) | (...);
                              startNumber?: (...) | (...);
                              timescale?: (...) | (...);
                          };
                          SegmentTemplate?: {
                              BitstreamSwitching?: (...) | (...);
                              Initialization?: (...) | (...);
                              RepresentationIndex?: (...) | (...);
                              SegmentTimeline?: (...) | (...);
                              availabilityTimeComplete?: (...) | (...) | (...);
                              availabilityTimeOffset?: (...) | (...);
                              bitstreamSwitching?: (...) | (...);
                              duration?: (...) | (...);
                              index?: (...) | (...);
                              indexRange?: (...) | (...);
                              indexRangeExact: boolean;
                              initialization?: (...) | (...);
                              media?: (...) | (...);
                              presentationTimeOffset?: (...) | (...);
                              startNumber?: (...) | (...);
                              timescale?: (...) | (...);
                          };
                          Subset?: readonly {
                              contains: ...;
                              id?: ...;
                          }[];
                          SupplementalProperty?: readonly {
                              id?: ...;
                              schemeIdUri: ...;
                              value?: ...;
                          }[];
                          actuate: actuateType;
                          bitstreamSwitching: boolean;
                          duration?: number;
                          href?: string;
                          id?: string;
                          parent: { readonly availabilityEndTime?: { readonly toString: () => string; readonly toLocaleString: { (): string; (locales?: string | string[] | undefined, options?: DateTimeFormatOptions | undefined): string; (locales?: LocalesArgument, options?: DateTimeFormatOptions | undefined): string; }; ... 26 more ...; readonly toJ...;
                          start?: number;
                      }[];
                      ProgramInformation?: readonly {
                          Copyright?: string;
                          Source?: string;
                          Title?: string;
                          lang?: string;
                          moreInformationURL?: string;
                      }[];
                      SupplementalProperty?: readonly {
                          id?: string;
                          schemeIdUri: string;
                          value?: string;
                      }[];
                      UTCTiming?: readonly {
                          id?: string;
                          schemeIdUri: string;
                          value?: string;
                      }[];
                      availabilityEndTime?: {};
                      availabilityStartTime?: {};
                      id?: string;
                      maxSegmentDuration?: number;
                      maxSubsegmentDuration?: number;
                      mediaPresentationDuration?: number;
                      minBufferTime: number;
                      minimumUpdatePeriod?: number;
                      profiles: readonly string[];
                      publishTime?: {};
                      suggestedPresentationDelay?: number;
                      timeShiftBufferDepth?: number;
                      type?: PresentationType;
                  };
                  start?: number;
              }[];
              ProgramInformation?: readonly {
                  Copyright?: string;
                  Source?: string;
                  Title?: string;
                  lang?: string;
                  moreInformationURL?: string;
              }[];
              SupplementalProperty?: readonly {
                  id?: string;
                  schemeIdUri: string;
                  value?: string;
              }[];
              UTCTiming?: readonly {
                  id?: string;
                  schemeIdUri: string;
                  value?: string;
              }[];
              availabilityEndTime?: {};
              availabilityStartTime?: {};
              id?: string;
              maxSegmentDuration?: number;
              maxSubsegmentDuration?: number;
              mediaPresentationDuration?: number;
              minBufferTime: number;
              minimumUpdatePeriod?: number;
              profiles: readonly string[];
              publishTime?: {};
              suggestedPresentationDelay?: number;
              timeShiftBufferDepth?: number;
              type?: PresentationType;
          };
      }, ReservedXmlRuleKeys>

    Returns string