| 1 |
<?xml version="1.0"?> |
| 2 |
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S"> |
| 3 |
<!-- Ad --> |
| 4 |
<Period duration="PT30S"> |
| 5 |
<BaseURL>ad/</BaseURL> |
| 6 |
<!-- Everything in one Adaptation Set --> |
| 7 |
<AdaptationSet mimeType="video/mp2t"> |
| 8 |
<!-- 720p Representation at 3.2 Mbps --> |
| 9 |
<Representation id="720p" bandwidth="3200000" width="1280" height="720"> |
| 10 |
<!-- Just use one segment, since the ad is only 30 seconds long --> |
| 11 |
<BaseURL>720p.ts</BaseURL> |
| 12 |
<SegmentBase> |
| 13 |
<RepresentationIndex sourceURL="720p.sidx"/> |
| 14 |
</SegmentBase> |
| 15 |
</Representation> |
| 16 |
<!-- 1080p Representation at 6.8 Mbps --> |
| 17 |
<Representation id="1080p" bandwidth="6800000" width="1920" height="1080"> |
| 18 |
<BaseURL>1080p.ts</BaseURL> |
| 19 |
<SegmentBase> |
| 20 |
<RepresentationIndex sourceURL="1080p.sidx"/> |
| 21 |
</SegmentBase> |
| 22 |
</Representation> |
| 23 |
</AdaptationSet> |
| 24 |
</Period> |
| 25 |
<!-- Normal Content --> |
| 26 |
<Period duration="PT5M"> |
| 27 |
<BaseURL>main/</BaseURL> |
| 28 |
<!-- Just the video --> |
| 29 |
<AdaptationSet mimeType="video/mp2t"> |
| 30 |
<BaseURL>video/</BaseURL> |
| 31 |
<!-- 720p Representation at 3.2 Mbps --> |
| 32 |
<Representation id="720p" bandwidth="3200000" width="1280" height="720"> |
| 33 |
<BaseURL>720p/</BaseURL> |
| 34 |
<!-- First, we'll just list all of the segments --> |
| 35 |
<!-- Timescale is "ticks per second", so each segment is 1 minute long --> |
| 36 |
<SegmentList timescale="90000" duration="5400000"> |
| 37 |
<RepresentationIndex sourceURL="representation-index.sidx"/> |
| 38 |
<SegmentURL media="segment-1.ts"/> |
| 39 |
<SegmentURL media="segment-2.ts"/> |
| 40 |
<SegmentURL media="segment-3.ts"/> |
| 41 |
<SegmentURL media="segment-4.ts"/> |
| 42 |
<SegmentURL media="segment-5.ts"/> |
| 43 |
<SegmentURL media="segment-6.ts"/> |
| 44 |
<SegmentURL media="segment-7.ts"/> |
| 45 |
<SegmentURL media="segment-8.ts"/> |
| 46 |
<SegmentURL media="segment-9.ts"/> |
| 47 |
<SegmentURL media="segment-10.ts"/> |
| 48 |
</SegmentList> |
| 49 |
</Representation> |
| 50 |
<!-- 1080p Representation at 6.8 Mbps --> |
| 51 |
<Representation id="1080p" bandwidth="6800000" width="1920" height="1080"> |
| 52 |
<BaseURL>1080/</BaseURL> |
| 53 |
<!-- Since all of our segments have similar names, this time we'll use a SegmentTemplate --> |
| 54 |
<SegmentTemplate media="segment-$Number$.ts" timescale="90000"> |
| 55 |
<RepresentationIndex sourceURL="representation-index.sidx"/> |
| 56 |
<!-- Let's add a SegmentTimeline so the client can easily see how many segments there are |
| 57 |
--> |
| 58 |
<SegmentTimeline> |
| 59 |
<!-- This reads: Starting from time 0, there are 10 segments with a duration of |
| 60 |
(5400000 / @timescale) seconds --> |
| 61 |
<S t="0" r="10" d="5400000"/> |
| 62 |
</SegmentTimeline> |
| 63 |
</SegmentTemplate> |
| 64 |
</Representation> |
| 65 |
</AdaptationSet> |
| 66 |
<!-- Just the audio --> |
| 67 |
<AdaptationSet mimeType="audio/mp2t"> |
| 68 |
<BaseURL>audio/</BaseURL> |
| 69 |
<!-- We're just going to offer one audio representation, since audio bandwidth isn't very |
| 70 |
important. --> |
| 71 |
<Representation id="audio" bandwidth="128000"> |
| 72 |
<SegmentTemplate media="segment-$Number$.ts" timescale="90000"> |
| 73 |
<RepresentationIndex sourceURL="representation-index.sidx"/> |
| 74 |
<SegmentTimeline> |
| 75 |
<S t="0" r="10" d="5400000"/> |
| 76 |
</SegmentTimeline> |
| 77 |
</SegmentTemplate> |
| 78 |
</Representation> |
| 79 |
</AdaptationSet> |
| 80 |
</Period> |
| 81 |
</MPD> |