316 lines
16 KiB
HTML
316 lines
16 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Shaka Packager SDK: shaka::MpdBuilder Class Reference</title>
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../jquery.js"></script>
|
|
<script type="text/javascript" src="../../dynsections.js"></script>
|
|
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
|
<script type="text/javascript" src="../../search/search.js"></script>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Shaka Packager SDK
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="../../menudata.js"></script>
|
|
<script type="text/javascript" src="../../menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('../../',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="../../d8/daf/namespaceshaka.html">shaka</a></li><li class="navelem"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html">MpdBuilder</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
|
<a href="#friends">Friends</a> |
|
|
<a href="../../d2/d0f/classshaka_1_1MpdBuilder-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">shaka::MpdBuilder Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>This class generates DASH MPDs (Media Presentation Descriptions).
|
|
<a href="../../dc/da1/classshaka_1_1MpdBuilder.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="../../d6/da3/mpd__builder_8h_source.html">mpd_builder.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for shaka::MpdBuilder:</div>
|
|
<div class="dyncontent">
|
|
<div class="center">
|
|
<img src="../../dc/da1/classshaka_1_1MpdBuilder.png" usemap="#shaka::MpdBuilder_map" alt=""/>
|
|
<map id="shaka::MpdBuilder_map" name="shaka::MpdBuilder_map">
|
|
<area href="../../df/d60/classshaka_1_1MockMpdBuilder.html" alt="shaka::MockMpdBuilder" shape="rect" coords="0,56,147,80"/>
|
|
</map>
|
|
</div></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:ab364102e01afedd8a4dcc9be4fdcc0ab"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#ab364102e01afedd8a4dcc9be4fdcc0ab">MpdBuilder</a> (const <a class="el" href="../../d1/df3/structshaka_1_1MpdOptions.html">MpdOptions</a> &mpd_options)</td></tr>
|
|
<tr class="separator:ab364102e01afedd8a4dcc9be4fdcc0ab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab6fd968035d1cba5060fe23a107f8bdb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#ab6fd968035d1cba5060fe23a107f8bdb">AddBaseUrl</a> (const std::string &base_url)</td></tr>
|
|
<tr class="separator:ab6fd968035d1cba5060fe23a107f8bdb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae03eb3ac55f8b1360a57a1af16f593e6"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d8/de1/classshaka_1_1Period.html">Period</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#ae03eb3ac55f8b1360a57a1af16f593e6">GetOrCreatePeriod</a> (double start_time_in_seconds)</td></tr>
|
|
<tr class="separator:ae03eb3ac55f8b1360a57a1af16f593e6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a058a7c0bde155071773bcfaa5f0f5b3b"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#a058a7c0bde155071773bcfaa5f0f5b3b">ToString</a> (std::string *output) WARN_UNUSED_RESULT</td></tr>
|
|
<tr class="separator:a058a7c0bde155071773bcfaa5f0f5b3b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7a4f96f12b589cfc4b5c2f44532eec53"><td class="memItemLeft" align="right" valign="top"><a id="a7a4f96f12b589cfc4b5c2f44532eec53"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#a7a4f96f12b589cfc4b5c2f44532eec53">InjectClockForTesting</a> (std::unique_ptr< base::Clock > clock)</td></tr>
|
|
<tr class="memdesc:a7a4f96f12b589cfc4b5c2f44532eec53"><td class="mdescLeft"> </td><td class="mdescRight">This is for testing. <br /></td></tr>
|
|
<tr class="separator:a7a4f96f12b589cfc4b5c2f44532eec53"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
|
Static Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a247a9c807274d4e707530f24e2d207f9"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html#a247a9c807274d4e707530f24e2d207f9">MakePathsRelativeToMpd</a> (const std::string &mpd_path, MediaInfo *media_info)</td></tr>
|
|
<tr class="separator:a247a9c807274d4e707530f24e2d207f9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
|
|
Friends</h2></td></tr>
|
|
<tr class="memitem:a45c9a31b445a4174736a7aff9d46a786"><td class="memItemLeft" align="right" valign="top"><a id="a45c9a31b445a4174736a7aff9d46a786"></a>
|
|
class </td><td class="memItemRight" valign="bottom"><b>LiveMpdBuilderTest</b></td></tr>
|
|
<tr class="separator:a45c9a31b445a4174736a7aff9d46a786"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aaf5a82dfc14ef4a006fa98befdbb4ce3"><td class="memTemplParams" colspan="2"><a id="aaf5a82dfc14ef4a006fa98befdbb4ce3"></a>
|
|
template<DashProfile profile> </td></tr>
|
|
<tr class="memitem:aaf5a82dfc14ef4a006fa98befdbb4ce3"><td class="memTemplItemLeft" align="right" valign="top">class </td><td class="memTemplItemRight" valign="bottom"><b>MpdBuilderTest</b></td></tr>
|
|
<tr class="separator:aaf5a82dfc14ef4a006fa98befdbb4ce3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>This class generates DASH MPDs (Media Presentation Descriptions). </p>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../d6/da3/mpd__builder_8h_source.html#l00036">36</a> of file <a class="el" href="../../d6/da3/mpd__builder_8h_source.html">mpd_builder.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="ab364102e01afedd8a4dcc9be4fdcc0ab"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab364102e01afedd8a4dcc9be4fdcc0ab">◆ </a></span>MpdBuilder()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">shaka::MpdBuilder::MpdBuilder </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="../../d1/df3/structshaka_1_1MpdOptions.html">MpdOptions</a> & </td>
|
|
<td class="paramname"><em>mpd_options</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Constructs <a class="el" href="../../dc/da1/classshaka_1_1MpdBuilder.html" title="This class generates DASH MPDs (Media Presentation Descriptions).">MpdBuilder</a>. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">mpd_options</td><td>contains options on how this MPD should be built. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html#l00136">136</a> of file <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="ab6fd968035d1cba5060fe23a107f8bdb"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ab6fd968035d1cba5060fe23a107f8bdb">◆ </a></span>AddBaseUrl()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void shaka::MpdBuilder::AddBaseUrl </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>base_url</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add <BaseURL> entry to the MPD. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">base_url</td><td>URL for <BaseURL> entry. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html#l00141">141</a> of file <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ae03eb3ac55f8b1360a57a1af16f593e6"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ae03eb3ac55f8b1360a57a1af16f593e6">◆ </a></span>GetOrCreatePeriod()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="../../d8/de1/classshaka_1_1Period.html">Period</a> * shaka::MpdBuilder::GetOrCreatePeriod </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>start_time_in_seconds</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Check the existing Periods, if there is one matching the provided <em>start_time_in_seconds</em>, return it; otherwise a new <a class="el" href="../../d8/de1/classshaka_1_1Period.html">Period</a> is created and returned. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">start_time_in_seconds</td><td>is the period start time. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="../../d8/de1/classshaka_1_1Period.html">Period</a> matching <em>start_time_in_seconds</em> if found; otherwise return a new <a class="el" href="../../d8/de1/classshaka_1_1Period.html">Period</a>. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html#l00145">145</a> of file <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a247a9c807274d4e707530f24e2d207f9"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a247a9c807274d4e707530f24e2d207f9">◆ </a></span>MakePathsRelativeToMpd()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void shaka::MpdBuilder::MakePathsRelativeToMpd </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const std::string & </td>
|
|
<td class="paramname"><em>mpd_path</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">MediaInfo * </td>
|
|
<td class="paramname"><em>media_info</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Adjusts the fields of MediaInfo so that paths are relative to the specified MPD path. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">mpd_path</td><td>is the file path of the MPD file. </td></tr>
|
|
<tr><td class="paramname">media_info</td><td>is the MediaInfo object to be updated with relative paths. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html#l00415">415</a> of file <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a058a7c0bde155071773bcfaa5f0f5b3b"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a058a7c0bde155071773bcfaa5f0f5b3b">◆ </a></span>ToString()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool shaka::MpdBuilder::ToString </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string * </td>
|
|
<td class="paramname"><em>output</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Writes the MPD to the given string. </p><dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>is an output string where the MPD gets written. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
|
|
|
|
<p class="definition">Definition at line <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html#l00159">159</a> of file <a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>packager/mpd/base/<a class="el" href="../../d6/da3/mpd__builder_8h_source.html">mpd_builder.h</a></li>
|
|
<li>packager/mpd/base/<a class="el" href="../../dd/d11/mpd__builder_8cc_source.html">mpd_builder.cc</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Tue Jun 22 2021 00:16:05 for Shaka Packager SDK by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|