-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Annex I URL parameters UrlQueryInfo and ExtUrlQueryInfo
- Loading branch information
Showing
4 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" availabilityStartTime="1970-01-01T00:00:00Z" | ||
id="1" maxSegmentDuration="PT2S" minBufferTime="PT2S" minimumUpdatePeriod="PT10M" | ||
profiles="urn:mpeg:dash:profile:isoff-live:2011,http://dashif.org/guidelines/dash-if-simple" | ||
publishTime="1970-01-01T00:00:00Z" timeShiftBufferDepth="PT5M" type="dynamic" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd"> | ||
<ProgramInformation> | ||
<Title>Media Presentation Description from DASH-IF live simulator</Title> | ||
</ProgramInformation> | ||
<BaseURL availabilityTimeOffset="INF">https://livesim.dashif.org/livesim/sts_1679588477/sid_9c8db005/ato_inf/testpic_2s/</BaseURL> | ||
<Period id="p0" start="PT0S"> | ||
<AdaptationSet contentType="audio" lang="en" mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1"> | ||
<EssentialProperty schemeIdUri="urn:mpeg:dash:urlparam:2016" xmlns:up="urn:mpeg:dash:schema:urlparam:2016"> | ||
<up:ExtendedUrlInfo queryTemplate="$querypart$" useMPDUrlQuery="true" headerParamSource="dashif.org"/> | ||
</EssentialProperty> | ||
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" /> | ||
<SegmentTemplate duration="2" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/$Number$.m4s" startNumber="0" /> | ||
<Representation audioSamplingRate="48000" bandwidth="48000" codecs="mp4a.40.2" id="A48"> | ||
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2" /> | ||
</Representation> | ||
</AdaptationSet> | ||
<AdaptationSet contentType="video" maxFrameRate="60/2" maxHeight="360" maxWidth="640" mimeType="video/mp4" minHeight="360" minWidth="640" par="16:9" segmentAlignment="true" startWithSAP="1"> | ||
<EssentialProperty schemeIdUri="urn:mpeg:dash:urlparam:2014" xmlns:up="urn:mpeg:dash:schema:urlparam:2014"> | ||
<up:UrlQueryInfo queryTemplate="$querypart$" useMPDUrlQuery="true"/> | ||
</EssentialProperty> | ||
<Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" /> | ||
<SegmentTemplate duration="2" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/$Number$.m4s" startNumber="0" /> | ||
<Representation bandwidth="300000" codecs="avc1.64001e" frameRate="60/2" height="360" id="V300" sar="1:1" width="640" /> | ||
</AdaptationSet> | ||
</Period> | ||
</MPD> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package mpd | ||
|
||
const ( | ||
UrlParameterNamespace2014 = "urn:mpeg:dash:schema:urlparam:2014" | ||
UrlParameterNamespace2016 = "urn:mpeg:dash:schema:urlparam:2016" | ||
) | ||
|
||
// UrlQueryInfoType is defined in Annex I of ISO/IEC 23009-1. | ||
// Its namespace is UrlParameterNamespace2014. | ||
type UrlQueryInfoType struct { | ||
QueryTemplate string `xml:"queryTemplate,attr,omitempty"` | ||
UseMPDUrlQuery bool `xml:"useMPDUrlQuery,attr,omitempty"` | ||
QueryString string `xml:"queryString,attr,omitempty"` | ||
XlinkHref string `xml:"http://www.w3.org/1999/xlink xlink:href,attr,omitempty"` | ||
XlinkActuate string `xml:"http://www.w3.org/1999/xlink xlink:actuate,attr,omitempty"` // default = "onRequest" | ||
XlinkType string `xml:"http://www.w3.org/1999/xlink xlink:type,attr,omitempty"` // fixed = "simple" | ||
XlinkShow string `xml:"http://www.w3.org/1999/xlink xlink:show,attr,omitempty"` // fixed = "embed" | ||
} | ||
|
||
// ExtendedUrlInfoType is defined in Annex I of ISO/IEC 23009-1. | ||
// Its namespace is UrlParameterNamespace2016. | ||
type ExtendedUrlInfoType struct { | ||
UrlQueryInfoType | ||
IncludeInRequests string `xml:"includeInRequests,attr,omitempty"` // default = "segment" | ||
HeaderParamSource string `xml:"headerParamSource,attr,omitempty"` // default = "segment" | ||
SameOriginPolicy bool `xml:"sameOriginPolicy,attr,omitempty"` // default = "false" | ||
} |