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

package capabilities

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

Package capabilities is for allow websites to make an optimal decision when picking media content for the user by expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.

Index

Package Files

capabilities.go doc.go

type AudioConfiguration Uses

type AudioConfiguration struct {
    ContentType string
    Channels    string
    Bitrate     int
    Samplerate  uint
}

dictionary: AudioConfiguration

func AudioConfigurationFromJS Uses

func AudioConfigurationFromJS(value js.Wrapper) *AudioConfiguration

AudioConfigurationFromJS is allocating a new AudioConfiguration object and copy all values from input javascript object

func (*AudioConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaCapabilities Uses

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

class: MediaCapabilities

func MediaCapabilitiesFromJS Uses

func MediaCapabilitiesFromJS(value js.Wrapper) *MediaCapabilities

MediaCapabilitiesFromJS is casting a js.Wrapper into MediaCapabilities.

func (*MediaCapabilities) DecodingInfo Uses

func (_this *MediaCapabilities) DecodingInfo(configuration *MediaDecodingConfiguration) (_result *PromiseMediaCapabilitiesDecodingInfo)

func (*MediaCapabilities) EncodingInfo Uses

func (_this *MediaCapabilities) EncodingInfo(configuration *MediaEncodingConfiguration) (_result *PromiseMediaCapabilitiesInfo)

func (*MediaCapabilities) JSValue Uses

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

type MediaCapabilitiesDecodingInfo Uses

type MediaCapabilitiesDecodingInfo struct {
    Supported       bool
    Smooth          bool
    PowerEfficient  bool
    KeySystemAccess *encrypted.MediaKeySystemAccess
}

dictionary: MediaCapabilitiesDecodingInfo

func MediaCapabilitiesDecodingInfoFromJS Uses

func MediaCapabilitiesDecodingInfoFromJS(value js.Wrapper) *MediaCapabilitiesDecodingInfo

MediaCapabilitiesDecodingInfoFromJS is allocating a new MediaCapabilitiesDecodingInfo object and copy all values from input javascript object

func (*MediaCapabilitiesDecodingInfo) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaCapabilitiesInfo Uses

type MediaCapabilitiesInfo struct {
    Supported      bool
    Smooth         bool
    PowerEfficient bool
}

dictionary: MediaCapabilitiesInfo

func MediaCapabilitiesInfoFromJS Uses

func MediaCapabilitiesInfoFromJS(value js.Wrapper) *MediaCapabilitiesInfo

MediaCapabilitiesInfoFromJS is allocating a new MediaCapabilitiesInfo object and copy all values from input javascript object

func (*MediaCapabilitiesInfo) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaCapabilitiesKeySystemConfiguration Uses

type MediaCapabilitiesKeySystemConfiguration struct {
    KeySystem             string
    InitDataType          string
    AudioRobustness       string
    VideoRobustness       string
    DistinctiveIdentifier encrypted.MediaKeysRequirement
    PersistentState       encrypted.MediaKeysRequirement
    SessionTypes          []string
}

dictionary: MediaCapabilitiesKeySystemConfiguration

func MediaCapabilitiesKeySystemConfigurationFromJS Uses

func MediaCapabilitiesKeySystemConfigurationFromJS(value js.Wrapper) *MediaCapabilitiesKeySystemConfiguration

MediaCapabilitiesKeySystemConfigurationFromJS is allocating a new MediaCapabilitiesKeySystemConfiguration object and copy all values from input javascript object

func (*MediaCapabilitiesKeySystemConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaConfiguration Uses

type MediaConfiguration struct {
    Video *VideoConfiguration
    Audio *AudioConfiguration
}

dictionary: MediaConfiguration

func MediaConfigurationFromJS Uses

func MediaConfigurationFromJS(value js.Wrapper) *MediaConfiguration

MediaConfigurationFromJS is allocating a new MediaConfiguration object and copy all values from input javascript object

func (*MediaConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaDecodingConfiguration Uses

type MediaDecodingConfiguration struct {
    Video                  *VideoConfiguration
    Audio                  *AudioConfiguration
    Type                   MediaDecodingType
    KeySystemConfiguration *MediaCapabilitiesKeySystemConfiguration
}

dictionary: MediaDecodingConfiguration

func MediaDecodingConfigurationFromJS Uses

func MediaDecodingConfigurationFromJS(value js.Wrapper) *MediaDecodingConfiguration

MediaDecodingConfigurationFromJS is allocating a new MediaDecodingConfiguration object and copy all values from input javascript object

func (*MediaDecodingConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaDecodingType Uses

type MediaDecodingType int

enum: MediaDecodingType

const (
    FileMediaDecodingType MediaDecodingType = iota
    MediaSourceMediaDecodingType
)

func MediaDecodingTypeFromJS Uses

func MediaDecodingTypeFromJS(value js.Value) MediaDecodingType

MediaDecodingTypeFromJS is converting a javascript value into a MediaDecodingType enum value.

func (*MediaDecodingType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (MediaDecodingType) Value Uses

func (this MediaDecodingType) Value() string

Value is converting this into javascript defined string value

type MediaEncodingConfiguration Uses

type MediaEncodingConfiguration struct {
    Video *VideoConfiguration
    Audio *AudioConfiguration
    Type  MediaEncodingType
}

dictionary: MediaEncodingConfiguration

func MediaEncodingConfigurationFromJS Uses

func MediaEncodingConfigurationFromJS(value js.Wrapper) *MediaEncodingConfiguration

MediaEncodingConfigurationFromJS is allocating a new MediaEncodingConfiguration object and copy all values from input javascript object

func (*MediaEncodingConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaEncodingType Uses

type MediaEncodingType int

enum: MediaEncodingType

const (
    RecordMediaEncodingType MediaEncodingType = iota
    TransmissionMediaEncodingType
)

func MediaEncodingTypeFromJS Uses

func MediaEncodingTypeFromJS(value js.Value) MediaEncodingType

MediaEncodingTypeFromJS is converting a javascript value into a MediaEncodingType enum value.

func (*MediaEncodingType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (MediaEncodingType) Value Uses

func (this MediaEncodingType) Value() string

Value is converting this into javascript defined string value

type PromiseMediaCapabilitiesDecodingInfo Uses

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

class: Promise

func PromiseMediaCapabilitiesDecodingInfoFromJS Uses

func PromiseMediaCapabilitiesDecodingInfoFromJS(value js.Wrapper) *PromiseMediaCapabilitiesDecodingInfo

PromiseMediaCapabilitiesDecodingInfoFromJS is casting a js.Wrapper into PromiseMediaCapabilitiesDecodingInfo.

func (*PromiseMediaCapabilitiesDecodingInfo) Catch Uses

func (_this *PromiseMediaCapabilitiesDecodingInfo) Catch(onRejected *PromiseMediaCapabilitiesDecodingInfoOnRejected) (_result *PromiseMediaCapabilitiesDecodingInfo)

func (*PromiseMediaCapabilitiesDecodingInfo) Finally Uses

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

func (*PromiseMediaCapabilitiesDecodingInfo) JSValue Uses

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

func (*PromiseMediaCapabilitiesDecodingInfo) Then Uses

func (_this *PromiseMediaCapabilitiesDecodingInfo) Then(onFulfilled *PromiseMediaCapabilitiesDecodingInfoOnFulfilled, onRejected *PromiseMediaCapabilitiesDecodingInfoOnRejected) (_result *PromiseMediaCapabilitiesDecodingInfo)

type PromiseMediaCapabilitiesDecodingInfoOnFulfilled Uses

type PromiseMediaCapabilitiesDecodingInfoOnFulfilled js.Func

PromiseMediaCapabilitiesDecodingInfoOnFulfilled is a javascript function type.

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

func PromiseMediaCapabilitiesDecodingInfoOnFulfilledToJS Uses

func PromiseMediaCapabilitiesDecodingInfoOnFulfilledToJS(callback PromiseMediaCapabilitiesDecodingInfoOnFulfilledFunc) *PromiseMediaCapabilitiesDecodingInfoOnFulfilled

type PromiseMediaCapabilitiesDecodingInfoOnFulfilledFunc Uses

type PromiseMediaCapabilitiesDecodingInfoOnFulfilledFunc func(value *MediaCapabilitiesDecodingInfo)

callback: PromiseTemplateOnFulfilled

func PromiseMediaCapabilitiesDecodingInfoOnFulfilledFromJS Uses

func PromiseMediaCapabilitiesDecodingInfoOnFulfilledFromJS(_value js.Value) PromiseMediaCapabilitiesDecodingInfoOnFulfilledFunc

type PromiseMediaCapabilitiesDecodingInfoOnRejected Uses

type PromiseMediaCapabilitiesDecodingInfoOnRejected js.Func

PromiseMediaCapabilitiesDecodingInfoOnRejected is a javascript function type.

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

func PromiseMediaCapabilitiesDecodingInfoOnRejectedToJS Uses

func PromiseMediaCapabilitiesDecodingInfoOnRejectedToJS(callback PromiseMediaCapabilitiesDecodingInfoOnRejectedFunc) *PromiseMediaCapabilitiesDecodingInfoOnRejected

type PromiseMediaCapabilitiesDecodingInfoOnRejectedFunc Uses

type PromiseMediaCapabilitiesDecodingInfoOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseMediaCapabilitiesDecodingInfoOnRejectedFromJS Uses

func PromiseMediaCapabilitiesDecodingInfoOnRejectedFromJS(_value js.Value) PromiseMediaCapabilitiesDecodingInfoOnRejectedFunc

type PromiseMediaCapabilitiesInfo Uses

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

class: Promise

func PromiseMediaCapabilitiesInfoFromJS Uses

func PromiseMediaCapabilitiesInfoFromJS(value js.Wrapper) *PromiseMediaCapabilitiesInfo

PromiseMediaCapabilitiesInfoFromJS is casting a js.Wrapper into PromiseMediaCapabilitiesInfo.

func (*PromiseMediaCapabilitiesInfo) Catch Uses

func (_this *PromiseMediaCapabilitiesInfo) Catch(onRejected *PromiseMediaCapabilitiesInfoOnRejected) (_result *PromiseMediaCapabilitiesInfo)

func (*PromiseMediaCapabilitiesInfo) Finally Uses

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

func (*PromiseMediaCapabilitiesInfo) JSValue Uses

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

func (*PromiseMediaCapabilitiesInfo) Then Uses

func (_this *PromiseMediaCapabilitiesInfo) Then(onFulfilled *PromiseMediaCapabilitiesInfoOnFulfilled, onRejected *PromiseMediaCapabilitiesInfoOnRejected) (_result *PromiseMediaCapabilitiesInfo)

type PromiseMediaCapabilitiesInfoOnFulfilled Uses

type PromiseMediaCapabilitiesInfoOnFulfilled js.Func

PromiseMediaCapabilitiesInfoOnFulfilled is a javascript function type.

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

func PromiseMediaCapabilitiesInfoOnFulfilledToJS Uses

func PromiseMediaCapabilitiesInfoOnFulfilledToJS(callback PromiseMediaCapabilitiesInfoOnFulfilledFunc) *PromiseMediaCapabilitiesInfoOnFulfilled

type PromiseMediaCapabilitiesInfoOnFulfilledFunc Uses

type PromiseMediaCapabilitiesInfoOnFulfilledFunc func(value *MediaCapabilitiesInfo)

callback: PromiseTemplateOnFulfilled

func PromiseMediaCapabilitiesInfoOnFulfilledFromJS Uses

func PromiseMediaCapabilitiesInfoOnFulfilledFromJS(_value js.Value) PromiseMediaCapabilitiesInfoOnFulfilledFunc

type PromiseMediaCapabilitiesInfoOnRejected Uses

type PromiseMediaCapabilitiesInfoOnRejected js.Func

PromiseMediaCapabilitiesInfoOnRejected is a javascript function type.

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

func PromiseMediaCapabilitiesInfoOnRejectedToJS Uses

func PromiseMediaCapabilitiesInfoOnRejectedToJS(callback PromiseMediaCapabilitiesInfoOnRejectedFunc) *PromiseMediaCapabilitiesInfoOnRejected

type PromiseMediaCapabilitiesInfoOnRejectedFunc Uses

type PromiseMediaCapabilitiesInfoOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseMediaCapabilitiesInfoOnRejectedFromJS Uses

func PromiseMediaCapabilitiesInfoOnRejectedFromJS(_value js.Value) PromiseMediaCapabilitiesInfoOnRejectedFunc

type ScreenColorGamut Uses

type ScreenColorGamut int

enum: ScreenColorGamut

const (
    SrgbScreenColorGamut ScreenColorGamut = iota
    P3ScreenColorGamut
    Rec2020ScreenColorGamut
)

func ScreenColorGamutFromJS Uses

func ScreenColorGamutFromJS(value js.Value) ScreenColorGamut

ScreenColorGamutFromJS is converting a javascript value into a ScreenColorGamut enum value.

func (*ScreenColorGamut) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (ScreenColorGamut) Value Uses

func (this ScreenColorGamut) Value() string

Value is converting this into javascript defined string value

type ScreenLuminance Uses

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

class: ScreenLuminance

func ScreenLuminanceFromJS Uses

func ScreenLuminanceFromJS(value js.Wrapper) *ScreenLuminance

ScreenLuminanceFromJS is casting a js.Wrapper into ScreenLuminance.

func (*ScreenLuminance) JSValue Uses

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

func (*ScreenLuminance) Max Uses

func (_this *ScreenLuminance) Max() float64

Max returning attribute 'max' with type float64 (idl: double).

func (*ScreenLuminance) MaxAverage Uses

func (_this *ScreenLuminance) MaxAverage() float64

MaxAverage returning attribute 'maxAverage' with type float64 (idl: double).

func (*ScreenLuminance) Min Uses

func (_this *ScreenLuminance) Min() float64

Min returning attribute 'min' with type float64 (idl: double).

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

type VideoConfiguration Uses

type VideoConfiguration struct {
    ContentType string
    Width       uint
    Height      uint
    Bitrate     int
    Framerate   string
}

dictionary: VideoConfiguration

func VideoConfigurationFromJS Uses

func VideoConfigurationFromJS(value js.Wrapper) *VideoConfiguration

VideoConfigurationFromJS is allocating a new VideoConfiguration object and copy all values from input javascript object

func (*VideoConfiguration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

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