Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetContentKeyResponse ¶
type GetContentKeyResponse struct { Status string `json:"status"` DRM []drm `json:"drm"` Tracks []tracks `json:"tracks"` AlreadyUsed bool `json:"already_used"` }
GetContentKeyResponse JSON response from Widevine Cloud. /cenc/getcontentkey/<provider>
type GetLicenseResponse ¶
type GetLicenseResponse struct { Status string `json:"status"` License string `json:"license"` Make string `json:"make"` Model string `json:"model"` SecurityLevel int `json:"security_level"` InternalStatus int `json:"internal_status"` DRMCertSerialNumber string `json:"drm_cert_serial_number"` DeviceWhitelistState string `json:"device_whitelist_state"` MessageType string `json:"message_type"` Platform string `json:"platform"` DeviceState string `json:"device_state"` ClientMaxHDCPVersion string `json:"client_max_hdcp_version"` PlatformVerificationStatus string `json:"platform_verification_status"` ContentOwner string `json:"content_owner"` ContentPRovider string `json:"content_provider"` SessionState sessionState `json:"session_state"` LicenseMetadata licenseMetadata `json:"license_metadata"` SupportedTracks []supportedTracks `json:"supported_tracks"` PSSHData psshData `json:"pssh_data"` ClientInfo []clientInfo `json:"client_info"` }
GetLicenseResponse decoded JSON response from Widevine Cloud. /cenc/getlicense
type HTTPClient ¶
HTTPClient defines an HTTP client.
type Widevine ¶
Widevine structure.
func (*Widevine) GetContentKey ¶
func (wp *Widevine) GetContentKey(contentID string, policy Policy) GetContentKeyResponse
GetContentKey creates a content key giving a contentID.
func (*Widevine) GetLicense ¶
func (wp *Widevine) GetLicense(contentID string, body string) GetLicenseResponse
GetLicense creates a license request used with a proxy server.
Click to show internal directories.
Click to hide internal directories.