proto

package
v0.0.0-...-f3729a5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

WidevineCencHeader.proto

It has these top-level messages:

WidevineCencHeader

Index

Constants

This section is empty.

Variables

View Source
var WidevineCencHeader_Algorithm_name = map[int32]string{
	0: "UNENCRYPTED",
	1: "AESCTR",
}
View Source
var WidevineCencHeader_Algorithm_value = map[string]int32{
	"UNENCRYPTED": 0,
	"AESCTR":      1,
}

Functions

This section is empty.

Types

type WidevineCencHeader

type WidevineCencHeader struct {
	Algorithm *WidevineCencHeader_Algorithm `protobuf:"varint,1,opt,name=algorithm,enum=proto.WidevineCencHeader_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, specificed by content provider.
	ContentId []byte `protobuf:"bytes,4,opt,name=content_id,json=contentId" json:"content_id,omitempty"`
	// Track type. Acceptable values are SD, HD, and AUDIO. Used to
	// differentiate content keys used by an asset.
	TrackTypeDeprecated *string `protobuf:"bytes,5,opt,name=track_type_deprecated,json=trackTypeDeprecated" json:"track_type_deprecated,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"`
	// Optional. For media using key rotation, this represents the duration
	// of each crypto period in seconds.
	CryptoPeriodSeconds *uint32 `protobuf:"varint,10,opt,name=crypto_period_seconds,json=cryptoPeriodSeconds" json:"crypto_period_seconds,omitempty"`
	XXX_unrecognized    []byte  `json:"-"`
}

func (*WidevineCencHeader) Descriptor

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

func (*WidevineCencHeader) GetAlgorithm

func (*WidevineCencHeader) GetContentId

func (m *WidevineCencHeader) GetContentId() []byte

func (*WidevineCencHeader) GetCryptoPeriodIndex

func (m *WidevineCencHeader) GetCryptoPeriodIndex() uint32

func (*WidevineCencHeader) GetCryptoPeriodSeconds

func (m *WidevineCencHeader) GetCryptoPeriodSeconds() uint32

func (*WidevineCencHeader) GetGroupedLicense

func (m *WidevineCencHeader) GetGroupedLicense() []byte

func (*WidevineCencHeader) GetKeyId

func (m *WidevineCencHeader) GetKeyId() [][]byte

func (*WidevineCencHeader) GetPolicy

func (m *WidevineCencHeader) GetPolicy() string

func (*WidevineCencHeader) GetProtectionScheme

func (m *WidevineCencHeader) GetProtectionScheme() uint32

func (*WidevineCencHeader) GetProvider

func (m *WidevineCencHeader) GetProvider() string

func (*WidevineCencHeader) GetTrackTypeDeprecated

func (m *WidevineCencHeader) GetTrackTypeDeprecated() string

func (*WidevineCencHeader) ProtoMessage

func (*WidevineCencHeader) ProtoMessage()

func (*WidevineCencHeader) Reset

func (m *WidevineCencHeader) Reset()

func (*WidevineCencHeader) String

func (m *WidevineCencHeader) String() string

type WidevineCencHeader_Algorithm

type WidevineCencHeader_Algorithm int32
const (
	WidevineCencHeader_UNENCRYPTED WidevineCencHeader_Algorithm = 0
	WidevineCencHeader_AESCTR      WidevineCencHeader_Algorithm = 1
)

func (WidevineCencHeader_Algorithm) Enum

func (WidevineCencHeader_Algorithm) EnumDescriptor

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

func (WidevineCencHeader_Algorithm) String

func (*WidevineCencHeader_Algorithm) UnmarshalJSON

func (x *WidevineCencHeader_Algorithm) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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