Skip to content

Instantly share code, notes, and snippets.

@zhangyoufu
Created June 23, 2016 15:03
Show Gist options
  • Select an option

  • Save zhangyoufu/46c634c6a865cb4b10a4b0c5731259b0 to your computer and use it in GitHub Desktop.

Select an option

Save zhangyoufu/46c634c6a865cb4b10a4b0c5731259b0 to your computer and use it in GitHub Desktop.
(lldb) p g_key_systems.Pointer()
(media::KeySystemsImpl *) $3 = 0x00000001222553b0
(lldb) p *$3
(media::KeySystemsImpl) $4 = {
key_system_map_ = size=2 {
[0] = {
__cc = {
first = "org.w3.clearkey"
second = {
key_system = "org.w3.clearkey"
supported_init_data_types = 7
supported_codecs = 63
max_audio_robustness = EMPTY
max_video_robustness = EMPTY
persistent_license_support = NOT_SUPPORTED
persistent_release_message_support = NOT_SUPPORTED
persistent_state_support = NOT_SUPPORTED
distinctive_identifier_support = NOT_SUPPORTED
use_aes_decryptor = true
pepper_type = ""
}
}
__nc = {
first = "org.w3.clearkey"
second = {
key_system = "org.w3.clearkey"
supported_init_data_types = 7
supported_codecs = 63
max_audio_robustness = EMPTY
max_video_robustness = EMPTY
persistent_license_support = 1
persistent_release_message_support = 1
persistent_state_support = NOT_SUPPORTED
distinctive_identifier_support = NOT_SUPPORTED
use_aes_decryptor = true
pepper_type = ""
}
}
}
[1] = {
__cc = {
first = "com.widevine.alpha"
second = {
key_system = "com.widevine.alpha"
supported_init_data_types = 3
supported_codecs = 63
max_audio_robustness = SW_SECURE_CRYPTO
max_video_robustness = SW_SECURE_DECODE
persistent_license_support = 1
persistent_release_message_support = 1
persistent_state_support = REQUESTABLE
distinctive_identifier_support = NOT_SUPPORTED
use_aes_decryptor = false
pepper_type = "application/x-ppapi-widevine-cdm"
}
}
__nc = {
first = "com.widevine.alpha"
second = {
key_system = "com.widevine.alpha"
supported_init_data_types = 3
supported_codecs = 63
max_audio_robustness = SW_SECURE_CRYPTO
max_video_robustness = SW_SECURE_DECODE
persistent_license_support = 1
persistent_release_message_support = 1
persistent_state_support = REQUESTABLE
distinctive_identifier_support = NOT_SUPPORTED
use_aes_decryptor = false
pepper_type = "application/x-ppapi-widevine-cdm"
}
}
}
}
mime_type_to_codec_mask_map_ = size=4 {
[0] = {
__cc = (first = "video/mp4", second = 32)
__nc = (first = "video/mp4", second = 32)
}
[1] = {
__cc = (first = "audio/mp4", second = 16)
__nc = (first = "audio/mp4", second = 16)
}
[2] = {
__cc = (first = "video/webm", second = 12)
__nc = (first = "video/webm", second = 12)
}
[3] = {
__cc = (first = "audio/webm", second = 3)
__nc = (first = "audio/webm", second = 3)
}
}
codec_string_map_ = size=9 {
[0] = {
__cc = (first = "avc3", second = EME_CODEC_MP4_AVC1)
__nc = (first = "avc3", second = EME_CODEC_MP4_AVC1)
}
[1] = {
__cc = (first = "avc1", second = EME_CODEC_MP4_AVC1)
__nc = (first = "avc1", second = EME_CODEC_MP4_AVC1)
}
[2] = {
__cc = (first = "vp9", second = EME_CODEC_WEBM_VP9)
__nc = (first = "vp9", second = EME_CODEC_WEBM_VP9)
}
[3] = {
__cc = (first = "vp9.0", second = EME_CODEC_WEBM_VP9)
__nc = (first = "vp9.0", second = EME_CODEC_WEBM_VP9)
}
[4] = {
__cc = (first = "vp8.0", second = EME_CODEC_WEBM_VP8)
__nc = (first = "vp8.0", second = EME_CODEC_WEBM_VP8)
}
[5] = {
__cc = (first = "mp4a", second = EME_CODEC_MP4_AAC)
__nc = (first = "mp4a", second = EME_CODEC_MP4_AAC)
}
[6] = {
__cc = (first = "vorbis", second = EME_CODEC_WEBM_VORBIS)
__nc = (first = "vorbis", second = EME_CODEC_WEBM_VORBIS)
}
[7] = {
__cc = (first = "vp8", second = EME_CODEC_WEBM_VP8)
__nc = (first = "vp8", second = EME_CODEC_WEBM_VP8)
}
[8] = {
__cc = (first = "opus", second = EME_CODEC_WEBM_OPUS)
__nc = (first = "opus", second = EME_CODEC_WEBM_OPUS)
}
}
key_system_name_for_uma_map_ = size=2 {
[0] = {
__cc = (first = "org.w3.clearkey", second = "ClearKey")
__nc = (first = "org.w3.clearkey", second = "ClearKey")
}
[1] = {
__cc = (first = "com.widevine.alpha", second = "Widevine")
__nc = (first = "com.widevine.alpha", second = "Widevine")
}
}
audio_codec_mask_ = 19
video_codec_mask_ = 44
thread_checker_ = {
base::ThreadCheckerImpl = {
lock_ = {
owning_thread_ref_ = {
id_ = 0x0000000000000000
}
lock_ = {
native_handle_ = (__sig = 1297437784, __opaque = char [56] @ 0x00007f8032f627f0)
}
}
valid_thread_id_ = {
id_ = 0x000070000c372000
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment