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::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" / >
< 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 = "../../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 > |
< a href = "#pro-attribs" > Protected Attributes< / 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" >
< 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" / >
2015-10-16 00:33:37 +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 >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a93480a98e423d0456482844ac629bd2e" > < 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#a93480a98e423d0456482844ac629bd2e" > WidevineKeySource< / a > (const std::string & server_url, bool add_common_pssh)< / td > < / tr >
< tr class = "separator:a93480a98e423d0456482844ac629bd2e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6fb9680be887d3b9367e015029f909f2" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_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 >
< tr class = "separator:a6fb9680be887d3b9367e015029f909f2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abdff0d3cc5f59b744c68b11b0c1f6272" > < 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#abdff0d3cc5f59b744c68b11b0c1f6272" > set_signer< / a > (scoped_ptr< < a class = "el" href = "../../df/d3c/classshaka_1_1media_1_1RequestSigner.html" > RequestSigner< / a > > signer)< / td > < / tr >
< tr class = "separator:abdff0d3cc5f59b744c68b11b0c1f6272" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afc5154b2994b5fe1f8f0c494bbd2bcdd" > < 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#afc5154b2994b5fe1f8f0c494bbd2bcdd" > set_key_fetcher< / a > (scoped_ptr< < a class = "el" href = "../../df/d66/classshaka_1_1media_1_1KeyFetcher.html" > KeyFetcher< / a > > key_fetcher)< / td > < / tr >
< tr class = "separator:afc5154b2994b5fe1f8f0c494bbd2bcdd" > < 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 >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:ae6490d21a6538b9c909fdf996398e576" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#ae6490d21a6538b9c909fdf996398e576" > FetchKeys< / a > (const std::vector< uint8_t > & pssh_box) override< / td > < / tr >
< tr class = "separator:ae6490d21a6538b9c909fdf996398e576" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae202f5af8c11fe3abe9f7b882ac57513" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#ae202f5af8c11fe3abe9f7b882ac57513" > FetchKeys< / a > (const std::vector< std::vector< uint8_t > > & key_ids) override< / td > < / tr >
< tr class = "separator:ae202f5af8c11fe3abe9f7b882ac57513" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac0be37455c1ec0a7d177e6b78dd5a58e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#ac0be37455c1ec0a7d177e6b78dd5a58e" > FetchKeys< / a > (uint32_t asset_id) override< / td > < / tr >
< tr class = "separator:ac0be37455c1ec0a7d177e6b78dd5a58e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a59a16d61c6a6d05745e8b49fd3618deb" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#a59a16d61c6a6d05745e8b49fd3618deb" > GetKey< / a > (TrackType track_type, < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *key) override< / td > < / tr >
< tr class = "separator:a59a16d61c6a6d05745e8b49fd3618deb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a59699cd998290adae74e6596ba44fdc3" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_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 >
< tr class = "separator:a59699cd998290adae74e6596ba44fdc3" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab56a71e9f9f9e545f96e667279c05bb1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../da/ddd/classshaka_1_1media_1_1WidevineKeySource.html#ab56a71e9f9f9e545f96e667279c05bb1" > GetCryptoPeriodKey< / a > (uint32_t crypto_period_index, TrackType track_type, < a class = "el" href = "../../dd/dbd/structshaka_1_1media_1_1EncryptionKey.html" > EncryptionKey< / a > *key) override< / td > < / tr >
< tr class = "separator:ab56a71e9f9f9e545f96e667279c05bb1" > < 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 = "pro-attribs" > < / a >
Protected Attributes< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "memitem:a9b622cdc7dd9b9a72ef6615329d20dcc" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a9b622cdc7dd9b9a72ef6615329d20dcc" > < / a >
< a class = "el" href = "../../dc/df0/classshaka_1_1media_1_1ClosureThread.html" > ClosureThread< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < b > key_production_thread_< / b > < / td > < / tr >
< tr class = "separator:a9b622cdc7dd9b9a72ef6615329d20dcc" > < 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 = "inherited" > < / a >
Additional Inherited Members< / h2 > < / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "inherit_header pub_types_classshaka_1_1media_1_1KeySource" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_types_classshaka_1_1media_1_1KeySource')" > < img src = "../../closed.png" alt = "-" / >   Public Types inherited from < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html" > shaka::media::KeySource< / a > < / td > < / tr >
< tr class = "memitem:a2bb2755c69385800fa57172e262befdd inherit pub_types_classshaka_1_1media_1_1KeySource" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < b > TrackType< / b > { < br / >
2015-10-16 00:33:37 +00:00
    < b > TRACK_TYPE_UNKNOWN< / b > = 0,
< b > TRACK_TYPE_SD< / b > = 1,
< b > TRACK_TYPE_HD< / b > = 2,
< b > TRACK_TYPE_AUDIO< / b > = 3,
< br / >
    < b > TRACK_TYPE_UNSPECIFIED< / b > = 4,
< b > NUM_VALID_TRACK_TYPES< / b > = 4
< br / >
}< / td > < / tr >
2016-05-24 23:43:16 +00:00
< tr class = "separator:a2bb2755c69385800fa57172e262befdd inherit pub_types_classshaka_1_1media_1_1KeySource" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_static_methods_classshaka_1_1media_1_1KeySource" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_static_methods_classshaka_1_1media_1_1KeySource')" > < img src = "../../closed.png" alt = "-" / >   Static 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:a0963412e7ee33d0e34893ebdf38d96c1 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a0963412e7ee33d0e34893ebdf38d96c1" > < / a >
static TrackType  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a0963412e7ee33d0e34893ebdf38d96c1" > GetTrackTypeFromString< / a > (const std::string & track_type_string)< / td > < / tr >
< tr class = "memdesc:a0963412e7ee33d0e34893ebdf38d96c1 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert string representation of track type to enum representation. < br / > < / td > < / tr >
< tr class = "separator:a0963412e7ee33d0e34893ebdf38d96c1 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4f9cede7a8c1678e1fac93c8fe12aa75 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a4f9cede7a8c1678e1fac93c8fe12aa75" > < / a >
static std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a4f9cede7a8c1678e1fac93c8fe12aa75" > TrackTypeToString< / a > (TrackType track_type)< / td > < / tr >
< tr class = "memdesc:a4f9cede7a8c1678e1fac93c8fe12aa75 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert TrackType to string. < br / > < / td > < / tr >
< tr class = "separator:a4f9cede7a8c1678e1fac93c8fe12aa75 inherit pub_static_methods_classshaka_1_1media_1_1KeySource" > < 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
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html#l00031" > 31< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a93480a98e423d0456482844ac629bd2e" > < / 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::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 >
2016-03-28 22:32:55 +00:00
< td class = "paramtype" > bool  < / td >
< td class = "paramname" > < em > add_common_pssh< / em >   < / td >
< / 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 >
< / table >
< / dd >
< / dl >
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00137" > 137< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ae6490d21a6538b9c909fdf996398e576" > < / a >
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 >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
2016-03-21 19:14:00 +00:00
< td class = "paramname" > < em > pssh_box< / em > < / td > < td > )< / td >
2015-10-16 00:33:37 +00:00
< 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" >
< p > Fetch keys for CENC from the key server. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-03-21 19:14:00 +00:00
< tr > < td class = "paramname" > pssh_box< / td > < td > The entire PSSH box for the content to be decrypted < / 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 >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#aca6ecdac6ebc131d3626b765f64cb2de" > shaka::media::KeySource< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00175" > 175< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ae202f5af8c11fe3abe9f7b882ac57513" > < / a >
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 >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-03-21 19:14:00 +00:00
< td class = "paramtype" > const std::vector< std::vector< uint8_t > > &   < / td >
< td class = "paramname" > < em > key_ids< / em > < / td > < td > )< / td >
2015-10-16 00:33:37 +00:00
< 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" >
< p > Fetch keys for CENC from the key server. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-03-21 19:14:00 +00:00
< tr > < td class = "paramname" > key_ids< / td > < td > the key IDs for the keys to fetch from the server. < / 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 >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a42df88c1cdb415e7844eea18222692bb" > shaka::media::KeySource< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00202" > 202< / a > of file < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > .< / p >
2016-03-08 21:50:50 +00:00
< / div >
< / div >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ac0be37455c1ec0a7d177e6b78dd5a58e" > < / a >
2016-03-08 21:50:50 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2016-03-08 21:50:50 +00:00
< td > (< / td >
2016-03-21 19:14:00 +00:00
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > asset_id< / em > < / td > < td > )< / td >
2016-03-08 21:50:50 +00:00
< 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" >
2016-03-21 19:14:00 +00:00
< p > Fetch keys for WVM decryption from the key server. < / p >
2016-03-08 21:50:50 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-03-21 19:14:00 +00:00
< tr > < td class = "paramname" > asset_id< / td > < td > is the Widevine Classic asset ID for the content to be decrypted. < / 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 >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#ad1c8f986a88647813f0e43a9b80d057e" > shaka::media::KeySource< / a > .< / p >
2016-03-08 21:50:50 +00:00
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00223" > 223< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a6fb9680be887d3b9367e015029f909f2" > < / 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" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::FetchKeys < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-03-21 19:14:00 +00:00
< td class = "paramtype" > const std::vector< uint8_t > &   < / td >
< td class = "paramname" > < em > content_id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > policy< / em >   < / td >
< / 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 >
< / div > < div class = "memdoc" >
2016-03-21 19:14:00 +00:00
< p > Fetch keys for CENC from the key server. < / p >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-03-21 19:14:00 +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 >
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 >
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00164" > 164< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "ab56a71e9f9f9e545f96e667279c05bb1" > < / a >
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 >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_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 >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > TrackType  < / td >
< td class = "paramname" > < em > track_type< / 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" >
< 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 >
< tr > < td class = "paramname" > track_type< / td > < td > is the type of track 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 >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a18806b962c858e35ed07753687605b16" > shaka::media::KeySource< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00258" > 258< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a59a16d61c6a6d05745e8b49fd3618deb" > < / a >
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 >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_1_1Status.html" > Status< / a > shaka::media::WidevineKeySource::GetKey < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
< td class = "paramtype" > TrackType  < / td >
< td class = "paramname" > < em > track_type< / 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" >
< p > Get encryption key of the specified track type. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > track_type< / td > < td > is the type of track 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 >
2016-05-24 23:43:16 +00:00
< p > Implements < a class = "el" href = "../../d1/d1f/classshaka_1_1media_1_1KeySource.html#a994eb66cf09d8b08fd1c964f6afd3ab3" > shaka::media::KeySource< / a > .< / p >
2015-10-16 00:33:37 +00:00
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00232" > 232< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "a59699cd998290adae74e6596ba44fdc3" > < / a >
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 >
2016-05-24 23:43:16 +00:00
< td class = "memname" > < a class = "el" href = "../../d0/d93/classshaka_1_1media_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" >
< 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 >
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
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00242" > 242< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "afc5154b2994b5fe1f8f0c494bbd2bcdd" > < / 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::WidevineKeySource::set_key_fetcher < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > scoped_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" >
2016-05-24 23:43:16 +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 >
2015-10-16 00:33:37 +00:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
2016-05-24 23:43:16 +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 >
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00284" > 284< / 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 >
2016-05-24 23:43:16 +00:00
< a class = "anchor" id = "abdff0d3cc5f59b744c68b11b0c1f6272" > < / 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::WidevineKeySource::set_signer < / td >
2015-10-16 00:33:37 +00:00
< td > (< / td >
2016-05-24 23:43:16 +00:00
< td class = "paramtype" > scoped_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" >
< p > Set signer for the key source. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > signer< / td > < td > signs the request message. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-06-30 19:53:16 +00:00
< p > Definition at line < a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html#l00280" > 280< / 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 >
< li > media/base/< a class = "el" href = "../../da/d5c/widevine__key__source_8h_source.html" > widevine_key_source.h< / a > < / li >
< li > media/base/< a class = "el" href = "../../d5/d89/widevine__key__source_8cc_source.html" > widevine_key_source.cc< / a > < / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
2016-08-02 20:23:22 +00:00
Generated on Tue Aug 2 2016 20:23:16 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 >