2021-04-10 04:00:37 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2015-10-16 00:33:37 +00:00
< 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" / >
2021-06-22 00:16:40 +00:00
< meta name = "generator" content = "Doxygen 1.8.17" / >
2018-02-10 23:37:42 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2017-09-20 02:35:05 +00:00
< title > Shaka Packager SDK: shaka::media::WidevineKeySource 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" / >
2018-02-10 23:37:42 +00:00
< script type = "text/javascript" src = "../../search/searchdata.js" > < / script >
2015-10-16 00:33:37 +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
2015-10-16 00:33:37 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2021-06-22 00:16:40 +00:00
<!-- Generated by Doxygen 1.8.17 -->
2015-10-16 00:33:37 +00:00
< script type = "text/javascript" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2021-06-22 00:16:40 +00:00
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
2021-04-10 04:00:37 +00:00
/* @license-end */
2015-10-16 00:33:37 +00:00
< / 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" >
2021-04-10 04:00:37 +00:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2018-02-10 23:37:42 +00:00
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
2021-04-10 04:00:37 +00:00
/* @license-end */< / script >
2018-02-10 23:37:42 +00:00
< div id = "main-nav" > < / div >
2015-10-16 00:33:37 +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 >
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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html" > WidevineKeySource< / a > < / li > < / ul >
2015-10-16 00:33:37 +00:00
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
2016-05-24 23:43:16 +00:00
< a href = "../../d2/d35/classshaka_1_1media_1_1WidevineKeySource-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::WidevineKeySource Class Reference< / div > < / div >
2015-10-16 00:33:37 +00:00
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html" > widevine_key_source.h< / a > > < / code > < / p >
< div class = "dynheader" >
2016-05-24 23:43:16 +00:00
Inheritance diagram for shaka::media::WidevineKeySource:< / div >
2015-10-16 00:33:37 +00:00
< div class = "dyncontent" >
< div class = "center" >
2016-05-24 23:43:16 +00:00
< img src = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.png" usemap = "#shaka::media::WidevineKeySource_map" alt = "" / >
< map id = "shaka::media::WidevineKeySource_map" name = "shaka::media::WidevineKeySource_map" >
2021-04-10 04:00:37 +00:00
< 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,205,24" / >
< / map >
< / div > < / div >
2015-10-16 00:33:37 +00:00
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr class = "memitem:aa292ed08d3bc9b0e84f700e6cde16950" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#aa292ed08d3bc9b0e84f700e6cde16950" > WidevineKeySource< / a > (const std::string & server_url, < a class = "el" href = "../../d8/daf/namespaceshaka.html#aadc0cc211185374c4bf219da325673ac" > ProtectionSystem< / a > protection_systems, FourCC protection_scheme)< / td > < / tr >
< tr class = "separator:aa292ed08d3bc9b0e84f700e6cde16950" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-09-20 02:35:05 +00:00
< tr class = "memitem:a6fb9680be887d3b9367e015029f909f2" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#a6fb9680be887d3b9367e015029f909f2" > FetchKeys< / a > (const std::vector< uint8_t > & content_id, const std::string & policy)< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a6fb9680be887d3b9367e015029f909f2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-08-19 00:58:26 +00:00
< tr class = "memitem:a48d182da15ecc85e2ae7fd164ba0a526" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#a48d182da15ecc85e2ae7fd164ba0a526" > set_signer< / a > (std::unique_ptr< < a class = "el" href = "../../df/d3c/classshaka_1_1media_1_1RequestSigner.html" > RequestSigner< / a > > signer)< / td > < / tr >
< tr class = "separator:a48d182da15ecc85e2ae7fd164ba0a526" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a97c0565df9381e178ebb50c193cebd04" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#a97c0565df9381e178ebb50c193cebd04" > set_key_fetcher< / a > (std::unique_ptr< < a class = "el" href = "../../df/d66/classshaka_1_1media_1_1KeyFetcher.html" > KeyFetcher< / a > > key_fetcher)< / td > < / tr >
< tr class = "separator:a97c0565df9381e178ebb50c193cebd04" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-02-10 23:37:42 +00:00
< tr class = "memitem:af09d7590d0326c0958b0594cacf12ad6" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "af09d7590d0326c0958b0594cacf12ad6" > < / a >
2017-07-20 17:10:10 +00:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_group_id< / b > (const std::vector< uint8_t > & group_id)< / td > < / tr >
< tr class = "separator:af09d7590d0326c0958b0594cacf12ad6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-05-23 23:12:00 +00:00
< tr class = "memitem:a47c3184b7e345f5529bea0158f850113" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a47c3184b7e345f5529bea0158f850113" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < b > set_enable_entitlement_license< / b > (bool enable_entitlement_license)< / td > < / tr >
< tr class = "separator:a47c3184b7e345f5529bea0158f850113" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-16 00:33:37 +00:00
< tr > < td colspan = "2" > < div class = "groupHeader" > KeySource implementation overrides.< / div > < / td > < / tr >
2017-09-20 02:35:05 +00:00
< tr class = "memitem:aeea3e62921c176aa6be1f0a95f03b6cf" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#aeea3e62921c176aa6be1f0a95f03b6cf" > 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:aeea3e62921c176aa6be1f0a95f03b6cf" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-09-20 02:35:05 +00:00
< tr class = "memitem:ae7fa01a2f2f91e26e45b54146c929580" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#ae7fa01a2f2f91e26e45b54146c929580" > 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:ae7fa01a2f2f91e26e45b54146c929580" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-09-20 02:35:05 +00:00
< tr class = "memitem:a59699cd998290adae74e6596ba44fdc3" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#a59699cd998290adae74e6596ba44fdc3" > 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:a59699cd998290adae74e6596ba44fdc3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-01-22 00:59:16 +00:00
< tr class = "memitem:aab3666bda5a756ccdd1855cea088b4c6" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#aab3666bda5a756ccdd1855cea088b4c6" > GetCryptoPeriodKey< / a > (uint32_t crypto_period_index, uint32_t crypto_period_duration_in_seconds, 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:aab3666bda5a756ccdd1855cea088b4c6" > < 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 = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html" > WidevineKeySource< / a > talks to the Widevine encryption service to acquire the encryption keys. < / p >
2015-10-16 00:33:37 +00:00
2018-05-23 23:12:00 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html#l00029" > 29< / a > of file < a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html" > widevine_key_source.h< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2021-04-10 04:00:37 +00:00
< a id = "aa292ed08d3bc9b0e84f700e6cde16950" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aa292ed08d3bc9b0e84f700e6cde16950" > ◆ < / a > < / span > WidevineKeySource()< / h2 >
2018-02-10 23:37:42 +00:00
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::WidevineKeySource::WidevineKeySource < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
2016-03-28 22:32:55 +00:00
< td class = "paramname" > < em > server_url< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
2015-10-16 00:33:37 +00:00
< td > < / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > < a class = "el" href = "../../d8/daf/namespaceshaka.html#aadc0cc211185374c4bf219da325673ac" > ProtectionSystem< / a >   < / td >
< td class = "paramname" > < em > protection_systems< / em > , < / td >
2018-08-16 00:35:22 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > FourCC  < / td >
< td class = "paramname" > < em > protection_scheme< / em >   < / td >
2016-03-28 22:32:55 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > server_url< / td > < td > is the Widevine common encryption server url. < / td > < / tr >
2021-04-10 04:00:37 +00:00
< tr > < td class = "paramname" > protection_systems< / td > < td > is the enum indicating which PSSH should be included. < / td > < / tr >
2018-08-16 00:35:22 +00:00
< tr > < td class = "paramname" > protection_scheme< / td > < td > is the Protection Scheme to be used for encryption. It needs to be signalled in Widevine PSSH. This argument can be ignored if Widevine PSSH is not generated. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2020-01-22 00:59:16 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00086" > 86< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2021-04-10 04:00:37 +00:00
< a id = "a6fb9680be887d3b9367e015029f909f2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6fb9680be887d3b9367e015029f909f2" > ◆ < / a > < / span > FetchKeys() < span class = "overload" > [1/2]< / span > < / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2017-09-20 02:35:05 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > content_id< / em > , < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< tr >
2017-04-20 21:19:19 +00:00
< td class = "paramkey" > < / td >
2015-10-16 00:33:37 +00:00
< td > < / td >
2021-04-10 04:00:37 +00:00
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > policy< / em >   < / td >
2015-10-16 00:33:37 +00:00
< / tr >
2016-03-08 21:50:50 +00:00
< tr >
< td > < / td >
2017-04-20 21:19:19 +00:00
< td > )< / td >
< td > < / td > < td > < / td >
2016-03-08 21:50:50 +00:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2021-04-10 04:00:37 +00:00
< p > Fetch keys for CENC from the key server. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2016-03-08 21:50:50 +00:00
< table class = "params" >
2021-04-10 04:00:37 +00:00
< tr > < td class = "paramname" > content_id< / td > < td > the unique id identify the content. < / td > < / tr >
< tr > < td class = "paramname" > policy< / td > < td > specifies the DRM content rights. < / td > < / tr >
2016-03-08 21:50:50 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00118" > 118< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2021-04-10 04:00:37 +00:00
< a id = "aeea3e62921c176aa6be1f0a95f03b6cf" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aeea3e62921c176aa6be1f0a95f03b6cf" > ◆ < / a > < / span > FetchKeys() < span class = "overload" > [2/2]< / span > < / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
2021-04-10 04:00:37 +00:00
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
2015-10-16 00:33:37 +00:00
< table class = "memname" >
< tr >
2017-09-20 02:35:05 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2021-04-10 04:00:37 +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 >
< td class = "paramkey" > < / td >
< td > < / td >
2021-04-10 04:00:37 +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 >
2015-10-16 00:33:37 +00:00
< td > < / td >
2016-03-21 19:14:00 +00:00
< td > )< / td >
< td > < / td > < td > < / td >
2015-10-16 00:33:37 +00:00
< / tr >
< / table >
2021-04-10 04:00:37 +00:00
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
2015-10-16 00:33:37 +00:00
< / div > < div class = "memdoc" >
2021-04-10 04:00:37 +00:00
< p > Fetch keys based on the specified encrypted media init data. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< table class = "params" >
2021-04-10 04:00:37 +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 >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2021-04-10 04:00:37 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a38dc8e7c48f86e2b3ab3c1ffe0d7916f" > shaka::media::KeySource< / a > .< / p >
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00133" > 133< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2020-01-22 00:59:16 +00:00
< a id = "aab3666bda5a756ccdd1855cea088b4c6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aab3666bda5a756ccdd1855cea088b4c6" > ◆ < / a > < / span > GetCryptoPeriodKey()< / h2 >
2018-02-10 23:37:42 +00:00
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-09-20 02:35:05 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::GetCryptoPeriodKey < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > crypto_period_index< / em > , < / td >
< / tr >
2020-01-22 00:59:16 +00:00
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > crypto_period_duration_in_seconds< / em > , < / td >
< / tr >
2015-10-16 00:33:37 +00:00
< 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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / 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 >
2015-10-16 00:33:37 +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 >
2020-01-22 00:59:16 +00:00
< tr > < td class = "paramname" > crypto_period_duration_in_seconds< / td > < td > is the duration of the crypto period in seconds. < / 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 >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > OK on success, an error status otherwise. < / dd > < / dl >
2020-01-22 00:59:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#aef67793f02b0cd34b57993fab9f789ae" > shaka::media::KeySource< / a > .< / p >
2015-10-16 00:33:37 +00:00
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00219" > 219< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "ae7fa01a2f2f91e26e45b54146c929580" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae7fa01a2f2f91e26e45b54146c929580" > ◆ < / a > < / span > GetKey() < span class = "overload" > [1/2]< / span > < / h2 >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-09-20 02:35:05 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::GetKey < / td >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / 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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +00:00
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00195" > 195< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a59699cd998290adae74e6596ba44fdc3" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a59699cd998290adae74e6596ba44fdc3" > ◆ < / a > < / span > GetKey() < span class = "overload" > [2/2]< / span > < / h2 >
2015-10-16 00:33:37 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2017-09-20 02:35:05 +00:00
< td class = "memname" > < a class = "el" href = "../../d2/d20/classshaka_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::GetKey < / td >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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" >
2015-10-19 17:27:30 +00:00
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
2015-10-16 00:33:37 +00:00
< / 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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +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 >
2015-10-16 00:33:37 +00:00
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00206" > 206< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a97c0565df9381e178ebb50c193cebd04" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a97c0565df9381e178ebb50c193cebd04" > ◆ < / a > < / span > set_key_fetcher()< / h2 >
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::WidevineKeySource::set_key_fetcher < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-08-19 00:58:26 +00:00
< td class = "paramtype" > std::unique_ptr< < a class = "el" href = "../../df/d66/classshaka_1_1media_1_1KeyFetcher.html" > KeyFetcher< / a > >   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > key_fetcher< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2021-04-10 04:00:37 +00:00
< p > Inject an < b > < a class = "el" href = "../../df/d66/classshaka_1_1media_1_1KeyFetcher.html" title = "Base class for fetching keys from the license service." > KeyFetcher< / a > < / b > object, mainly used for testing. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< table class = "params" >
2021-04-10 04:00:37 +00:00
< tr > < td class = "paramname" > key_fetcher< / td > < td > points to the < b > < a class = "el" href = "../../df/d66/classshaka_1_1media_1_1KeyFetcher.html" title = "Base class for fetching keys from the license service." > KeyFetcher< / a > < / b > object to be injected. < / td > < / tr >
2015-10-16 00:33:37 +00:00
< / table >
< / dd >
< / dl >
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00252" > 252< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
2018-02-10 23:37:42 +00:00
< a id = "a48d182da15ecc85e2ae7fd164ba0a526" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a48d182da15ecc85e2ae7fd164ba0a526" > ◆ < / a > < / span > set_signer()< / h2 >
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::WidevineKeySource::set_signer < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-08-19 00:58:26 +00:00
< td class = "paramtype" > std::unique_ptr< < a class = "el" href = "../../df/d3c/classshaka_1_1media_1_1RequestSigner.html" > RequestSigner< / a > >   < / td >
2015-10-16 00:33:37 +00:00
< td class = "paramname" > < em > signer< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-02-10 23:37:42 +00:00
< p > Set signer for the key source. < / p > < dl class = "params" > < dt > Parameters< / dt > < dd >
2015-10-16 00:33:37 +00:00
< table class = "params" >
< tr > < td class = "paramname" > signer< / td > < td > signs the request message. < / td > < / tr >
< / table >
< / dd >
< / dl >
2021-04-10 04:00:37 +00:00
< p class = "definition" > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00248" > 248< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2015-10-16 00:33:37 +00:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2017-09-20 02:35:05 +00:00
< li > packager/media/base/< a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html" > widevine_key_source.h< / a > < / li >
< li > packager/media/base/< a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > < / li >
2015-10-16 00:33:37 +00:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2021-06-22 00:16:40 +00:00
Generated on Tue Jun 22 2021 00:16:06 for Shaka Packager SDK by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "../../doxygen.png" alt = "doxygen" / >
< / a > 1.8.17
2015-10-16 00:33:37 +00:00
< / small > < / address >
< / body >
< / html >