shaka-packager/docs/db/d56/classedash__packager_1_1Sim...

480 lines
28 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.6"/>
<title>DASH Media Packaging SDK: edash_packager::SimpleMpdNotifier 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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">DASH Media Packaging SDK
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
<li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
<li><a href="../../files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="../../search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></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="../../db/d09/namespaceedash__packager.html">edash_packager</a></li><li class="navelem"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html">SimpleMpdNotifier</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="../../d0/dd1/classedash__packager_1_1SimpleMpdNotifier-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">edash_packager::SimpleMpdNotifier Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="../../d2/d62/simple__mpd__notifier_8h_source.html">simple_mpd_notifier.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for edash_packager::SimpleMpdNotifier:</div>
<div class="dyncontent">
<div class="center">
<img src="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.png" usemap="#edash_packager::SimpleMpdNotifier_map" alt=""/>
<map id="edash_packager::SimpleMpdNotifier_map" name="edash_packager::SimpleMpdNotifier_map">
<area href="../../da/d38/classedash__packager_1_1MpdNotifier.html" alt="edash_packager::MpdNotifier" shape="rect" coords="0,0,215,24"/>
</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:a285e4e4d8505a95fcbd2ff9fe560685b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a285e4e4d8505a95fcbd2ff9fe560685b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SimpleMpdNotifier</b> (DashProfile <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#ad49d92e75fcbb2ad1d5e43cd3d0716f7">dash_profile</a>, const <a class="el" href="../../d1/d5d/structedash__packager_1_1MpdOptions.html">MpdOptions</a> &amp;mpd_options, const std::vector&lt; std::string &gt; &amp;base_urls, const std::string &amp;output_path)</td></tr>
<tr class="separator:a285e4e4d8505a95fcbd2ff9fe560685b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">MpdNotifier implemetation overrides.</div></td></tr>
<tr class="memitem:a8c0efff460547138724769b768ae6341"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a8c0efff460547138724769b768ae6341">Init</a> () override</td></tr>
<tr class="separator:a8c0efff460547138724769b768ae6341"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9de39430a54e3be7ff50476830728ce4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a9de39430a54e3be7ff50476830728ce4">NotifyNewContainer</a> (const MediaInfo &amp;media_info, uint32_t *id) override</td></tr>
<tr class="separator:a9de39430a54e3be7ff50476830728ce4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8931d4291590051f328171fc7ca69025"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a8931d4291590051f328171fc7ca69025">NotifySampleDuration</a> (uint32_t container_id, uint32_t sample_duration) override</td></tr>
<tr class="separator:a8931d4291590051f328171fc7ca69025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a847d0d659521910de341de8de8cadf75"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a847d0d659521910de341de8de8cadf75">NotifyNewSegment</a> (uint32_t id, uint64_t start_time, uint64_t duration, uint64_t size) override</td></tr>
<tr class="separator:a847d0d659521910de341de8de8cadf75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adeb683f92d76d64c15ca7805b0de8db1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#adeb683f92d76d64c15ca7805b0de8db1">NotifyEncryptionUpdate</a> (uint32_t container_id, const std::string &amp;drm_uuid, const std::vector&lt; uint8_t &gt; &amp;new_key_id, const std::vector&lt; uint8_t &gt; &amp;new_pssh) override</td></tr>
<tr class="separator:adeb683f92d76d64c15ca7805b0de8db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af67678f19e1ecb3c01de200bdc3f1256"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#af67678f19e1ecb3c01de200bdc3f1256">AddContentProtectionElement</a> (uint32_t id, const <a class="el" href="../../d0/d96/structedash__packager_1_1ContentProtectionElement.html">ContentProtectionElement</a> &amp;content_protection_element) override</td></tr>
<tr class="separator:af67678f19e1ecb3c01de200bdc3f1256"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a701f3e8f0260ce8300fb9e4b31558a8d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a701f3e8f0260ce8300fb9e4b31558a8d">Flush</a> () override</td></tr>
<tr class="separator:a701f3e8f0260ce8300fb9e4b31558a8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classedash__packager_1_1MpdNotifier"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classedash__packager_1_1MpdNotifier')"><img src="../../closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html">edash_packager::MpdNotifier</a></td></tr>
<tr class="memitem:abb3ab7091a7972effdfe7fe96f4ffce3 inherit pub_methods_classedash__packager_1_1MpdNotifier"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb3ab7091a7972effdfe7fe96f4ffce3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>MpdNotifier</b> (DashProfile <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#ad49d92e75fcbb2ad1d5e43cd3d0716f7">dash_profile</a>)</td></tr>
<tr class="separator:abb3ab7091a7972effdfe7fe96f4ffce3 inherit pub_methods_classedash__packager_1_1MpdNotifier"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad49d92e75fcbb2ad1d5e43cd3d0716f7 inherit pub_methods_classedash__packager_1_1MpdNotifier"><td class="memItemLeft" align="right" valign="top">DashProfile&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#ad49d92e75fcbb2ad1d5e43cd3d0716f7">dash_profile</a> () const </td></tr>
<tr class="separator:ad49d92e75fcbb2ad1d5e43cd3d0716f7 inherit pub_methods_classedash__packager_1_1MpdNotifier"><td class="memSeparator" colspan="2">&#160;</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:a2b835e4992cf344824a4ba18d358e7c9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2b835e4992cf344824a4ba18d358e7c9"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SimpleMpdNotifierTest</b></td></tr>
<tr class="separator:a2b835e4992cf344824a4ba18d358e7c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A simple <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html">MpdNotifier</a> implementation which receives muxer listener event and generates an Mpd file. </p>
<p>Definition at line <a class="el" href="../../d2/d62/simple__mpd__notifier_8h_source.html#l00031">31</a> of file <a class="el" href="../../d2/d62/simple__mpd__notifier_8h_source.html">simple_mpd_notifier.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af67678f19e1ecb3c01de200bdc3f1256"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::AddContentProtectionElement </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>container_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="../../d0/d96/structedash__packager_1_1ContentProtectionElement.html">ContentProtectionElement</a> &amp;&#160;</td>
<td class="paramname"><em>content_protection_element</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds content protection information to the MPD. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">container_id</td><td>is the nummeric container ID obtained from calling <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a9de39430a54e3be7ff50476830728ce4">NotifyNewContainer()</a>. </td></tr>
<tr><td class="paramname">content_protection_element</td><td>New ContentProtection element specification. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#a56969f6d7c09e0aa131ba01d5c880773">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00118">118</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a701f3e8f0260ce8300fb9e4b31558a8d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::Flush </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Call this method to force a flush. Implementations might not write out the MPD to a stream (file, stdout, etc.) when the MPD is updated, this forces a flush. </p>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#aaeba5920a9df8db366f8cf86d64e855c">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00131">131</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a8c0efff460547138724769b768ae6341"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::Init </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Initializes the notifier. For example, if this notifier uses a network for notification, then this would set up the connection with the remote host. </p>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#ae7067d35133b0573a2919fb69195328e">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00034">34</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="adeb683f92d76d64c15ca7805b0de8db1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::NotifyEncryptionUpdate </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>container_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>drm_uuid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector&lt; uint8_t &gt; &amp;&#160;</td>
<td class="paramname"><em>new_key_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::vector&lt; uint8_t &gt; &amp;&#160;</td>
<td class="paramname"><em>new_pssh</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Notifiers <a class="el" href="../../d3/dfa/classedash__packager_1_1MpdBuilder.html" title="This class generates DASH MPDs (Media Presentation Descriptions). ">MpdBuilder</a> that there is a new PSSH for the container. This may be called whenever the key has to change, e.g. key rotation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">container_id</td><td>Container ID obtained from calling <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a9de39430a54e3be7ff50476830728ce4">NotifyNewContainer()</a>. </td></tr>
<tr><td class="paramname">drm_uuid</td><td>is the UUID of the DRM for encryption. </td></tr>
<tr><td class="paramname">new_key_id</td><td>is the new key ID for the key. </td></tr>
<tr><td class="paramname">new_pssh</td><td>is the new pssh box (including the header). </td></tr>
</table>
</dd>
</dl>
<dl class="section attention"><dt>Attention</dt><dd>This might change or get removed once DASH IF IOP specification writes a clear guideline on how to handle key rotation. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#a8eb441286be0f2cb96c4348ff88619c5">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00102">102</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a9de39430a54e3be7ff50476830728ce4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::NotifyNewContainer </td>
<td>(</td>
<td class="paramtype">const MediaInfo &amp;&#160;</td>
<td class="paramname"><em>media_info</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t *&#160;</td>
<td class="paramname"><em>container_id</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Notifies the <a class="el" href="../../d3/dfa/classedash__packager_1_1MpdBuilder.html" title="This class generates DASH MPDs (Media Presentation Descriptions). ">MpdBuilder</a> that there is a new container along with <em>media_info</em>. Live may have multiple files (segments) but those should be notified via <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a847d0d659521910de341de8de8cadf75">NotifyNewSegment()</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">media_info</td><td>is the MediaInfo that will be passed to <a class="el" href="../../d3/dfa/classedash__packager_1_1MpdBuilder.html" title="This class generates DASH MPDs (Media Presentation Descriptions). ">MpdBuilder</a>. </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">container_id</td><td>is the numeric ID of the container, possibly for <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a847d0d659521910de341de8de8cadf75">NotifyNewSegment()</a> and <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#af67678f19e1ecb3c01de200bdc3f1256">AddContentProtectionElement()</a>. Only populated on success. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#a09e6df8ea9ea8c260199449448d1ea62">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00038">38</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a847d0d659521910de341de8de8cadf75"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::NotifyNewSegment </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>container_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramname"><em>start_time</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramname"><em>duration</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t&#160;</td>
<td class="paramname"><em>size</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Notifies <a class="el" href="../../d3/dfa/classedash__packager_1_1MpdBuilder.html" title="This class generates DASH MPDs (Media Presentation Descriptions). ">MpdBuilder</a> that there is a new segment ready. For live, this is usually a new segment, for VOD this is usually a subsegment. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">container_id</td><td>Container ID obtained from calling <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a9de39430a54e3be7ff50476830728ce4">NotifyNewContainer()</a>. </td></tr>
<tr><td class="paramname">start_time</td><td>is the start time of the new segment, in units of the stream's time scale. </td></tr>
<tr><td class="paramname">duration</td><td>is the duration of the new segment, in units of the stream's time scale. </td></tr>
<tr><td class="paramname">size</td><td>is the new segment size in bytes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#a7bb9cce525d5a4f1076b8d58a7bd07ab">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00088">88</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<a class="anchor" id="a8931d4291590051f328171fc7ca69025"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool edash_packager::SimpleMpdNotifier::NotifySampleDuration </td>
<td>(</td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>container_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t&#160;</td>
<td class="paramname"><em>sample_duration</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Change the sample duration of container with <em>container_id</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">container_id</td><td>Container ID obtained from calling <a class="el" href="../../db/d56/classedash__packager_1_1SimpleMpdNotifier.html#a9de39430a54e3be7ff50476830728ce4">NotifyNewContainer()</a>. </td></tr>
<tr><td class="paramname">sample_duration</td><td>is the duration of a sample in timescale of the media. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true on success, false otherwise. This may fail if the container specified by <em>container_id</em> does not exist. </dd></dl>
<p>Implements <a class="el" href="../../da/d38/classedash__packager_1_1MpdNotifier.html#ab4d97816ead500dc7cafac015f1f4979">edash_packager::MpdNotifier</a>.</p>
<p>Definition at line <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html#l00076">76</a> of file <a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>mpd/base/<a class="el" href="../../d2/d62/simple__mpd__notifier_8h_source.html">simple_mpd_notifier.h</a></li>
<li>mpd/base/<a class="el" href="../../d2/d7b/simple__mpd__notifier_8cc_source.html">simple_mpd_notifier.cc</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Dec 10 2015 01:27:18 for DASH Media Packaging SDK by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>