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" / >
2018-02-10 23:37:42 +00:00
< meta name = "generator" content = "Doxygen 1.8.13" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2017-10-24 22:51:02 +00:00
< title > Shaka Packager SDK: shaka::media::RawKeySource 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" / >
2018-02-10 23:37:42 +00:00
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
2016-03-21 19:14:00 +00:00
< 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;" >
2018-02-10 23:37:42 +00:00
< td id = "projectalign" style = "padding-left: 0.5em;" >
2017-09-20 02:35:05 +00:00
< div id = "projectname" > Shaka Packager SDK
2016-03-21 19:14:00 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2018-02-10 23:37:42 +00:00
<!-- Generated by Doxygen 1.8.13 -->
2016-03-21 19:14:00 +00:00
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
< / script >
2018-02-10 23:37:42 +00:00
< script type = "text/javascript" src = "../../menudata.js" > < / script >
< script type = "text/javascript" src = "../../menu.js" > < / script >
< script type = "text/javascript" >
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
< / script >
< div id = "main-nav" > < / div >
2016-03-21 19:14:00 +00:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
2018-02-10 23:37:42 +00:00
< / 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 >
2017-10-24 22:51:02 +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 = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html" > RawKeySource< / 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 > |
2017-10-24 22:51:02 +00:00
< a href = "../../d6/d6b/classshaka_1_1media_1_1RawKeySource-members.html" > List of all members< / a > < / div >
2016-03-21 19:14:00 +00:00
< div class = "headertitle" >
2017-10-24 22:51:02 +00:00
< div class = "title" > shaka::media::RawKeySource Class Reference< / div > < / div >
2016-03-21 19:14:00 +00:00
< / div > <!-- header -->
< div class = "contents" >
2017-10-24 22:51:02 +00:00
< p > A key source that uses raw keys for encryption.
< a href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#details" > More...< / a > < / p >
2016-03-21 19:14:00 +00:00
2017-10-24 22:51:02 +00:00
< p > < code > #include < < a class = "el" href = "../../dd/d60/raw__key__source_8h_source.html" > raw_key_source.h< / a > > < / code > < / p >
2016-03-21 19:14:00 +00:00
< div class = "dynheader" >
2017-10-24 22:51:02 +00:00
Inheritance diagram for shaka::media::RawKeySource:< / div >
2016-03-21 19:14:00 +00:00
< div class = "dyncontent" >
< div class = "center" >
2017-10-24 22:51:02 +00:00
< img src = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.png" usemap = "#shaka::media::RawKeySource_map" alt = "" / >
< map id = "shaka::media::RawKeySource_map" name = "shaka::media::RawKeySource_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,177,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-10-24 22:51:02 +00:00
< tr class = "memitem:a0849f7000c4ab37139cc9c9ea1a031f3" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#a0849f7000c4ab37139cc9c9ea1a031f3" > FetchKeys< / a > (EmeInitDataType init_data_type, const std::vector< uint8_t > & init_data) override< / td > < / tr >
< tr class = "separator:a0849f7000c4ab37139cc9c9ea1a031f3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a29b20968ba46f1ad3c206b8173fa6f7a" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#a29b20968ba46f1ad3c206b8173fa6f7a" > 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 >
< tr class = "separator:a29b20968ba46f1ad3c206b8173fa6f7a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa5b34dcc690e695f64846a8293335967" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#aa5b34dcc690e695f64846a8293335967" > 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 >
< tr class = "separator:aa5b34dcc690e695f64846a8293335967" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa5b50bc57ebd9691db6fbed256cd763e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#aa5b50bc57ebd9691db6fbed256cd763e" > 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 >
< tr class = "separator:aa5b50bc57ebd9691db6fbed256cd763e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-05-23 23:12:00 +00:00
< tr class = "inherit_header pub_methods_classshaka_1_1media_1_1KeySource" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_classshaka_1_1media_1_1KeySource')" > < img src = "../../closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" > shaka::media::KeySource< / a > < / td > < / tr >
< tr class = "memitem:a8f16841c5d413f7fa09502a31c2db61d inherit pub_methods_classshaka_1_1media_1_1KeySource" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a8f16841c5d413f7fa09502a31c2db61d" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > KeySource< / b > (int protection_systems_flags)< / td > < / tr >
< tr class = "separator:a8f16841c5d413f7fa09502a31c2db61d inherit pub_methods_classshaka_1_1media_1_1KeySource" > < 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 >
2018-05-23 23:12:00 +00:00
< tr class = "memitem:af5a8c725fd07b4faa86f2bc39049858b" > < td class = "memItemLeft" align = "right" valign = "top" > static std::unique_ptr< < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html" > RawKeySource< / a > >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html#af5a8c725fd07b4faa86f2bc39049858b" > Create< / a > (const < a class = "el" href = "../../d0/db4/structshaka_1_1RawKeyParams.html" > RawKeyParams< / a > & raw_key, int protection_system_flags)< / td > < / tr >
< tr class = "separator:af5a8c725fd07b4faa86f2bc39049858b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "inherited" > < / a >
Additional Inherited Members< / h2 > < / td > < / tr >
< tr class = "inherit_header pro_methods_classshaka_1_1media_1_1KeySource" > < td colspan = "2" onclick = "javascript:toggleInherit('pro_methods_classshaka_1_1media_1_1KeySource')" > < img src = "../../closed.png" alt = "-" / >   Protected Member Functions inherited from < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" > shaka::media::KeySource< / a > < / td > < / tr >
< tr class = "memitem:a8cb007e01d91f38d64cad4ba47f1208a inherit pro_methods_classshaka_1_1media_1_1KeySource" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a8cb007e01d91f38d64cad4ba47f1208a" > UpdateProtectionSystemInfo< / a > (EncryptionKeyMap *encryption_key_map)< / td > < / tr >
< tr class = "separator:a8cb007e01d91f38d64cad4ba47f1208a inherit pro_methods_classshaka_1_1media_1_1KeySource" > < 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 >
2017-10-24 22:51:02 +00:00
< div class = "textblock" > < p > A key source that uses raw keys for encryption. < / p >
2016-03-21 19:14:00 +00:00
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../dd/d60/raw__key__source_8h_source.html#l00027" > 27< / a > of file < a class = "el" href = "../../dd/d60/raw__key__source_8h_source.html" > raw_key_source.h< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
2018-05-23 23:12:00 +00:00
< a id = "af5a8c725fd07b4faa86f2bc39049858b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#af5a8c725fd07b4faa86f2bc39049858b" > ◆ < / a > < / span > Create()< / h2 >
2018-02-10 23:37:42 +00:00
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-10-24 22:51:02 +00:00
< td class = "memname" > std::unique_ptr< < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html" > RawKeySource< / a > > shaka::media::RawKeySource::Create < / td >
2016-03-21 19:14:00 +00:00
< td > (< / td >
2017-10-24 22:51:02 +00:00
< td class = "paramtype" > const < a class = "el" href = "../../d0/db4/structshaka_1_1RawKeyParams.html" > RawKeyParams< / a > &   < / td >
2018-05-23 23:12:00 +00:00
< td class = "paramname" > < em > raw_key< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
2016-03-21 19:14:00 +00:00
< td > < / td >
2018-05-23 23:12:00 +00:00
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > protection_system_flags< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< 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" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Creates a new < a class = "el" href = "../../db/dd0/classshaka_1_1media_1_1RawKeySource.html" title = "A key source that uses raw keys for encryption. " > RawKeySource< / a > from the given data. Returns null if the parameter is malformed. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-21 19:14:00 +00:00
< table class = "params" >
2017-10-24 22:51:02 +00:00
< tr > < td class = "paramname" > raw_key< / td > < td > contains parameters to setup the key source. < / td > < / tr >
2016-03-21 19:14:00 +00:00
< / table >
< / dd >
< / dl >
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html#l00099" > 99< / a > of file < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a0849f7000c4ab37139cc9c9ea1a031f3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0849f7000c4ab37139cc9c9ea1a031f3" > ◆ < / a > < / span > FetchKeys()< / h2 >
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-10-24 22:51:02 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::RawKeySource::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" >
2018-02-10 23:37:42 +00:00
< p > Fetch keys based on the specified encrypted media init data. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-21 19:14:00 +00:00
< 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
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html#l00025" > 25< / a > of file < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "aa5b50bc57ebd9691db6fbed256cd763e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa5b50bc57ebd9691db6fbed256cd763e" > ◆ < / a > < / span > GetCryptoPeriodKey()< / h2 >
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-10-24 22:51:02 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::RawKeySource::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" >
2018-02-10 23:37:42 +00:00
< p > Get encryption key of the specified track type at the specified index. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-21 19:14:00 +00:00
< 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
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html#l00062" > 62< / a > of file < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a29b20968ba46f1ad3c206b8173fa6f7a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a29b20968ba46f1ad3c206b8173fa6f7a" > ◆ < / a > < / span > GetKey() < span class = "overload" > [1/2]< / span > < / h2 >
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-10-24 22:51:02 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::RawKeySource::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" >
2018-02-10 23:37:42 +00:00
< p > Get encryption key of the specified stream label. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-21 19:14:00 +00:00
< 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
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html#l00031" > 31< / a > of file < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_key_source.cc< / a > .< / p >
2016-03-21 19:14:00 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "aa5b34dcc690e695f64846a8293335967" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa5b34dcc690e695f64846a8293335967" > ◆ < / a > < / span > GetKey() < span class = "overload" > [2/2]< / span > < / h2 >
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-10-24 22:51:02 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::RawKeySource::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" >
2018-02-10 23:37:42 +00:00
< p > Get the encryption key specified by the CENC key ID. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-21 19:14:00 +00:00
< 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
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html#l00048" > 48< / a > of file < a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_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 >
2017-10-24 22:51:02 +00:00
< li > packager/media/base/< a class = "el" href = "../../dd/d60/raw__key__source_8h_source.html" > raw_key_source.h< / a > < / li >
< li > packager/media/base/< a class = "el" href = "../../d4/dd6/raw__key__source_8cc_source.html" > raw_key_source.cc< / a > < / li >
2016-03-21 19:14:00 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2018-06-29 00:34:00 +00:00
Generated on Thu Jun 28 2018 17:33:07 for Shaka Packager 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" / >
2018-02-10 23:37:42 +00:00
< / a > 1.8.13
2016-03-21 19:14:00 +00:00
< / small > < / address >
< / body >
< / html >