<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.5S" type="static" mediaPresentationDuration="PT0H1M0.3S" maxSegmentDuration="PT0H0M2.0S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd"><Period start="PT0S"><AdaptationSet mimeType="video/mp4" maxWidth="1280" maxHeight="720" maxFrameRate="30" par="16:9" segmentAlignment="true" startWithSAP="1"><Representation id="1" width="1280" height="720" frameRate="30" bandwidth="1200000" codecs="avc1.4D401F"><BaseURL>video_1/</BaseURL><SegmentList startNumber="1" duration="2" timescale="90000"><SegmentURL media="file1.mp4"/><SegmentURL media="file2.mp4"/><!-- Add more SegmentURL elements for additional segments --></SegmentList></Representation></AdaptationSet><AdaptationSet mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1"><Representation id="2" audioSamplingRate="48000" bandwidth="128000" codecs="mp4a.40.2"><BaseURL>audio_1/</BaseURL><SegmentList startNumber="1" duration="2" timescale="1"><SegmentURL media="audio_file1.mp4"/><SegmentURL media="audio_file2.mp4"/><!-- Add more SegmentURL elements for additional audio segments --></SegmentList></Representation></AdaptationSet></Period>
</MPD>
-
<MPD> 元素:
xmlns 属性定义 XML 命名空间。minBufferTime 定义了播放器需要保持的最小缓冲时间。type 指定了 MPD 的类型,这里是静态(static)。mediaPresentationDuration 定义了整个媒体呈现的持续时间。maxSegmentDuration 定义了每个片段的最大持续时间。profiles 包含了 DASH 使用的配置文件信息。xsi:schemaLocation 定义了 XML Schema 的位置。
-
<Period> 元素:
start 属性定义了该 Period 开始的时间。
-
<AdaptationSet> 元素(视频):
mimeType 指定了媒体类型,这里是视频。maxWidth 和 maxHeight 定义了视频的最大宽度和高度。maxFrameRate 定义了视频的最大帧率。par 定义了视频的纵横比。segmentAlignment 表示每个片段是否与媒体的完整段对齐。startWithSAP 表示是否从最小切割单位(Subsegment Access Point)开始。
-
<Representation> 元素(视频):
id 是此表示的唯一标识符。width 和 height 定义了视频的宽度和高度。frameRate 定义了视频的帧率。bandwidth 定义了该表示的带宽。codecs 定义了视频使用的编解码器。BaseURL 包含了视频文件的基本路径。
-
<SegmentList> 元素:
startNumber 定义了第一个片段的编号。duration 定义了每个片段的持续时间。timescale 定义了时间刻度。SegmentURL 包含了每个片段的信息,如媒体文件的路径。
-
<AdaptationSet> 元素(音频):
mimeType 指定了媒体类型,这里是音频。segmentAlignment 和 startWithSAP 属性与视频的 AdaptationSet 相似。
-
<Representation> 元素(音频):
id 是此表示的唯一标识符。audioSamplingRate 定义了音频的采样率。bandwidth 定义了该表示的带宽。codecs 定义了音频使用的编解码器。BaseURL 包含了音频文件的基本路径。
-
<SegmentList> 元素(音频):
startNumber、duration、timescale 和 SegmentURL 属性的含义与视频的 SegmentList 相似。