2016-03-21 19:14:00 +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::FixedKeySource Class Reference< / title >
2016-03-21 19:14:00 +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 >
2016-03-21 19:14:00 +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 = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html" > FixedKeySource< / a > < / li > < / ul >
2016-03-21 19:14:00 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-static-methods" > Static Public Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../d9/dea/classshaka_1_1media_1_1FixedKeySource-members.html" > List of all members< / a > < / div >
2016-03-21 19:14:00 +00:00
< div class = "headertitle" >
2016-05-24 23:43:16 +00:00
< div class = "title" > shaka::media::FixedKeySource Class Reference< / div > < / div >
2016-03-21 19:14:00 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > A key source that uses fixed keys for encryption.
2016-05-24 23:43:16 +00:00
< a href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#details" > More...< / a > < / p >
2016-03-21 19:14:00 +00:00
< p > < code > #include < < a class = "el" href = "../../d3/d72/fixed__key__source_8h_source.html" > fixed_key_source.h< / a > > < / code > < / p >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::media::FixedKeySource:< / div >
2016-03-21 19:14:00 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< img src = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.png" usemap = "#shaka::media::FixedKeySource_map" alt = "" / >
< map id = "shaka::media::FixedKeySource_map" name = "shaka::media::FixedKeySource_map" >
< area href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" title = "KeySource is responsible for encryption key acquisition. " alt = "shaka::media::KeySource" shape = "rect" coords = "0,0,184,24" / >
2016-03-21 19:14:00 +00:00
< / 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 > < td colspan = "2" > < div class = "groupHeader" > KeySource implementation overrides.< / div > < / td > < / tr >
2017-06-30 20:14:31 +00:00
< tr class = "memitem:a5cd8641873f213b826fc32e1c0026041" > < td class = "memItemLeft" align = "right" valign = "top" > Status  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#a5cd8641873f213b826fc32e1c0026041" > FetchKeys< / a > (EmeInitDataType init_data_type, const std::vector< uint8_t > & init_data) override< / td > < / tr >
2017-04-20 21:19:19 +00:00
< tr class = "separator:a5cd8641873f213b826fc32e1c0026041" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-06-30 20:14:31 +00:00
< tr class = "memitem:a3ebb4d8fdafa7c3e241038f1f8c0ed7b" > < td class = "memItemLeft" align = "right" valign = "top" > Status  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#a3ebb4d8fdafa7c3e241038f1f8c0ed7b" > GetKey< / a > (const std::string & stream_label, < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *key) override< / td > < / tr >
2017-06-15 18:19:40 +00:00
< tr class = "separator:a3ebb4d8fdafa7c3e241038f1f8c0ed7b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-06-30 20:14:31 +00:00
< tr class = "memitem:a58f9eae1ce9148a82f70118879b6c3f1" > < td class = "memItemLeft" align = "right" valign = "top" > Status  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#a58f9eae1ce9148a82f70118879b6c3f1" > GetKey< / a > (const std::vector< uint8_t > & key_id, < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *key) override< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a58f9eae1ce9148a82f70118879b6c3f1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-06-30 20:14:31 +00:00
< tr class = "memitem:a1161732d3310177256ff0eed1f877e38" > < td class = "memItemLeft" align = "right" valign = "top" > Status  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#a1161732d3310177256ff0eed1f877e38" > GetCryptoPeriodKey< / a > (uint32_t crypto_period_index, const std::string & stream_label, < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *key) override< / td > < / tr >
2017-06-15 18:19:40 +00:00
< tr class = "separator:a1161732d3310177256ff0eed1f877e38" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / 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 >
2017-06-20 22:39:28 +00:00
< tr class = "memitem:aebde54a272565d4b81a1139ea35fab63" > < td class = "memItemLeft" align = "right" valign = "top" > static std::unique_ptr< br class = "typebreak" / >
< < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html" > FixedKeySource< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html#aebde54a272565d4b81a1139ea35fab63" > Create< / a > (const std::vector< uint8_t > & key_id, const std::vector< uint8_t > & key, const std::vector< uint8_t > & pssh_boxes, const std::vector< uint8_t > & iv)< / td > < / tr >
< tr class = "separator:aebde54a272565d4b81a1139ea35fab63" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > A key source that uses fixed keys for encryption. < / p >
2016-03-28 22:32:55 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d72/fixed__key__source_8h_source.html#l00027" > 27< / a > of file < a class = "el" href = "../../d3/d72/fixed__key__source_8h_source.html" > fixed_key_source.h< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2017-06-20 22:39:28 +00:00
< a class = "anchor" id = "aebde54a272565d4b81a1139ea35fab63" > < / a >
2016-03-21 19:14:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-06-20 22:39:28 +00:00
< td class = "memname" > std::unique_ptr< < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html" > FixedKeySource< / a > > shaka::media::FixedKeySource::Create < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
2017-06-20 22:39:28 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > key_id< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-06-20 22:39:28 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > key< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-06-20 22:39:28 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > pssh_boxes< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-06-20 22:39:28 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > iv< / em >   < / td >
2016-03-21 19:14:00 +00:00
< / 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" >
2017-06-20 22:39:28 +00:00
< p > Creates a new < a class = "el" href = "../../d0/dac/classshaka_1_1media_1_1FixedKeySource.html" title = "A key source that uses fixed keys for encryption. " > FixedKeySource< / a > from the given data. Returns null if the strings are invalid. < / p >
2016-03-21 19:14:00 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2017-06-20 22:39:28 +00:00
< tr > < td class = "paramname" > key_id< / td > < td > is the key identifier. Must be 16 bytes. < / td > < / tr >
< tr > < td class = "paramname" > key< / td > < td > is the encryption / decryption key. Must be 16 bytes. < / td > < / tr >
< tr > < td class = "paramname" > pssh_boxes< / td > < td > is the concatenated pssh boxes. < / td > < / tr >
< tr > < td class = "paramname" > iv< / td > < td > is the initialization vector. If not specified, a randomly generated IV with the default length will be used. Note: GetKey on the created key source will always return the same key for all track types. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
2017-06-15 18:19:40 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html#l00078" > 78< / a > of file < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2017-04-20 21:19:19 +00:00
< a class = "anchor" id = "a5cd8641873f213b826fc32e1c0026041" > < / a >
2016-03-21 19:14:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-06-30 20:14:31 +00:00
< td class = "memname" > Status shaka::media::FixedKeySource::FetchKeys < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
2017-04-20 21:19:19 +00:00
< td class = "paramtype" > EmeInitDataType  < / td >
< td class = "paramname" > < em > init_data_type< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
2017-04-20 21:19:19 +00:00
< td class = "paramkey" > < / td >
2016-03-21 19:14:00 +00:00
< td > < / td >
2017-04-20 21:19:19 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > init_data< / em >   < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td > < / td >
2017-04-20 21:19:19 +00:00
< td > )< / td >
< td > < / td > < td > < / td >
2016-03-21 19:14:00 +00:00
< / 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" >
2017-04-20 21:19:19 +00:00
< p > Fetch keys based on the specified encrypted media init data. < / p >
2016-03-21 19:14:00 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2017-04-20 21:19:19 +00:00
< tr > < td class = "paramname" > init_data_type< / td > < td > specifies the encrypted media init data type. < / td > < / tr >
< tr > < td class = "paramname" > init_data< / td > < td > contains the init data. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2017-04-20 21:19:19 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a38dc8e7c48f86e2b3ab3c1ffe0d7916f" > shaka::media::KeySource< / a > .< / p >
2016-03-21 19:14:00 +00:00
2017-04-20 21:19:19 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html#l00018" > 18< / a > of file < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2017-06-15 18:19:40 +00:00
< a class = "anchor" id = "a1161732d3310177256ff0eed1f877e38" > < / a >
2016-03-21 19:14:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-06-30 20:14:31 +00:00
< td class = "memname" > Status shaka::media::FixedKeySource::GetCryptoPeriodKey < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > crypto_period_index< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-06-15 18:19:40 +00:00
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > stream_label< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *  < / td >
2016-03-21 19:14:00 +00:00
< td class = "paramname" > < em > key< / 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" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get encryption key of the specified track type at the specified index. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > crypto_period_index< / td > < td > is the sequence number of the key rotation period for which the key is being retrieved. < / td > < / tr >
2017-06-15 18:19:40 +00:00
< tr > < td class = "paramname" > stream_label< / td > < td > is the label of stream for which retrieving the key. < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > key< / td > < td > is a pointer to the < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > which will hold the retrieved key. Owner retains ownership, and may not be NULL. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2017-06-15 18:19:40 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a34340247a575bc693d14c3bef9102258" > shaka::media::KeySource< / a > .< / p >
2016-03-21 19:14:00 +00:00
2017-06-15 18:19:40 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html#l00046" > 46< / a > of file < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2017-06-15 18:19:40 +00:00
< a class = "anchor" id = "a3ebb4d8fdafa7c3e241038f1f8c0ed7b" > < / a >
2016-03-21 19:14:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-06-30 20:14:31 +00:00
< td class = "memname" > Status shaka::media::FixedKeySource::GetKey < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
2017-06-15 18:19:40 +00:00
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > stream_label< / em > , < / td >
2016-03-21 19:14:00 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *  < / td >
2016-03-21 19:14:00 +00:00
< td class = "paramname" > < em > key< / 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" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2017-06-15 18:19:40 +00:00
< p > Get encryption key of the specified stream label. < / p >
2016-03-21 19:14:00 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2017-06-15 18:19:40 +00:00
< tr > < td class = "paramname" > stream_label< / td > < td > is the label of stream for which retrieving the key. < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > key< / td > < td > is a pointer to the < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > which will hold the retrieved key. Owner retains ownership, and may not be NULL. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2017-06-15 18:19:40 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#af56c833453d65297c4dc96c9d2f83e1a" > shaka::media::KeySource< / a > .< / p >
2016-03-21 19:14:00 +00:00
2017-04-20 21:19:19 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html#l00024" > 24< / a > of file < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a58f9eae1ce9148a82f70118879b6c3f1" > < / a >
2016-03-21 19:14:00 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-06-30 20:14:31 +00:00
< td class = "memname" > Status shaka::media::FixedKeySource::GetKey < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > key_id< / 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/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *  < / td >
2016-03-21 19:14:00 +00:00
< td class = "paramname" > < em > key< / 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" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get the encryption key specified by the CENC key ID. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > key_id< / td > < td > is the unique identifier for the key being retreived. < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr > < td class = "paramname" > key< / td > < td > is a pointer to the < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > which will hold the retrieved key. Owner retains ownership, and may not be NULL. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, or an error status otherwise. < / dd > < / dl >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#ae33f2cdbd045572095acd7b8d6c1a789" > shaka::media::KeySource< / a > .< / p >
2016-03-21 19:14:00 +00:00
2017-06-15 18:19:40 +00:00
< p > Definition at line < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html#l00032" > 32< / a > of file < a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > media/base/< a class = "el" href = "../../d3/d72/fixed__key__source_8h_source.html" > fixed_key_source.h< / a > < / li >
< li > media/base/< a class = "el" href = "../../d3/d6b/fixed__key__source_8cc_source.html" > fixed_key_source.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2017-07-31 18:29:39 +00:00
Generated on Mon Jul 31 2017 18:29:33 for DASH Media Packaging SDK by   < a href = "http://www.doxygen.org/index.html" >
2016-03-21 19:14:00 +00:00
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.6
< / small > < / address >
< / body >
< / html >