proto

package
v0.0.0-...-a781cb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WidevinePsshData_Algorithm_name = map[int32]string{
		0: "UNENCRYPTED",
		1: "AESCTR",
	}
	WidevinePsshData_Algorithm_value = map[string]int32{
		"UNENCRYPTED": 0,
		"AESCTR":      1,
	}
)

Enum value maps for WidevinePsshData_Algorithm.

View Source
var File_widevine_pssh_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type WidevineHeader

type WidevineHeader struct {
	KeyIds []string `protobuf:"bytes,2,rep,name=key_ids,json=keyIds" json:"key_ids,omitempty"`
	// Content provider name.
	Provider *string `protobuf:"bytes,3,opt,name=provider" json:"provider,omitempty"`
	// A content identifier, specified by content provider.
	ContentId []byte `protobuf:"bytes,4,opt,name=content_id,json=contentId" json:"content_id,omitempty"`
	// contains filtered or unexported fields
}

Derived from WidevinePsshData. The JSON format of this proto is used in Widevine HLS DRM signaling v1. We cannot build JSON from WidevinePsshData as |key_id| is required to be in hex format, while |bytes| type is translated to base64 by JSON formatter, so we have to use |string| type and do hex conversion in the code.

func (*WidevineHeader) Descriptor deprecated

func (*WidevineHeader) Descriptor() ([]byte, []int)

Deprecated: Use WidevineHeader.ProtoReflect.Descriptor instead.

func (*WidevineHeader) GetContentId

func (x *WidevineHeader) GetContentId() []byte

func (*WidevineHeader) GetKeyIds

func (x *WidevineHeader) GetKeyIds() []string

func (*WidevineHeader) GetProvider

func (x *WidevineHeader) GetProvider() string

func (*WidevineHeader) ProtoMessage

func (*WidevineHeader) ProtoMessage()

func (*WidevineHeader) ProtoReflect

func (x *WidevineHeader) ProtoReflect() protoreflect.Message

func (*WidevineHeader) Reset

func (x *WidevineHeader) Reset()

func (*WidevineHeader) String

func (x *WidevineHeader) String() string

type WidevinePsshData

type WidevinePsshData struct {
	Algorithm *WidevinePsshData_Algorithm `protobuf:"varint,1,opt,name=algorithm,enum=shaka.media.WidevinePsshData_Algorithm" json:"algorithm,omitempty"`
	KeyId     [][]byte                    `protobuf:"bytes,2,rep,name=key_id,json=keyId" json:"key_id,omitempty"`
	// Content provider name.
	Provider *string `protobuf:"bytes,3,opt,name=provider" json:"provider,omitempty"`
	// A content identifier, specified by content provider.
	ContentId []byte `protobuf:"bytes,4,opt,name=content_id,json=contentId" json:"content_id,omitempty"`
	// The name of a registered policy to be used for this asset.
	Policy *string `protobuf:"bytes,6,opt,name=policy" json:"policy,omitempty"`
	// Crypto period index, for media using key rotation.
	CryptoPeriodIndex *uint32 `protobuf:"varint,7,opt,name=crypto_period_index,json=cryptoPeriodIndex" json:"crypto_period_index,omitempty"`
	// Optional protected context for group content. The grouped_license is a
	// serialized SignedMessage.
	GroupedLicense []byte `protobuf:"bytes,8,opt,name=grouped_license,json=groupedLicense" json:"grouped_license,omitempty"`
	// Protection scheme identifying the encryption algorithm. Represented as one
	// of the following 4CC values: 'cenc' (AES-CTR), 'cbc1' (AES-CBC),
	// 'cens' (AES-CTR subsample), 'cbcs' (AES-CBC subsample).
	ProtectionScheme *uint32 `protobuf:"varint,9,opt,name=protection_scheme,json=protectionScheme" json:"protection_scheme,omitempty"`
	// contains filtered or unexported fields
}

func (*WidevinePsshData) Descriptor deprecated

func (*WidevinePsshData) Descriptor() ([]byte, []int)

Deprecated: Use WidevinePsshData.ProtoReflect.Descriptor instead.

func (*WidevinePsshData) GetAlgorithm

func (x *WidevinePsshData) GetAlgorithm() WidevinePsshData_Algorithm

func (*WidevinePsshData) GetContentId

func (x *WidevinePsshData) GetContentId() []byte

func (*WidevinePsshData) GetCryptoPeriodIndex

func (x *WidevinePsshData) GetCryptoPeriodIndex() uint32

func (*WidevinePsshData) GetGroupedLicense

func (x *WidevinePsshData) GetGroupedLicense() []byte

func (*WidevinePsshData) GetKeyId

func (x *WidevinePsshData) GetKeyId() [][]byte

func (*WidevinePsshData) GetPolicy

func (x *WidevinePsshData) GetPolicy() string

func (*WidevinePsshData) GetProtectionScheme

func (x *WidevinePsshData) GetProtectionScheme() uint32

func (*WidevinePsshData) GetProvider

func (x *WidevinePsshData) GetProvider() string

func (*WidevinePsshData) ProtoMessage

func (*WidevinePsshData) ProtoMessage()

func (*WidevinePsshData) ProtoReflect

func (x *WidevinePsshData) ProtoReflect() protoreflect.Message

func (*WidevinePsshData) Reset

func (x *WidevinePsshData) Reset()

func (*WidevinePsshData) String

func (x *WidevinePsshData) String() string

type WidevinePsshData_Algorithm

type WidevinePsshData_Algorithm int32
const (
	WidevinePsshData_UNENCRYPTED WidevinePsshData_Algorithm = 0
	WidevinePsshData_AESCTR      WidevinePsshData_Algorithm = 1
)

func (WidevinePsshData_Algorithm) Descriptor

func (WidevinePsshData_Algorithm) Enum

func (WidevinePsshData_Algorithm) EnumDescriptor deprecated

func (WidevinePsshData_Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use WidevinePsshData_Algorithm.Descriptor instead.

func (WidevinePsshData_Algorithm) Number

func (WidevinePsshData_Algorithm) String

func (WidevinePsshData_Algorithm) Type

func (*WidevinePsshData_Algorithm) UnmarshalJSON deprecated

func (x *WidevinePsshData_Algorithm) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL