webapi: github.com/gowebapi/webapi/media/encrypted Index | Files

package encrypted

import "github.com/gowebapi/webapi/media/encrypted"

Package encrypted is control playback of encrypted content.

Index

Package Files

doc.go encrypted.go

type MediaEncryptedEvent Uses

type MediaEncryptedEvent struct {
    domcore.Event
}

class: MediaEncryptedEvent

func MediaEncryptedEventFromJS Uses

func MediaEncryptedEventFromJS(value js.Wrapper) *MediaEncryptedEvent

MediaEncryptedEventFromJS is casting a js.Wrapper into MediaEncryptedEvent.

func NewMediaEncryptedEvent Uses

func NewMediaEncryptedEvent(_type string, eventInitDict *MediaEncryptedEventInit) (_result *MediaEncryptedEvent)

func (*MediaEncryptedEvent) InitData Uses

func (_this *MediaEncryptedEvent) InitData() *javascript.ArrayBuffer

InitData returning attribute 'initData' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*MediaEncryptedEvent) InitDataType Uses

func (_this *MediaEncryptedEvent) InitDataType() string

InitDataType returning attribute 'initDataType' with type string (idl: DOMString).

type MediaEncryptedEventInit Uses

type MediaEncryptedEventInit struct {
    Bubbles      bool
    Cancelable   bool
    Composed     bool
    InitDataType string
    InitData     *javascript.ArrayBuffer
}

dictionary: MediaEncryptedEventInit

func MediaEncryptedEventInitFromJS Uses

func MediaEncryptedEventInitFromJS(value js.Wrapper) *MediaEncryptedEventInit

MediaEncryptedEventInitFromJS is allocating a new MediaEncryptedEventInit object and copy all values from input javascript object

func (*MediaEncryptedEventInit) JSValue Uses

func (_this *MediaEncryptedEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeyMessageEvent Uses

type MediaKeyMessageEvent struct {
    domcore.Event
}

class: MediaKeyMessageEvent

func MediaKeyMessageEventFromJS Uses

func MediaKeyMessageEventFromJS(value js.Wrapper) *MediaKeyMessageEvent

MediaKeyMessageEventFromJS is casting a js.Wrapper into MediaKeyMessageEvent.

func NewMediaKeyMessageEvent Uses

func NewMediaKeyMessageEvent(_type string, eventInitDict *MediaKeyMessageEventInit) (_result *MediaKeyMessageEvent)

func (*MediaKeyMessageEvent) Message Uses

func (_this *MediaKeyMessageEvent) Message() *javascript.ArrayBuffer

Message returning attribute 'message' with type javascript.ArrayBuffer (idl: ArrayBuffer).

func (*MediaKeyMessageEvent) MessageType Uses

func (_this *MediaKeyMessageEvent) MessageType() MediaKeyMessageType

MessageType returning attribute 'messageType' with type MediaKeyMessageType (idl: MediaKeyMessageType).

type MediaKeyMessageEventInit Uses

type MediaKeyMessageEventInit struct {
    Bubbles     bool
    Cancelable  bool
    Composed    bool
    MessageType MediaKeyMessageType
    Message     *javascript.ArrayBuffer
}

dictionary: MediaKeyMessageEventInit

func MediaKeyMessageEventInitFromJS Uses

func MediaKeyMessageEventInitFromJS(value js.Wrapper) *MediaKeyMessageEventInit

MediaKeyMessageEventInitFromJS is allocating a new MediaKeyMessageEventInit object and copy all values from input javascript object

func (*MediaKeyMessageEventInit) JSValue Uses

func (_this *MediaKeyMessageEventInit) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeyMessageType Uses

type MediaKeyMessageType int

enum: MediaKeyMessageType

const (
    LicenseRequestMediaKeyMessageType MediaKeyMessageType = iota
    LicenseRenewalMediaKeyMessageType
    LicenseReleaseMediaKeyMessageType
    IndividualizationRequestMediaKeyMessageType
)

func MediaKeyMessageTypeFromJS Uses

func MediaKeyMessageTypeFromJS(value js.Value) MediaKeyMessageType

MediaKeyMessageTypeFromJS is converting a javascript value into a MediaKeyMessageType enum value.

func (*MediaKeyMessageType) JSValue Uses

func (this *MediaKeyMessageType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (MediaKeyMessageType) Value Uses

func (this MediaKeyMessageType) Value() string

Value is converting this into javascript defined string value

type MediaKeySession Uses

type MediaKeySession struct {
    domcore.EventTarget
}

class: MediaKeySession

func MediaKeySessionFromJS Uses

func MediaKeySessionFromJS(value js.Wrapper) *MediaKeySession

MediaKeySessionFromJS is casting a js.Wrapper into MediaKeySession.

func (*MediaKeySession) AddEventKeyStatusesChange Uses

func (_this *MediaKeySession) AddEventKeyStatusesChange(listener func(event *domcore.Event, currentTarget *MediaKeySession)) js.Func

AddKeyStatusesChange is adding doing AddEventListener for 'KeyStatusesChange' on target. This method is returning allocated javascript function that need to be released.

func (*MediaKeySession) AddEventMessage Uses

func (_this *MediaKeySession) AddEventMessage(listener func(event *MediaKeyMessageEvent, currentTarget *MediaKeySession)) js.Func

AddMessage is adding doing AddEventListener for 'Message' on target. This method is returning allocated javascript function that need to be released.

func (*MediaKeySession) Close Uses

func (_this *MediaKeySession) Close() (_result *javascript.PromiseVoid)

func (*MediaKeySession) Closed Uses

func (_this *MediaKeySession) Closed() *javascript.Promise

Closed returning attribute 'closed' with type javascript.Promise (idl: Promise).

func (*MediaKeySession) Expiration Uses

func (_this *MediaKeySession) Expiration() float64

Expiration returning attribute 'expiration' with type float64 (idl: unrestricted double).

func (*MediaKeySession) GenerateRequest Uses

func (_this *MediaKeySession) GenerateRequest(initDataType string, initData *Union) (_result *javascript.PromiseVoid)

func (*MediaKeySession) KeyStatuses Uses

func (_this *MediaKeySession) KeyStatuses() *MediaKeyStatusMap

KeyStatuses returning attribute 'keyStatuses' with type MediaKeyStatusMap (idl: MediaKeyStatusMap).

func (*MediaKeySession) Load Uses

func (_this *MediaKeySession) Load(sessionId string) (_result *javascript.PromiseBool)

func (*MediaKeySession) OnKeyStatusesChange Uses

func (_this *MediaKeySession) OnKeyStatusesChange() domcore.EventHandlerFunc

OnKeyStatusesChange returning attribute 'onkeystatuseschange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaKeySession) OnMessage Uses

func (_this *MediaKeySession) OnMessage() domcore.EventHandlerFunc

OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaKeySession) Remove Uses

func (_this *MediaKeySession) Remove() (_result *javascript.PromiseVoid)

func (*MediaKeySession) SessionId Uses

func (_this *MediaKeySession) SessionId() string

SessionId returning attribute 'sessionId' with type string (idl: DOMString).

func (*MediaKeySession) SetOnKeyStatusesChange Uses

func (_this *MediaKeySession) SetOnKeyStatusesChange(listener func(event *domcore.Event, currentTarget *MediaKeySession)) js.Func

SetOnKeyStatusesChange is assigning a function to 'onkeystatuseschange'. This This method is returning allocated javascript function that need to be released.

func (*MediaKeySession) SetOnMessage Uses

func (_this *MediaKeySession) SetOnMessage(listener func(event *MediaKeyMessageEvent, currentTarget *MediaKeySession)) js.Func

SetOnMessage is assigning a function to 'onmessage'. This This method is returning allocated javascript function that need to be released.

func (*MediaKeySession) Update Uses

func (_this *MediaKeySession) Update(response *Union) (_result *javascript.PromiseVoid)

type MediaKeySessionType Uses

type MediaKeySessionType int

enum: MediaKeySessionType

const (
    TemporaryMediaKeySessionType MediaKeySessionType = iota
    PersistentLicenseMediaKeySessionType
)

func MediaKeySessionTypeFromJS Uses

func MediaKeySessionTypeFromJS(value js.Value) MediaKeySessionType

MediaKeySessionTypeFromJS is converting a javascript value into a MediaKeySessionType enum value.

func (*MediaKeySessionType) JSValue Uses

func (this *MediaKeySessionType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (MediaKeySessionType) Value Uses

func (this MediaKeySessionType) Value() string

Value is converting this into javascript defined string value

type MediaKeyStatus Uses

type MediaKeyStatus int

enum: MediaKeyStatus

const (
    UsableMediaKeyStatus MediaKeyStatus = iota
    ExpiredMediaKeyStatus
    ReleasedMediaKeyStatus
    OutputRestrictedMediaKeyStatus
    OutputDownscaledMediaKeyStatus
    StatusPendingMediaKeyStatus
    InternalErrorMediaKeyStatus
)

func MediaKeyStatusFromJS Uses

func MediaKeyStatusFromJS(value js.Value) MediaKeyStatus

MediaKeyStatusFromJS is converting a javascript value into a MediaKeyStatus enum value.

func (*MediaKeyStatus) JSValue Uses

func (this *MediaKeyStatus) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (MediaKeyStatus) Value Uses

func (this MediaKeyStatus) Value() string

Value is converting this into javascript defined string value

type MediaKeyStatusMap Uses

type MediaKeyStatusMap struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeyStatusMap

func MediaKeyStatusMapFromJS Uses

func MediaKeyStatusMapFromJS(value js.Wrapper) *MediaKeyStatusMap

MediaKeyStatusMapFromJS is casting a js.Wrapper into MediaKeyStatusMap.

func (*MediaKeyStatusMap) Entries Uses

func (_this *MediaKeyStatusMap) Entries() (_result *MediaKeyStatusMapEntryIterator)

func (*MediaKeyStatusMap) ForEach Uses

func (_this *MediaKeyStatusMap) ForEach(callback *MediaKeyStatusMapForEach, optionalThisForCallbackArgument interface{})

func (*MediaKeyStatusMap) Get Uses

func (_this *MediaKeyStatusMap) Get(keyId *Union) (_result js.Value)

func (*MediaKeyStatusMap) Has Uses

func (_this *MediaKeyStatusMap) Has(keyId *Union) (_result bool)

func (*MediaKeyStatusMap) JSValue Uses

func (_this *MediaKeyStatusMap) JSValue() js.Value

func (*MediaKeyStatusMap) Keys Uses

func (_this *MediaKeyStatusMap) Keys() (_result *MediaKeyStatusMapKeyIterator)

func (*MediaKeyStatusMap) Size Uses

func (_this *MediaKeyStatusMap) Size() uint

Size returning attribute 'size' with type uint (idl: unsigned long).

func (*MediaKeyStatusMap) Values Uses

func (_this *MediaKeyStatusMap) Values() (_result *MediaKeyStatusMapValueIterator)

type MediaKeyStatusMapEntryIterator Uses

type MediaKeyStatusMapEntryIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeyStatusMapEntryIterator

func MediaKeyStatusMapEntryIteratorFromJS Uses

func MediaKeyStatusMapEntryIteratorFromJS(value js.Wrapper) *MediaKeyStatusMapEntryIterator

MediaKeyStatusMapEntryIteratorFromJS is casting a js.Wrapper into MediaKeyStatusMapEntryIterator.

func (*MediaKeyStatusMapEntryIterator) JSValue Uses

func (_this *MediaKeyStatusMapEntryIterator) JSValue() js.Value

func (*MediaKeyStatusMapEntryIterator) Next Uses

func (_this *MediaKeyStatusMapEntryIterator) Next() (_result *MediaKeyStatusMapEntryIteratorValue)

type MediaKeyStatusMapEntryIteratorValue Uses

type MediaKeyStatusMapEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: MediaKeyStatusMapEntryIteratorValue

func MediaKeyStatusMapEntryIteratorValueFromJS Uses

func MediaKeyStatusMapEntryIteratorValueFromJS(value js.Wrapper) *MediaKeyStatusMapEntryIteratorValue

MediaKeyStatusMapEntryIteratorValueFromJS is allocating a new MediaKeyStatusMapEntryIteratorValue object and copy all values from input javascript object

func (*MediaKeyStatusMapEntryIteratorValue) JSValue Uses

func (_this *MediaKeyStatusMapEntryIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeyStatusMapForEach Uses

type MediaKeyStatusMapForEach js.Func

MediaKeyStatusMapForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func MediaKeyStatusMapForEachToJS Uses

func MediaKeyStatusMapForEachToJS(callback MediaKeyStatusMapForEachFunc) *MediaKeyStatusMapForEach

type MediaKeyStatusMapForEachFunc Uses

type MediaKeyStatusMapForEachFunc func(currentValue MediaKeyStatus, currentIndex int, listObj *MediaKeyStatusMap)

callback: MediaKeyStatusMapForEach

func MediaKeyStatusMapForEachFromJS Uses

func MediaKeyStatusMapForEachFromJS(_value js.Value) MediaKeyStatusMapForEachFunc

type MediaKeyStatusMapKeyIterator Uses

type MediaKeyStatusMapKeyIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeyStatusMapKeyIterator

func MediaKeyStatusMapKeyIteratorFromJS Uses

func MediaKeyStatusMapKeyIteratorFromJS(value js.Wrapper) *MediaKeyStatusMapKeyIterator

MediaKeyStatusMapKeyIteratorFromJS is casting a js.Wrapper into MediaKeyStatusMapKeyIterator.

func (*MediaKeyStatusMapKeyIterator) JSValue Uses

func (_this *MediaKeyStatusMapKeyIterator) JSValue() js.Value

func (*MediaKeyStatusMapKeyIterator) Next Uses

func (_this *MediaKeyStatusMapKeyIterator) Next() (_result *MediaKeyStatusMapKeyIteratorValue)

type MediaKeyStatusMapKeyIteratorValue Uses

type MediaKeyStatusMapKeyIteratorValue struct {
    Value *Union
    Done  bool
}

dictionary: MediaKeyStatusMapKeyIteratorValue

func MediaKeyStatusMapKeyIteratorValueFromJS Uses

func MediaKeyStatusMapKeyIteratorValueFromJS(value js.Wrapper) *MediaKeyStatusMapKeyIteratorValue

MediaKeyStatusMapKeyIteratorValueFromJS is allocating a new MediaKeyStatusMapKeyIteratorValue object and copy all values from input javascript object

func (*MediaKeyStatusMapKeyIteratorValue) JSValue Uses

func (_this *MediaKeyStatusMapKeyIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeyStatusMapValueIterator Uses

type MediaKeyStatusMapValueIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeyStatusMapValueIterator

func MediaKeyStatusMapValueIteratorFromJS Uses

func MediaKeyStatusMapValueIteratorFromJS(value js.Wrapper) *MediaKeyStatusMapValueIterator

MediaKeyStatusMapValueIteratorFromJS is casting a js.Wrapper into MediaKeyStatusMapValueIterator.

func (*MediaKeyStatusMapValueIterator) JSValue Uses

func (_this *MediaKeyStatusMapValueIterator) JSValue() js.Value

func (*MediaKeyStatusMapValueIterator) Next Uses

func (_this *MediaKeyStatusMapValueIterator) Next() (_result *MediaKeyStatusMapValueIteratorValue)

type MediaKeyStatusMapValueIteratorValue Uses

type MediaKeyStatusMapValueIteratorValue struct {
    Value MediaKeyStatus
    Done  bool
}

dictionary: MediaKeyStatusMapValueIteratorValue

func MediaKeyStatusMapValueIteratorValueFromJS Uses

func MediaKeyStatusMapValueIteratorValueFromJS(value js.Wrapper) *MediaKeyStatusMapValueIteratorValue

MediaKeyStatusMapValueIteratorValueFromJS is allocating a new MediaKeyStatusMapValueIteratorValue object and copy all values from input javascript object

func (*MediaKeyStatusMapValueIteratorValue) JSValue Uses

func (_this *MediaKeyStatusMapValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeySystemAccess Uses

type MediaKeySystemAccess struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeySystemAccess

func MediaKeySystemAccessFromJS Uses

func MediaKeySystemAccessFromJS(value js.Wrapper) *MediaKeySystemAccess

MediaKeySystemAccessFromJS is casting a js.Wrapper into MediaKeySystemAccess.

func (*MediaKeySystemAccess) CreateMediaKeys Uses

func (_this *MediaKeySystemAccess) CreateMediaKeys() (_result *PromiseMediaKeys)

func (*MediaKeySystemAccess) GetConfiguration Uses

func (_this *MediaKeySystemAccess) GetConfiguration() (_result *MediaKeySystemConfiguration)

func (*MediaKeySystemAccess) JSValue Uses

func (_this *MediaKeySystemAccess) JSValue() js.Value

func (*MediaKeySystemAccess) KeySystem Uses

func (_this *MediaKeySystemAccess) KeySystem() string

KeySystem returning attribute 'keySystem' with type string (idl: DOMString).

type MediaKeySystemConfiguration Uses

type MediaKeySystemConfiguration struct {
    Label                 string
    InitDataTypes         []string
    AudioCapabilities     []*MediaKeySystemMediaCapability
    VideoCapabilities     []*MediaKeySystemMediaCapability
    DistinctiveIdentifier MediaKeysRequirement
    PersistentState       MediaKeysRequirement
    SessionTypes          []string
}

dictionary: MediaKeySystemConfiguration

func MediaKeySystemConfigurationFromJS Uses

func MediaKeySystemConfigurationFromJS(value js.Wrapper) *MediaKeySystemConfiguration

MediaKeySystemConfigurationFromJS is allocating a new MediaKeySystemConfiguration object and copy all values from input javascript object

func (*MediaKeySystemConfiguration) JSValue Uses

func (_this *MediaKeySystemConfiguration) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeySystemMediaCapability Uses

type MediaKeySystemMediaCapability struct {
    ContentType string
    Robustness  string
}

dictionary: MediaKeySystemMediaCapability

func MediaKeySystemMediaCapabilityFromJS Uses

func MediaKeySystemMediaCapabilityFromJS(value js.Wrapper) *MediaKeySystemMediaCapability

MediaKeySystemMediaCapabilityFromJS is allocating a new MediaKeySystemMediaCapability object and copy all values from input javascript object

func (*MediaKeySystemMediaCapability) JSValue Uses

func (_this *MediaKeySystemMediaCapability) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type MediaKeys Uses

type MediaKeys struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: MediaKeys

func MediaKeysFromJS Uses

func MediaKeysFromJS(value js.Wrapper) *MediaKeys

MediaKeysFromJS is casting a js.Wrapper into MediaKeys.

func (*MediaKeys) CreateSession Uses

func (_this *MediaKeys) CreateSession(sessionType *MediaKeySessionType) (_result *MediaKeySession)

func (*MediaKeys) JSValue Uses

func (_this *MediaKeys) JSValue() js.Value

func (*MediaKeys) SetServerCertificate Uses

func (_this *MediaKeys) SetServerCertificate(serverCertificate *Union) (_result *javascript.PromiseBool)

type MediaKeysRequirement Uses

type MediaKeysRequirement int

enum: MediaKeysRequirement

const (
    RequiredMediaKeysRequirement MediaKeysRequirement = iota
    OptionalMediaKeysRequirement
    NotAllowedMediaKeysRequirement
)

func MediaKeysRequirementFromJS Uses

func MediaKeysRequirementFromJS(value js.Value) MediaKeysRequirement

MediaKeysRequirementFromJS is converting a javascript value into a MediaKeysRequirement enum value.

func (*MediaKeysRequirement) JSValue Uses

func (this *MediaKeysRequirement) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (MediaKeysRequirement) Value Uses

func (this MediaKeysRequirement) Value() string

Value is converting this into javascript defined string value

type PromiseMediaKeySystemAccess Uses

type PromiseMediaKeySystemAccess struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseMediaKeySystemAccessFromJS Uses

func PromiseMediaKeySystemAccessFromJS(value js.Wrapper) *PromiseMediaKeySystemAccess

PromiseMediaKeySystemAccessFromJS is casting a js.Wrapper into PromiseMediaKeySystemAccess.

func (*PromiseMediaKeySystemAccess) Catch Uses

func (_this *PromiseMediaKeySystemAccess) Catch(onRejected *PromiseMediaKeySystemAccessOnRejected) (_result *PromiseMediaKeySystemAccess)

func (*PromiseMediaKeySystemAccess) Finally Uses

func (_this *PromiseMediaKeySystemAccess) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseMediaKeySystemAccess)

func (*PromiseMediaKeySystemAccess) JSValue Uses

func (_this *PromiseMediaKeySystemAccess) JSValue() js.Value

func (*PromiseMediaKeySystemAccess) Then Uses

func (_this *PromiseMediaKeySystemAccess) Then(onFulfilled *PromiseMediaKeySystemAccessOnFulfilled, onRejected *PromiseMediaKeySystemAccessOnRejected) (_result *PromiseMediaKeySystemAccess)

type PromiseMediaKeySystemAccessOnFulfilled Uses

type PromiseMediaKeySystemAccessOnFulfilled js.Func

PromiseMediaKeySystemAccessOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseMediaKeySystemAccessOnFulfilledToJS Uses

func PromiseMediaKeySystemAccessOnFulfilledToJS(callback PromiseMediaKeySystemAccessOnFulfilledFunc) *PromiseMediaKeySystemAccessOnFulfilled

type PromiseMediaKeySystemAccessOnFulfilledFunc Uses

type PromiseMediaKeySystemAccessOnFulfilledFunc func(value *MediaKeySystemAccess)

callback: PromiseTemplateOnFulfilled

func PromiseMediaKeySystemAccessOnFulfilledFromJS Uses

func PromiseMediaKeySystemAccessOnFulfilledFromJS(_value js.Value) PromiseMediaKeySystemAccessOnFulfilledFunc

type PromiseMediaKeySystemAccessOnRejected Uses

type PromiseMediaKeySystemAccessOnRejected js.Func

PromiseMediaKeySystemAccessOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseMediaKeySystemAccessOnRejectedToJS Uses

func PromiseMediaKeySystemAccessOnRejectedToJS(callback PromiseMediaKeySystemAccessOnRejectedFunc) *PromiseMediaKeySystemAccessOnRejected

type PromiseMediaKeySystemAccessOnRejectedFunc Uses

type PromiseMediaKeySystemAccessOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseMediaKeySystemAccessOnRejectedFromJS Uses

func PromiseMediaKeySystemAccessOnRejectedFromJS(_value js.Value) PromiseMediaKeySystemAccessOnRejectedFunc

type PromiseMediaKeys Uses

type PromiseMediaKeys struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseMediaKeysFromJS Uses

func PromiseMediaKeysFromJS(value js.Wrapper) *PromiseMediaKeys

PromiseMediaKeysFromJS is casting a js.Wrapper into PromiseMediaKeys.

func (*PromiseMediaKeys) Catch Uses

func (_this *PromiseMediaKeys) Catch(onRejected *PromiseMediaKeysOnRejected) (_result *PromiseMediaKeys)

func (*PromiseMediaKeys) Finally Uses

func (_this *PromiseMediaKeys) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseMediaKeys)

func (*PromiseMediaKeys) JSValue Uses

func (_this *PromiseMediaKeys) JSValue() js.Value

func (*PromiseMediaKeys) Then Uses

func (_this *PromiseMediaKeys) Then(onFulfilled *PromiseMediaKeysOnFulfilled, onRejected *PromiseMediaKeysOnRejected) (_result *PromiseMediaKeys)

type PromiseMediaKeysOnFulfilled Uses

type PromiseMediaKeysOnFulfilled js.Func

PromiseMediaKeysOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseMediaKeysOnFulfilledToJS Uses

func PromiseMediaKeysOnFulfilledToJS(callback PromiseMediaKeysOnFulfilledFunc) *PromiseMediaKeysOnFulfilled

type PromiseMediaKeysOnFulfilledFunc Uses

type PromiseMediaKeysOnFulfilledFunc func(value *MediaKeys)

callback: PromiseTemplateOnFulfilled

func PromiseMediaKeysOnFulfilledFromJS Uses

func PromiseMediaKeysOnFulfilledFromJS(_value js.Value) PromiseMediaKeysOnFulfilledFunc

type PromiseMediaKeysOnRejected Uses

type PromiseMediaKeysOnRejected js.Func

PromiseMediaKeysOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseMediaKeysOnRejectedToJS Uses

func PromiseMediaKeysOnRejectedToJS(callback PromiseMediaKeysOnRejectedFunc) *PromiseMediaKeysOnRejected

type PromiseMediaKeysOnRejectedFunc Uses

type PromiseMediaKeysOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseMediaKeysOnRejectedFromJS Uses

func PromiseMediaKeysOnRejectedFromJS(_value js.Value) PromiseMediaKeysOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package encrypted imports 3 packages (graph) and is imported by 3 packages. Updated 2019-09-21. Refresh now. Tools for package owners.