local

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 8 Imported by: 8

Documentation

Overview

Package local is for requesting access to local multimedia devices, such as microphones or video cameras.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
}

dictionary: Capabilities

func CapabilitiesFromJS

func CapabilitiesFromJS(value js.Value) *Capabilities

CapabilitiesFromJS is allocating a new Capabilities object and copy all values in the value javascript object.

func (*Capabilities) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ConstrainBooleanParameters

type ConstrainBooleanParameters struct {
	Exact bool
	Ideal bool
}

dictionary: ConstrainBooleanParameters

func ConstrainBooleanParametersFromJS

func ConstrainBooleanParametersFromJS(value js.Value) *ConstrainBooleanParameters

ConstrainBooleanParametersFromJS is allocating a new ConstrainBooleanParameters object and copy all values in the value javascript object.

func (*ConstrainBooleanParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ConstrainDOMStringParameters

type ConstrainDOMStringParameters struct {
	Exact *Union
	Ideal *Union
}

dictionary: ConstrainDOMStringParameters

func ConstrainDOMStringParametersFromJS

func ConstrainDOMStringParametersFromJS(value js.Value) *ConstrainDOMStringParameters

ConstrainDOMStringParametersFromJS is allocating a new ConstrainDOMStringParameters object and copy all values in the value javascript object.

func (*ConstrainDOMStringParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ConstrainDoubleRange

type ConstrainDoubleRange struct {
	Max   float64
	Min   float64
	Exact float64
	Ideal float64
}

dictionary: ConstrainDoubleRange

func ConstrainDoubleRangeFromJS

func ConstrainDoubleRangeFromJS(value js.Value) *ConstrainDoubleRange

ConstrainDoubleRangeFromJS is allocating a new ConstrainDoubleRange object and copy all values in the value javascript object.

func (*ConstrainDoubleRange) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ConstrainULongRange

type ConstrainULongRange struct {
	Max   uint
	Min   uint
	Exact uint
	Ideal uint
}

dictionary: ConstrainULongRange

func ConstrainULongRangeFromJS

func ConstrainULongRangeFromJS(value js.Value) *ConstrainULongRange

ConstrainULongRangeFromJS is allocating a new ConstrainULongRange object and copy all values in the value javascript object.

func (*ConstrainULongRange) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ConstrainablePattern

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

class: ConstrainablePattern

func ConstrainablePatternFromJS

func ConstrainablePatternFromJS(value js.Value) *ConstrainablePattern

ConstrainablePatternFromJS is casting a js.Value into ConstrainablePattern.

func ConstrainablePatternFromWrapper

func ConstrainablePatternFromWrapper(input core.Wrapper) *ConstrainablePattern

ConstrainablePatternFromJS is casting from something that holds a js.Value into ConstrainablePattern.

func (*ConstrainablePattern) AddEventOverConstrained

func (_this *ConstrainablePattern) AddEventOverConstrained(listener func(event *domcore.Event, currentTarget *ConstrainablePattern)) js.Func

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

func (*ConstrainablePattern) ApplyConstraints

func (_this *ConstrainablePattern) ApplyConstraints(constraints *Constraints) (_result *javascript.PromiseVoid)

func (*ConstrainablePattern) GetCapabilities

func (_this *ConstrainablePattern) GetCapabilities() (_result *Capabilities)

func (*ConstrainablePattern) GetConstraints

func (_this *ConstrainablePattern) GetConstraints() (_result *Constraints)

func (*ConstrainablePattern) GetSettings

func (_this *ConstrainablePattern) GetSettings() (_result *Settings)

func (*ConstrainablePattern) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*ConstrainablePattern) OnOverConstrained

func (_this *ConstrainablePattern) OnOverConstrained() domcore.EventHandlerFunc

OnOverConstrained returning attribute 'onoverconstrained' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ConstrainablePattern) SetOnOverConstrained

func (_this *ConstrainablePattern) SetOnOverConstrained(listener func(event *domcore.Event, currentTarget *ConstrainablePattern)) js.Func

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

type ConstraintSet

type ConstraintSet struct {
}

dictionary: ConstraintSet

func ConstraintSetFromJS

func ConstraintSetFromJS(value js.Value) *ConstraintSet

ConstraintSetFromJS is allocating a new ConstraintSet object and copy all values in the value javascript object.

func (*ConstraintSet) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Constraints

type Constraints struct {
	Advanced []*ConstraintSet
}

dictionary: Constraints

func ConstraintsFromJS

func ConstraintsFromJS(value js.Value) *Constraints

ConstraintsFromJS is allocating a new Constraints object and copy all values in the value javascript object.

func (*Constraints) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DoubleRange

type DoubleRange struct {
	Max float64
	Min float64
}

dictionary: DoubleRange

func DoubleRangeFromJS

func DoubleRangeFromJS(value js.Value) *DoubleRange

DoubleRangeFromJS is allocating a new DoubleRange object and copy all values in the value javascript object.

func (*DoubleRange) JSValue

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

JSValue is allocating a new javascript object and copy all values

type InputDeviceInfo

type InputDeviceInfo struct {
	MediaDeviceInfo
}

class: InputDeviceInfo

func InputDeviceInfoFromJS

func InputDeviceInfoFromJS(value js.Value) *InputDeviceInfo

InputDeviceInfoFromJS is casting a js.Value into InputDeviceInfo.

func InputDeviceInfoFromWrapper

func InputDeviceInfoFromWrapper(input core.Wrapper) *InputDeviceInfo

InputDeviceInfoFromJS is casting from something that holds a js.Value into InputDeviceInfo.

func (*InputDeviceInfo) GetCapabilities

func (_this *InputDeviceInfo) GetCapabilities() (_result *MediaTrackCapabilities)

type MediaDeviceInfo

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

class: MediaDeviceInfo

func MediaDeviceInfoFromJS

func MediaDeviceInfoFromJS(value js.Value) *MediaDeviceInfo

MediaDeviceInfoFromJS is casting a js.Value into MediaDeviceInfo.

func MediaDeviceInfoFromWrapper

func MediaDeviceInfoFromWrapper(input core.Wrapper) *MediaDeviceInfo

MediaDeviceInfoFromJS is casting from something that holds a js.Value into MediaDeviceInfo.

func (*MediaDeviceInfo) DeviceId

func (_this *MediaDeviceInfo) DeviceId() string

DeviceId returning attribute 'deviceId' with type string (idl: DOMString).

func (*MediaDeviceInfo) GroupId

func (_this *MediaDeviceInfo) GroupId() string

GroupId returning attribute 'groupId' with type string (idl: DOMString).

func (*MediaDeviceInfo) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*MediaDeviceInfo) Kind

func (_this *MediaDeviceInfo) Kind() MediaDeviceKind

Kind returning attribute 'kind' with type MediaDeviceKind (idl: MediaDeviceKind).

func (*MediaDeviceInfo) Label

func (_this *MediaDeviceInfo) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*MediaDeviceInfo) ToJSON

func (_this *MediaDeviceInfo) ToJSON() (_result *javascript.Object)

type MediaDeviceKind

type MediaDeviceKind int

enum: MediaDeviceKind

const (
	AudioinputMediaDeviceKind MediaDeviceKind = iota
	AudiooutputMediaDeviceKind
	VideoinputMediaDeviceKind
)

func MediaDeviceKindFromJS

func MediaDeviceKindFromJS(value js.Value) MediaDeviceKind

MediaDeviceKindFromJS is converting a javascript value into a MediaDeviceKind enum value.

func (*MediaDeviceKind) JSValue

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

JSValue is converting this enum into a javascript object

func (MediaDeviceKind) Value

func (this MediaDeviceKind) Value() string

Value is converting this into javascript defined string value

type MediaDevices

type MediaDevices struct {
	domcore.EventTarget
}

class: MediaDevices

func MediaDevicesFromJS

func MediaDevicesFromJS(value js.Value) *MediaDevices

MediaDevicesFromJS is casting a js.Value into MediaDevices.

func MediaDevicesFromWrapper

func MediaDevicesFromWrapper(input core.Wrapper) *MediaDevices

MediaDevicesFromJS is casting from something that holds a js.Value into MediaDevices.

func (*MediaDevices) AddEventDeviceChange

func (_this *MediaDevices) AddEventDeviceChange(listener func(event *domcore.Event, currentTarget *MediaDevices)) js.Func

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

func (*MediaDevices) EnumerateDevices

func (_this *MediaDevices) EnumerateDevices() (_result *PromiseSequenceMediaDeviceInfo)

func (*MediaDevices) GetDisplayMedia

func (_this *MediaDevices) GetDisplayMedia(constraints *screen.DisplayMediaStreamConstraints) (_result *PromiseMediaStream)

func (*MediaDevices) GetSupportedConstraints

func (_this *MediaDevices) GetSupportedConstraints() (_result *MediaTrackSupportedConstraints)

func (*MediaDevices) GetUserMedia

func (_this *MediaDevices) GetUserMedia(constraints *MediaStreamConstraints) (_result *PromiseMediaStream)

func (*MediaDevices) OnDeviceChange

func (_this *MediaDevices) OnDeviceChange() domcore.EventHandlerFunc

OnDeviceChange returning attribute 'ondevicechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaDevices) SetOnDeviceChange

func (_this *MediaDevices) SetOnDeviceChange(listener func(event *domcore.Event, currentTarget *MediaDevices)) js.Func

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

type MediaStream

type MediaStream struct {
	domcore.EventTarget
}

class: MediaStream

func MediaStreamFromJS

func MediaStreamFromJS(value js.Value) *MediaStream

MediaStreamFromJS is casting a js.Value into MediaStream.

func MediaStreamFromWrapper

func MediaStreamFromWrapper(input core.Wrapper) *MediaStream

MediaStreamFromJS is casting from something that holds a js.Value into MediaStream.

func NewMediaStream

func NewMediaStream(tracks []*MediaStreamTrack) (_result *MediaStream)

func (*MediaStream) Active

func (_this *MediaStream) Active() bool

Active returning attribute 'active' with type bool (idl: boolean).

func (*MediaStream) AddEventAddTrack

func (_this *MediaStream) AddEventAddTrack(listener func(event *MediaStreamTrackEvent, currentTarget *MediaStream)) js.Func

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

func (*MediaStream) AddEventRemoveTrack

func (_this *MediaStream) AddEventRemoveTrack(listener func(event *MediaStreamTrackEvent, currentTarget *MediaStream)) js.Func

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

func (*MediaStream) AddTrack

func (_this *MediaStream) AddTrack(track *MediaStreamTrack)

func (*MediaStream) Clone

func (_this *MediaStream) Clone() (_result *MediaStream)

func (*MediaStream) GetAudioTracks

func (_this *MediaStream) GetAudioTracks() (_result []*MediaStreamTrack)

func (*MediaStream) GetTrackById

func (_this *MediaStream) GetTrackById(trackId string) (_result *MediaStreamTrack)

func (*MediaStream) GetTracks

func (_this *MediaStream) GetTracks() (_result []*MediaStreamTrack)

func (*MediaStream) GetVideoTracks

func (_this *MediaStream) GetVideoTracks() (_result []*MediaStreamTrack)

func (*MediaStream) Id

func (_this *MediaStream) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*MediaStream) OnAddTrack

func (_this *MediaStream) OnAddTrack() domcore.EventHandlerFunc

OnAddTrack returning attribute 'onaddtrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStream) OnRemoveTrack

func (_this *MediaStream) OnRemoveTrack() domcore.EventHandlerFunc

OnRemoveTrack returning attribute 'onremovetrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStream) RemoveTrack

func (_this *MediaStream) RemoveTrack(track *MediaStreamTrack)

func (*MediaStream) SetOnAddTrack

func (_this *MediaStream) SetOnAddTrack(listener func(event *MediaStreamTrackEvent, currentTarget *MediaStream)) js.Func

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

func (*MediaStream) SetOnRemoveTrack

func (_this *MediaStream) SetOnRemoveTrack(listener func(event *MediaStreamTrackEvent, currentTarget *MediaStream)) js.Func

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

type MediaStreamConstraints

type MediaStreamConstraints struct {
	Video *Union
	Audio *Union
}

dictionary: MediaStreamConstraints

func MediaStreamConstraintsFromJS

func MediaStreamConstraintsFromJS(value js.Value) *MediaStreamConstraints

MediaStreamConstraintsFromJS is allocating a new MediaStreamConstraints object and copy all values in the value javascript object.

func (*MediaStreamConstraints) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaStreamTrack

type MediaStreamTrack struct {
	domcore.EventTarget
}

class: MediaStreamTrack

func MediaStreamTrackFromJS

func MediaStreamTrackFromJS(value js.Value) *MediaStreamTrack

MediaStreamTrackFromJS is casting a js.Value into MediaStreamTrack.

func MediaStreamTrackFromWrapper

func MediaStreamTrackFromWrapper(input core.Wrapper) *MediaStreamTrack

MediaStreamTrackFromJS is casting from something that holds a js.Value into MediaStreamTrack.

func (*MediaStreamTrack) AddEventEnded

func (_this *MediaStreamTrack) AddEventEnded(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) AddEventMute

func (_this *MediaStreamTrack) AddEventMute(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) AddEventOverConstrained

func (_this *MediaStreamTrack) AddEventOverConstrained(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) AddEventUnmute

func (_this *MediaStreamTrack) AddEventUnmute(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) ApplyConstraints

func (_this *MediaStreamTrack) ApplyConstraints(constraints *MediaTrackConstraints) (_result *javascript.PromiseVoid)

func (*MediaStreamTrack) Clone

func (_this *MediaStreamTrack) Clone() (_result *MediaStreamTrack)

func (*MediaStreamTrack) ContentHint

func (_this *MediaStreamTrack) ContentHint() string

ContentHint returning attribute 'contentHint' with type string (idl: DOMString).

func (*MediaStreamTrack) Enabled

func (_this *MediaStreamTrack) Enabled() bool

Enabled returning attribute 'enabled' with type bool (idl: boolean).

func (*MediaStreamTrack) GetCapabilities

func (_this *MediaStreamTrack) GetCapabilities() (_result *MediaTrackCapabilities)

func (*MediaStreamTrack) GetConstraints

func (_this *MediaStreamTrack) GetConstraints() (_result *MediaTrackConstraints)

func (*MediaStreamTrack) GetSettings

func (_this *MediaStreamTrack) GetSettings() (_result *MediaTrackSettings)

func (*MediaStreamTrack) Id

func (_this *MediaStreamTrack) Id() string

Id returning attribute 'id' with type string (idl: DOMString).

func (*MediaStreamTrack) Kind

func (_this *MediaStreamTrack) Kind() string

Kind returning attribute 'kind' with type string (idl: DOMString).

func (*MediaStreamTrack) Label

func (_this *MediaStreamTrack) Label() string

Label returning attribute 'label' with type string (idl: DOMString).

func (*MediaStreamTrack) Muted

func (_this *MediaStreamTrack) Muted() bool

Muted returning attribute 'muted' with type bool (idl: boolean).

func (*MediaStreamTrack) OnEnded

func (_this *MediaStreamTrack) OnEnded() domcore.EventHandlerFunc

OnEnded returning attribute 'onended' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStreamTrack) OnMute

func (_this *MediaStreamTrack) OnMute() domcore.EventHandlerFunc

OnMute returning attribute 'onmute' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStreamTrack) OnOverConstrained

func (_this *MediaStreamTrack) OnOverConstrained() domcore.EventHandlerFunc

OnOverConstrained returning attribute 'onoverconstrained' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStreamTrack) OnUnmute

func (_this *MediaStreamTrack) OnUnmute() domcore.EventHandlerFunc

OnUnmute returning attribute 'onunmute' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaStreamTrack) ReadyState

func (_this *MediaStreamTrack) ReadyState() MediaStreamTrackState

ReadyState returning attribute 'readyState' with type MediaStreamTrackState (idl: MediaStreamTrackState).

func (*MediaStreamTrack) SetContentHint

func (_this *MediaStreamTrack) SetContentHint(value string)

SetContentHint setting attribute 'contentHint' with type string (idl: DOMString).

func (*MediaStreamTrack) SetEnabled

func (_this *MediaStreamTrack) SetEnabled(value bool)

SetEnabled setting attribute 'enabled' with type bool (idl: boolean).

func (*MediaStreamTrack) SetOnEnded

func (_this *MediaStreamTrack) SetOnEnded(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) SetOnMute

func (_this *MediaStreamTrack) SetOnMute(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) SetOnOverConstrained

func (_this *MediaStreamTrack) SetOnOverConstrained(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) SetOnUnmute

func (_this *MediaStreamTrack) SetOnUnmute(listener func(event *domcore.Event, currentTarget *MediaStreamTrack)) js.Func

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

func (*MediaStreamTrack) Stop

func (_this *MediaStreamTrack) Stop()

type MediaStreamTrackEvent

type MediaStreamTrackEvent struct {
	domcore.Event
}

class: MediaStreamTrackEvent

func MediaStreamTrackEventFromJS

func MediaStreamTrackEventFromJS(value js.Value) *MediaStreamTrackEvent

MediaStreamTrackEventFromJS is casting a js.Value into MediaStreamTrackEvent.

func MediaStreamTrackEventFromWrapper

func MediaStreamTrackEventFromWrapper(input core.Wrapper) *MediaStreamTrackEvent

MediaStreamTrackEventFromJS is casting from something that holds a js.Value into MediaStreamTrackEvent.

func NewMediaStreamTrackEvent

func NewMediaStreamTrackEvent(_type string, eventInitDict *MediaStreamTrackEventInit) (_result *MediaStreamTrackEvent)

func (*MediaStreamTrackEvent) Track

func (_this *MediaStreamTrackEvent) Track() *MediaStreamTrack

Track returning attribute 'track' with type MediaStreamTrack (idl: MediaStreamTrack).

type MediaStreamTrackEventInit

type MediaStreamTrackEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Track      *MediaStreamTrack
}

dictionary: MediaStreamTrackEventInit

func MediaStreamTrackEventInitFromJS

func MediaStreamTrackEventInitFromJS(value js.Value) *MediaStreamTrackEventInit

MediaStreamTrackEventInitFromJS is allocating a new MediaStreamTrackEventInit object and copy all values in the value javascript object.

func (*MediaStreamTrackEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaStreamTrackState

type MediaStreamTrackState int

enum: MediaStreamTrackState

const (
	LiveMediaStreamTrackState MediaStreamTrackState = iota
	EndedMediaStreamTrackState
)

func MediaStreamTrackStateFromJS

func MediaStreamTrackStateFromJS(value js.Value) MediaStreamTrackState

MediaStreamTrackStateFromJS is converting a javascript value into a MediaStreamTrackState enum value.

func (*MediaStreamTrackState) JSValue

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

JSValue is converting this enum into a javascript object

func (MediaStreamTrackState) Value

func (this MediaStreamTrackState) Value() string

Value is converting this into javascript defined string value

type MediaTrackCapabilities

type MediaTrackCapabilities struct {
	Width                              *ULongRange
	Height                             *ULongRange
	AspectRatio                        *DoubleRange
	FrameRate                          *DoubleRange
	FacingMode                         []string
	ResizeMode                         []string
	Volume                             *DoubleRange
	SampleRate                         *ULongRange
	SampleSize                         *ULongRange
	EchoCancellation                   []bool
	AutoGainControl                    []bool
	NoiseSuppression                   []bool
	Latency                            *DoubleRange
	ChannelCount                       *ULongRange
	DeviceId                           string
	GroupId                            string
	WhiteBalanceMode                   []string
	ExposureMode                       []string
	FocusMode                          []string
	ExposureCompensation               *mediatype.MediaSettingsRange
	ExposureTime                       *mediatype.MediaSettingsRange
	ColorTemperature                   *mediatype.MediaSettingsRange
	Iso                                *mediatype.MediaSettingsRange
	Brightness                         *mediatype.MediaSettingsRange
	Contrast                           *mediatype.MediaSettingsRange
	Saturation                         *mediatype.MediaSettingsRange
	Sharpness                          *mediatype.MediaSettingsRange
	FocusDistance                      *mediatype.MediaSettingsRange
	Zoom                               *mediatype.MediaSettingsRange
	Torch                              bool
	VideoKind                          string
	FocalLengthX                       *Union
	FocalLengthY                       *Union
	PrincipalPointX                    *Union
	PrincipalPointY                    *Union
	DeprojectionDistortionCoefficients bool
	ProjectionDistortionCoefficients   bool
	DepthNear                          *Union
	DepthFar                           *Union
	DepthToVideoTransform              bool
}

dictionary: MediaTrackCapabilities

func MediaTrackCapabilitiesFromJS

func MediaTrackCapabilitiesFromJS(value js.Value) *MediaTrackCapabilities

MediaTrackCapabilitiesFromJS is allocating a new MediaTrackCapabilities object and copy all values in the value javascript object.

func (*MediaTrackCapabilities) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaTrackConstraintSet

type MediaTrackConstraintSet struct {
	Width                              *Union
	Height                             *Union
	AspectRatio                        *Union
	FrameRate                          *Union
	FacingMode                         *Union
	ResizeMode                         *Union
	Volume                             *Union
	SampleRate                         *Union
	SampleSize                         *Union
	EchoCancellation                   *Union
	AutoGainControl                    *Union
	NoiseSuppression                   *Union
	Latency                            *Union
	ChannelCount                       *Union
	DeviceId                           *Union
	GroupId                            *Union
	WhiteBalanceMode                   *Union
	ExposureMode                       *Union
	FocusMode                          *Union
	PointsOfInterest                   *Union
	ExposureCompensation               *Union
	ExposureTime                       *Union
	ColorTemperature                   *Union
	Iso                                *Union
	Brightness                         *Union
	Contrast                           *Union
	Saturation                         *Union
	Sharpness                          *Union
	FocusDistance                      *Union
	Zoom                               *Union
	Torch                              *Union
	VideoKind                          *Union
	FocalLengthX                       *Union
	FocalLengthY                       *Union
	PrincipalPointX                    *Union
	PrincipalPointY                    *Union
	DeprojectionDistortionCoefficients *Union
	ProjectionDistortionCoefficients   *Union
	DepthNear                          *Union
	DepthFar                           *Union
	DepthToVideoTransform              *Union
	DisplaySurface                     *Union
	LogicalSurface                     *Union
	Cursor                             *Union
}

dictionary: MediaTrackConstraintSet

func MediaTrackConstraintSetFromJS

func MediaTrackConstraintSetFromJS(value js.Value) *MediaTrackConstraintSet

MediaTrackConstraintSetFromJS is allocating a new MediaTrackConstraintSet object and copy all values in the value javascript object.

func (*MediaTrackConstraintSet) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaTrackConstraints

type MediaTrackConstraints struct {
	Width                              *Union
	Height                             *Union
	AspectRatio                        *Union
	FrameRate                          *Union
	FacingMode                         *Union
	ResizeMode                         *Union
	Volume                             *Union
	SampleRate                         *Union
	SampleSize                         *Union
	EchoCancellation                   *Union
	AutoGainControl                    *Union
	NoiseSuppression                   *Union
	Latency                            *Union
	ChannelCount                       *Union
	DeviceId                           *Union
	GroupId                            *Union
	WhiteBalanceMode                   *Union
	ExposureMode                       *Union
	FocusMode                          *Union
	PointsOfInterest                   *Union
	ExposureCompensation               *Union
	ExposureTime                       *Union
	ColorTemperature                   *Union
	Iso                                *Union
	Brightness                         *Union
	Contrast                           *Union
	Saturation                         *Union
	Sharpness                          *Union
	FocusDistance                      *Union
	Zoom                               *Union
	Torch                              *Union
	VideoKind                          *Union
	FocalLengthX                       *Union
	FocalLengthY                       *Union
	PrincipalPointX                    *Union
	PrincipalPointY                    *Union
	DeprojectionDistortionCoefficients *Union
	ProjectionDistortionCoefficients   *Union
	DepthNear                          *Union
	DepthFar                           *Union
	DepthToVideoTransform              *Union
	DisplaySurface                     *Union
	LogicalSurface                     *Union
	Cursor                             *Union
	Advanced                           []*MediaTrackConstraintSet
}

dictionary: MediaTrackConstraints

func MediaTrackConstraintsFromJS

func MediaTrackConstraintsFromJS(value js.Value) *MediaTrackConstraints

MediaTrackConstraintsFromJS is allocating a new MediaTrackConstraints object and copy all values in the value javascript object.

func (*MediaTrackConstraints) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaTrackSettings

type MediaTrackSettings struct {
	Width                              int
	Height                             int
	AspectRatio                        float64
	FrameRate                          float64
	FacingMode                         string
	ResizeMode                         string
	Volume                             float64
	SampleRate                         int
	SampleSize                         int
	EchoCancellation                   bool
	AutoGainControl                    bool
	NoiseSuppression                   bool
	Latency                            float64
	ChannelCount                       int
	DeviceId                           string
	GroupId                            string
	WhiteBalanceMode                   string
	ExposureMode                       string
	FocusMode                          string
	PointsOfInterest                   []*mediatype.Point2D
	ExposureCompensation               float64
	ExposureTime                       float64
	ColorTemperature                   float64
	Iso                                float64
	Brightness                         float64
	Contrast                           float64
	Saturation                         float64
	Sharpness                          float64
	FocusDistance                      float64
	Zoom                               float64
	Torch                              bool
	VideoKind                          string
	FocalLengthX                       float64
	FocalLengthY                       float64
	PrincipalPointX                    float64
	PrincipalPointY                    float64
	DeprojectionDistortionCoefficients *depth.DistortionCoefficients
	ProjectionDistortionCoefficients   *depth.DistortionCoefficients
	DepthNear                          float64
	DepthFar                           float64
	DepthToVideoTransform              *depth.Transformation
	DisplaySurface                     string
	LogicalSurface                     bool
	Cursor                             string
}

dictionary: MediaTrackSettings

func MediaTrackSettingsFromJS

func MediaTrackSettingsFromJS(value js.Value) *MediaTrackSettings

MediaTrackSettingsFromJS is allocating a new MediaTrackSettings object and copy all values in the value javascript object.

func (*MediaTrackSettings) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaTrackSupportedConstraints

type MediaTrackSupportedConstraints struct {
	Width                              bool
	Height                             bool
	AspectRatio                        bool
	FrameRate                          bool
	FacingMode                         bool
	ResizeMode                         bool
	Volume                             bool
	SampleRate                         bool
	SampleSize                         bool
	EchoCancellation                   bool
	AutoGainControl                    bool
	NoiseSuppression                   bool
	Latency                            bool
	ChannelCount                       bool
	DeviceId                           bool
	GroupId                            bool
	WhiteBalanceMode                   bool
	ExposureMode                       bool
	FocusMode                          bool
	PointsOfInterest                   bool
	ExposureCompensation               bool
	ExposureTime                       bool
	ColorTemperature                   bool
	Iso                                bool
	Brightness                         bool
	Contrast                           bool
	Saturation                         bool
	Sharpness                          bool
	FocusDistance                      bool
	Zoom                               bool
	Torch                              bool
	VideoKind                          bool
	FocalLengthX                       bool
	FocalLengthY                       bool
	PrincipalPointX                    bool
	PrincipalPointY                    bool
	DeprojectionDistortionCoefficients bool
	ProjectionDistortionCoefficients   bool
	DepthNear                          bool
	DepthFar                           bool
	DepthToVideoTransform              bool
	DisplaySurface                     bool
	LogicalSurface                     bool
	Cursor                             bool
}

dictionary: MediaTrackSupportedConstraints

func MediaTrackSupportedConstraintsFromJS

func MediaTrackSupportedConstraintsFromJS(value js.Value) *MediaTrackSupportedConstraints

MediaTrackSupportedConstraintsFromJS is allocating a new MediaTrackSupportedConstraints object and copy all values in the value javascript object.

func (*MediaTrackSupportedConstraints) JSValue

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

JSValue is allocating a new javascript object and copy all values

type NavigatorUserMediaErrorCallback js.Func

NavigatorUserMediaErrorCallback is a javascript function type.

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

type NavigatorUserMediaErrorCallbackFunc func(_error *javascript.Object)

callback: NavigatorUserMediaErrorCallback

func NavigatorUserMediaErrorCallbackFromJS(_value js.Value) NavigatorUserMediaErrorCallbackFunc
type NavigatorUserMediaSuccessCallback js.Func

NavigatorUserMediaSuccessCallback is a javascript function type.

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

type NavigatorUserMediaSuccessCallbackFunc func(stream *MediaStream)

callback: NavigatorUserMediaSuccessCallback

func NavigatorUserMediaSuccessCallbackFromJS(_value js.Value) NavigatorUserMediaSuccessCallbackFunc

type OverconstrainedErrorEvent

type OverconstrainedErrorEvent struct {
	domcore.Event
}

class: OverconstrainedErrorEvent

func NewOverconstrainedErrorEvent

func NewOverconstrainedErrorEvent(_type string, eventInitDict *OverconstrainedErrorEventInit) (_result *OverconstrainedErrorEvent)

func OverconstrainedErrorEventFromJS

func OverconstrainedErrorEventFromJS(value js.Value) *OverconstrainedErrorEvent

OverconstrainedErrorEventFromJS is casting a js.Value into OverconstrainedErrorEvent.

func OverconstrainedErrorEventFromWrapper

func OverconstrainedErrorEventFromWrapper(input core.Wrapper) *OverconstrainedErrorEvent

OverconstrainedErrorEventFromJS is casting from something that holds a js.Value into OverconstrainedErrorEvent.

func (*OverconstrainedErrorEvent) Error

Error returning attribute 'error' with type patch.OverconstrainedError (idl: OverconstrainedError).

type OverconstrainedErrorEventInit

type OverconstrainedErrorEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Error      *patch.OverconstrainedError
}

dictionary: OverconstrainedErrorEventInit

func OverconstrainedErrorEventInitFromJS

func OverconstrainedErrorEventInitFromJS(value js.Value) *OverconstrainedErrorEventInit

OverconstrainedErrorEventInitFromJS is allocating a new OverconstrainedErrorEventInit object and copy all values in the value javascript object.

func (*OverconstrainedErrorEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PromiseMediaStream

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

class: Promise

func PromiseMediaStreamFromJS

func PromiseMediaStreamFromJS(value js.Value) *PromiseMediaStream

PromiseMediaStreamFromJS is casting a js.Value into PromiseMediaStream.

func PromiseMediaStreamFromWrapper

func PromiseMediaStreamFromWrapper(input core.Wrapper) *PromiseMediaStream

PromiseMediaStreamFromJS is casting from something that holds a js.Value into PromiseMediaStream.

func (*PromiseMediaStream) Catch

func (_this *PromiseMediaStream) Catch(onRejected *PromiseMediaStreamOnRejected) (_result *PromiseMediaStream)

func (*PromiseMediaStream) Finally

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

func (*PromiseMediaStream) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseMediaStream) Then

func (_this *PromiseMediaStream) Then(onFulfilled *PromiseMediaStreamOnFulfilled, onRejected *PromiseMediaStreamOnRejected) (_result *PromiseMediaStream)

type PromiseMediaStreamOnFulfilled

type PromiseMediaStreamOnFulfilled js.Func

PromiseMediaStreamOnFulfilled is a javascript function type.

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

type PromiseMediaStreamOnFulfilledFunc

type PromiseMediaStreamOnFulfilledFunc func(value *MediaStream)

callback: PromiseTemplateOnFulfilled

func PromiseMediaStreamOnFulfilledFromJS

func PromiseMediaStreamOnFulfilledFromJS(_value js.Value) PromiseMediaStreamOnFulfilledFunc

type PromiseMediaStreamOnRejected

type PromiseMediaStreamOnRejected js.Func

PromiseMediaStreamOnRejected is a javascript function type.

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

type PromiseMediaStreamOnRejectedFunc

type PromiseMediaStreamOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseMediaStreamOnRejectedFromJS

func PromiseMediaStreamOnRejectedFromJS(_value js.Value) PromiseMediaStreamOnRejectedFunc

type PromiseSequenceMediaDeviceInfo

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

class: Promise

func PromiseSequenceMediaDeviceInfoFromJS

func PromiseSequenceMediaDeviceInfoFromJS(value js.Value) *PromiseSequenceMediaDeviceInfo

PromiseSequenceMediaDeviceInfoFromJS is casting a js.Value into PromiseSequenceMediaDeviceInfo.

func PromiseSequenceMediaDeviceInfoFromWrapper

func PromiseSequenceMediaDeviceInfoFromWrapper(input core.Wrapper) *PromiseSequenceMediaDeviceInfo

PromiseSequenceMediaDeviceInfoFromJS is casting from something that holds a js.Value into PromiseSequenceMediaDeviceInfo.

func (*PromiseSequenceMediaDeviceInfo) Catch

func (*PromiseSequenceMediaDeviceInfo) Finally

func (*PromiseSequenceMediaDeviceInfo) JSValue

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

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromiseSequenceMediaDeviceInfo) Then

type PromiseSequenceMediaDeviceInfoOnFulfilled

type PromiseSequenceMediaDeviceInfoOnFulfilled js.Func

PromiseSequenceMediaDeviceInfoOnFulfilled is a javascript function type.

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

type PromiseSequenceMediaDeviceInfoOnFulfilledFunc

type PromiseSequenceMediaDeviceInfoOnFulfilledFunc func(value []*MediaDeviceInfo)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceMediaDeviceInfoOnFulfilledFromJS

func PromiseSequenceMediaDeviceInfoOnFulfilledFromJS(_value js.Value) PromiseSequenceMediaDeviceInfoOnFulfilledFunc

type PromiseSequenceMediaDeviceInfoOnRejected

type PromiseSequenceMediaDeviceInfoOnRejected js.Func

PromiseSequenceMediaDeviceInfoOnRejected is a javascript function type.

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

type PromiseSequenceMediaDeviceInfoOnRejectedFunc

type PromiseSequenceMediaDeviceInfoOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceMediaDeviceInfoOnRejectedFromJS

func PromiseSequenceMediaDeviceInfoOnRejectedFromJS(_value js.Value) PromiseSequenceMediaDeviceInfoOnRejectedFunc

type Settings

type Settings struct {
}

dictionary: Settings

func SettingsFromJS

func SettingsFromJS(value js.Value) *Settings

SettingsFromJS is allocating a new Settings object and copy all values in the value javascript object.

func (*Settings) JSValue

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

JSValue is allocating a new javascript object and copy all values

type ULongRange

type ULongRange struct {
	Max uint
	Min uint
}

dictionary: ULongRange

func ULongRangeFromJS

func ULongRangeFromJS(value js.Value) *ULongRange

ULongRangeFromJS is allocating a new ULongRange object and copy all values in the value javascript object.

func (*ULongRange) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Jump to

Keyboard shortcuts

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