2015-10-16 00:33:37 +00:00
<!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" / >
2016-05-24 23:43:16 +00:00
< title > DASH Media Packaging SDK: shaka::media::MediaStream Class Reference< / title >
2015-10-16 00:33:37 +00:00
< 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  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  List< / span > < / a > < / li >
< li > < a href = "../../classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "../../hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "../../functions.html" > < span > Class  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)">
2016-05-11 18:03:07 +00:00
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < / div >
2015-10-16 00:33:37 +00:00
<!-- 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 >
2016-05-24 23:43:16 +00:00
< li class = "navelem" > < a class = "el" href = "../../d8/daf/namespaceshaka.html" > shaka< / a > < / li > < li class = "navelem" > < b > media< / b > < / li > < li class = "navelem" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html" > MediaStream< / a > < / li > < / ul >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-types" > Public Types< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../d6/db1/classshaka_1_1media_1_1MediaStream-members.html" > List of all members< / a > < / div >
2015-10-16 00:33:37 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::media::MediaStream Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "../../d9/d93/media__stream_8h_source.html" > media_stream.h< / a > > < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-types" > < / a >
Public Types< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:aa2dd0166bf3d62d0227a40f552127977" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < b > MediaStreamOperation< / b > { < b > kPush< / b > ,
2015-10-16 00:33:37 +00:00
< b > kPull< / b >
}< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:aa2dd0166bf3d62d0227a40f552127977" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a86598d6228ab8163d27fb855142c9f73" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#a86598d6228ab8163d27fb855142c9f73" > MediaStream< / a > (scoped_refptr< < a class = "el" href = "../../d5/db1/classshaka_1_1media_1_1StreamInfo.html" > StreamInfo< / a > > info, < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > *demuxer)< / td > < / tr >
< tr class = "separator:a86598d6228ab8163d27fb855142c9f73" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a98e53e299c7258419623b3d709553562" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#a98e53e299c7258419623b3d709553562" > Connect< / a > (< a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > *muxer)< / td > < / tr >
< tr class = "separator:a98e53e299c7258419623b3d709553562" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af5eca8f2e63e762d52fcc30c5f8c38b0" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af5eca8f2e63e762d52fcc30c5f8c38b0" > < / a >
< a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#af5eca8f2e63e762d52fcc30c5f8c38b0" > Start< / a > (MediaStreamOperation operation)< / td > < / tr >
< tr class = "memdesc:af5eca8f2e63e762d52fcc30c5f8c38b0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Start the stream for pushing or pulling. < br / > < / td > < / tr >
< tr class = "separator:af5eca8f2e63e762d52fcc30c5f8c38b0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae91f45b0eacab47632f069543b709b58" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ae91f45b0eacab47632f069543b709b58" > < / a >
< a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#ae91f45b0eacab47632f069543b709b58" > PushSample< / a > (const scoped_refptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > & sample)< / td > < / tr >
< tr class = "memdesc:ae91f45b0eacab47632f069543b709b58" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Push sample to < a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > (triggered by < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > ). < br / > < / td > < / tr >
< tr class = "separator:ae91f45b0eacab47632f069543b709b58" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae460a9941a4b85d511126d9a2d596f95" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ae460a9941a4b85d511126d9a2d596f95" > < / a >
< a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#ae460a9941a4b85d511126d9a2d596f95" > PullSample< / a > (scoped_refptr< < a class = "el" href = "../../d7/d6d/classshaka_1_1media_1_1MediaSample.html" > MediaSample< / a > > *sample)< / td > < / tr >
< tr class = "memdesc:ae460a9941a4b85d511126d9a2d596f95" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Pull sample from < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > (triggered by < a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > ). < br / > < / td > < / tr >
< tr class = "separator:ae460a9941a4b85d511126d9a2d596f95" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ade7ea8dcbbd1f987a58094c9072ba83a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ade7ea8dcbbd1f987a58094c9072ba83a" > < / a >
< a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > demuxer< / b > ()< / td > < / tr >
< tr class = "separator:ade7ea8dcbbd1f987a58094c9072ba83a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6c2ba3a3b0689f85cdf44f68e535c724" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a6c2ba3a3b0689f85cdf44f68e535c724" > < / a >
< a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > muxer< / b > ()< / td > < / tr >
< tr class = "separator:a6c2ba3a3b0689f85cdf44f68e535c724" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a72ff01ff96d4365321c5aa2673d03557" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a72ff01ff96d4365321c5aa2673d03557" > < / a >
const scoped_refptr< < a class = "el" href = "../../d5/db1/classshaka_1_1media_1_1StreamInfo.html" > StreamInfo< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < b > info< / b > () const < / td > < / tr >
< tr class = "separator:a72ff01ff96d4365321c5aa2673d03557" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a51d85facae4f9d8d89b97a42148769dd" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html#a51d85facae4f9d8d89b97a42148769dd" > ToString< / a > () const < / td > < / tr >
< tr class = "separator:a51d85facae4f9d8d89b97a42148769dd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2016-05-24 23:43:16 +00:00
< div class = "textblock" > < p > < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html" > MediaStream< / a > connects < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > to < a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > . It is an abstraction for a media elementary stream. < / p >
2015-10-16 00:33:37 +00:00
< p > Definition at line < a class = "el" href = "../../d9/d93/media__stream_8h_source.html#l00026" > 26< / a > of file < a class = "el" href = "../../d9/d93/media__stream_8h_source.html" > media_stream.h< / a > .< / p >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a86598d6228ab8163d27fb855142c9f73" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > shaka::media::MediaStream::MediaStream < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > scoped_refptr< < a class = "el" href = "../../d5/db1/classshaka_1_1media_1_1StreamInfo.html" > StreamInfo< / a > >   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > info< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > *  < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > demuxer< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Create < a class = "el" href = "../../d8/d5c/classshaka_1_1media_1_1MediaStream.html" > MediaStream< / a > from < a class = "el" href = "../../d5/db1/classshaka_1_1media_1_1StreamInfo.html" title = "Abstract class holds stream information. " > StreamInfo< / a > and < a class = "el" href = "../../dd/d17/classshaka_1_1media_1_1Demuxer.html" > Demuxer< / a > . < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > demuxer< / td > < td > cannot be NULL. < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Definition at line < a class = "el" href = "../../de/d15/media__stream_8cc_source.html#l00019" > 19< / a > of file < a class = "el" href = "../../de/d15/media__stream_8cc_source.html" > media_stream.cc< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a98e53e299c7258419623b3d709553562" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > void shaka::media::MediaStream::Connect < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > < a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > *  < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > muxer< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-05-24 23:43:16 +00:00
< p > Connect the stream to < a class = "el" href = "../../df/d46/classshaka_1_1media_1_1Muxer.html" > Muxer< / a > . < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > muxer< / td > < td > cannot be NULL. < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Definition at line < a class = "el" href = "../../de/d15/media__stream_8cc_source.html#l00055" > 55< / a > of file < a class = "el" href = "../../de/d15/media__stream_8cc_source.html" > media_stream.cc< / a > .< / p >
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a51d85facae4f9d8d89b97a42148769dd" > < / a >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > std::string shaka::media::MediaStream::ToString < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "section return" > < dt > Returns< / dt > < dd > a human-readable string describing |*this|. < / dd > < / dl >
< p > Definition at line < a class = "el" href = "../../de/d15/media__stream_8cc_source.html#l00103" > 103< / a > of file < a class = "el" href = "../../de/d15/media__stream_8cc_source.html" > media_stream.cc< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > media/base/< a class = "el" href = "../../d9/d93/media__stream_8h_source.html" > media_stream.h< / a > < / li >
< li > media/base/< a class = "el" href = "../../de/d15/media__stream_8cc_source.html" > media_stream.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2016-05-27 23:48:18 +00:00
Generated on Fri May 27 2016 23:48:11 for DASH Media Packaging SDK by   < a href = "http://www.doxygen.org/index.html" >
2015-10-16 00:33:37 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >