webrtc

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: 1

Documentation

Overview

Package webrtc is to allow media to be sent to and received from another browser or device implementing the appropriate set of real-time protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerOptions

type AnswerOptions struct {
	VoiceActivityDetection bool
}

dictionary: RTCAnswerOptions

func AnswerOptionsFromJS

func AnswerOptionsFromJS(value js.Value) *AnswerOptions

AnswerOptionsFromJS is allocating a new AnswerOptions object and copy all values in the value javascript object.

func (*AnswerOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type BundlePolicy

type BundlePolicy int

enum: RTCBundlePolicy

const (
	BalancedRTCBundlePolicy BundlePolicy = iota
	MaxCompatRTCBundlePolicy
	MaxBundleRTCBundlePolicy
)

func BundlePolicyFromJS

func BundlePolicyFromJS(value js.Value) BundlePolicy

BundlePolicyFromJS is converting a javascript value into a BundlePolicy enum value.

func (*BundlePolicy) JSValue

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

JSValue is converting this enum into a javascript object

func (BundlePolicy) Value

func (this BundlePolicy) Value() string

Value is converting this into javascript defined string value

type Certificate

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

class: RTCCertificate

func CertificateFromJS

func CertificateFromJS(value js.Value) *Certificate

CertificateFromJS is casting a js.Value into Certificate.

func CertificateFromWrapper

func CertificateFromWrapper(input core.Wrapper) *Certificate

CertificateFromJS is casting from something that holds a js.Value into Certificate.

func (*Certificate) Expires

func (_this *Certificate) Expires() int

Expires returning attribute 'expires' with type int (idl: unsigned long long).

func (*Certificate) GetFingerprints

func (_this *Certificate) GetFingerprints() (_result []*DtlsFingerprint)

func (*Certificate) JSValue

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

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

type CertificateExpiration

type CertificateExpiration struct {
	Expires int
}

dictionary: RTCCertificateExpiration

func CertificateExpirationFromJS

func CertificateExpirationFromJS(value js.Value) *CertificateExpiration

CertificateExpirationFromJS is allocating a new CertificateExpiration object and copy all values in the value javascript object.

func (*CertificateExpiration) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Configuration

type Configuration struct {
	IceServers           []*IceServer
	IceTransportPolicy   IceTransportPolicy
	BundlePolicy         BundlePolicy
	RtcpMuxPolicy        RtcpMuxPolicy
	PeerIdentity         string
	Certificates         []*Certificate
	IceCandidatePoolSize int
}

dictionary: RTCConfiguration

func ConfigurationFromJS

func ConfigurationFromJS(value js.Value) *Configuration

ConfigurationFromJS is allocating a new Configuration object and copy all values in the value javascript object.

func (*Configuration) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DTMFSender

type DTMFSender struct {
	domcore.EventTarget
}

class: RTCDTMFSender

func DTMFSenderFromJS

func DTMFSenderFromJS(value js.Value) *DTMFSender

DTMFSenderFromJS is casting a js.Value into DTMFSender.

func DTMFSenderFromWrapper

func DTMFSenderFromWrapper(input core.Wrapper) *DTMFSender

DTMFSenderFromJS is casting from something that holds a js.Value into DTMFSender.

func (*DTMFSender) AddEventToneChange

func (_this *DTMFSender) AddEventToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func

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

func (*DTMFSender) CanInsertDTMF

func (_this *DTMFSender) CanInsertDTMF() bool

CanInsertDTMF returning attribute 'canInsertDTMF' with type bool (idl: boolean).

func (*DTMFSender) InsertDTMF

func (_this *DTMFSender) InsertDTMF(tones string, duration *uint, interToneGap *uint)

func (*DTMFSender) OnToneChange

func (_this *DTMFSender) OnToneChange() domcore.EventHandlerFunc

OnToneChange returning attribute 'ontonechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DTMFSender) SetOnToneChange

func (_this *DTMFSender) SetOnToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func

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

func (*DTMFSender) ToneBuffer

func (_this *DTMFSender) ToneBuffer() string

ToneBuffer returning attribute 'toneBuffer' with type string (idl: DOMString).

type DTMFToneChangeEvent

type DTMFToneChangeEvent struct {
	domcore.Event
}

class: RTCDTMFToneChangeEvent

func DTMFToneChangeEventFromJS

func DTMFToneChangeEventFromJS(value js.Value) *DTMFToneChangeEvent

DTMFToneChangeEventFromJS is casting a js.Value into DTMFToneChangeEvent.

func DTMFToneChangeEventFromWrapper

func DTMFToneChangeEventFromWrapper(input core.Wrapper) *DTMFToneChangeEvent

DTMFToneChangeEventFromJS is casting from something that holds a js.Value into DTMFToneChangeEvent.

func NewRTCDTMFToneChangeEvent

func NewRTCDTMFToneChangeEvent(_type string, eventInitDict *DTMFToneChangeEventInit) (_result *DTMFToneChangeEvent)

func (*DTMFToneChangeEvent) Tone

func (_this *DTMFToneChangeEvent) Tone() string

Tone returning attribute 'tone' with type string (idl: DOMString).

type DTMFToneChangeEventInit

type DTMFToneChangeEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Tone       string
}

dictionary: RTCDTMFToneChangeEventInit

func DTMFToneChangeEventInitFromJS

func DTMFToneChangeEventInitFromJS(value js.Value) *DTMFToneChangeEventInit

DTMFToneChangeEventInitFromJS is allocating a new DTMFToneChangeEventInit object and copy all values in the value javascript object.

func (*DTMFToneChangeEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DataChannel

type DataChannel struct {
	domcore.EventTarget
}

class: RTCDataChannel

func DataChannelFromJS

func DataChannelFromJS(value js.Value) *DataChannel

DataChannelFromJS is casting a js.Value into DataChannel.

func DataChannelFromWrapper

func DataChannelFromWrapper(input core.Wrapper) *DataChannel

DataChannelFromJS is casting from something that holds a js.Value into DataChannel.

func (*DataChannel) AddEventBufferedAmountLow

func (_this *DataChannel) AddEventBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) AddEventClose

func (_this *DataChannel) AddEventClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) AddEventError

func (_this *DataChannel) AddEventError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) AddEventMessage

func (_this *DataChannel) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) AddEventOpen

func (_this *DataChannel) AddEventOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) BinaryType

func (_this *DataChannel) BinaryType() string

BinaryType returning attribute 'binaryType' with type string (idl: DOMString).

func (*DataChannel) BufferedAmount

func (_this *DataChannel) BufferedAmount() uint

BufferedAmount returning attribute 'bufferedAmount' with type uint (idl: unsigned long).

func (*DataChannel) BufferedAmountLowThreshold

func (_this *DataChannel) BufferedAmountLowThreshold() uint

BufferedAmountLowThreshold returning attribute 'bufferedAmountLowThreshold' with type uint (idl: unsigned long).

func (*DataChannel) Close

func (_this *DataChannel) Close()

func (*DataChannel) Id

func (_this *DataChannel) Id() *int

Id returning attribute 'id' with type int (idl: unsigned short).

func (*DataChannel) Label

func (_this *DataChannel) Label() string

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

func (*DataChannel) MaxPacketLifeTime

func (_this *DataChannel) MaxPacketLifeTime() *int

MaxPacketLifeTime returning attribute 'maxPacketLifeTime' with type int (idl: unsigned short).

func (*DataChannel) MaxRetransmits

func (_this *DataChannel) MaxRetransmits() *int

MaxRetransmits returning attribute 'maxRetransmits' with type int (idl: unsigned short).

func (*DataChannel) Negotiated

func (_this *DataChannel) Negotiated() bool

Negotiated returning attribute 'negotiated' with type bool (idl: boolean).

func (*DataChannel) OnBufferedAmountLow

func (_this *DataChannel) OnBufferedAmountLow() domcore.EventHandlerFunc

OnBufferedAmountLow returning attribute 'onbufferedamountlow' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DataChannel) OnClose

func (_this *DataChannel) OnClose() domcore.EventHandlerFunc

OnClose returning attribute 'onclose' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DataChannel) OnError

func (_this *DataChannel) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DataChannel) OnMessage

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

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

func (*DataChannel) OnOpen

func (_this *DataChannel) OnOpen() domcore.EventHandlerFunc

OnOpen returning attribute 'onopen' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DataChannel) Ordered

func (_this *DataChannel) Ordered() bool

Ordered returning attribute 'ordered' with type bool (idl: boolean).

func (*DataChannel) Priority

func (_this *DataChannel) Priority() PriorityType

Priority returning attribute 'priority' with type PriorityType (idl: RTCPriorityType).

func (*DataChannel) Protocol

func (_this *DataChannel) Protocol() string

Protocol returning attribute 'protocol' with type string (idl: USVString).

func (*DataChannel) ReadyState

func (_this *DataChannel) ReadyState() DataChannelState

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

func (*DataChannel) Send

func (_this *DataChannel) Send(data string)

func (*DataChannel) Send2

func (_this *DataChannel) Send2(data *file.Blob)

func (*DataChannel) Send3

func (_this *DataChannel) Send3(data *javascript.ArrayBuffer)

func (*DataChannel) Send4

func (_this *DataChannel) Send4(data *Union)

func (*DataChannel) SetBinaryType

func (_this *DataChannel) SetBinaryType(value string)

SetBinaryType setting attribute 'binaryType' with type string (idl: DOMString).

func (*DataChannel) SetBufferedAmountLowThreshold

func (_this *DataChannel) SetBufferedAmountLowThreshold(value uint)

SetBufferedAmountLowThreshold setting attribute 'bufferedAmountLowThreshold' with type uint (idl: unsigned long).

func (*DataChannel) SetOnBufferedAmountLow

func (_this *DataChannel) SetOnBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) SetOnClose

func (_this *DataChannel) SetOnClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) SetOnError

func (_this *DataChannel) SetOnError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) SetOnMessage

func (_this *DataChannel) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func

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

func (*DataChannel) SetOnOpen

func (_this *DataChannel) SetOnOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func

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

type DataChannelEvent

type DataChannelEvent struct {
	domcore.Event
}

class: RTCDataChannelEvent

func DataChannelEventFromJS

func DataChannelEventFromJS(value js.Value) *DataChannelEvent

DataChannelEventFromJS is casting a js.Value into DataChannelEvent.

func DataChannelEventFromWrapper

func DataChannelEventFromWrapper(input core.Wrapper) *DataChannelEvent

DataChannelEventFromJS is casting from something that holds a js.Value into DataChannelEvent.

func NewRTCDataChannelEvent

func NewRTCDataChannelEvent(_type string, eventInitDict *DataChannelEventInit) (_result *DataChannelEvent)

func (*DataChannelEvent) Channel

func (_this *DataChannelEvent) Channel() *DataChannel

Channel returning attribute 'channel' with type DataChannel (idl: RTCDataChannel).

type DataChannelEventInit

type DataChannelEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Channel    *DataChannel
}

dictionary: RTCDataChannelEventInit

func DataChannelEventInitFromJS

func DataChannelEventInitFromJS(value js.Value) *DataChannelEventInit

DataChannelEventInitFromJS is allocating a new DataChannelEventInit object and copy all values in the value javascript object.

func (*DataChannelEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DataChannelInit

type DataChannelInit struct {
	Ordered           bool
	MaxPacketLifeTime int
	MaxRetransmits    int
	Protocol          string
	Negotiated        bool
	Id                int
	Priority          PriorityType
}

dictionary: RTCDataChannelInit

func DataChannelInitFromJS

func DataChannelInitFromJS(value js.Value) *DataChannelInit

DataChannelInitFromJS is allocating a new DataChannelInit object and copy all values in the value javascript object.

func (*DataChannelInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DataChannelState

type DataChannelState int

enum: RTCDataChannelState

const (
	ConnectingRTCDataChannelState DataChannelState = iota
	OpenRTCDataChannelState
	ClosingRTCDataChannelState
	ClosedRTCDataChannelState
)

func DataChannelStateFromJS

func DataChannelStateFromJS(value js.Value) DataChannelState

DataChannelStateFromJS is converting a javascript value into a DataChannelState enum value.

func (*DataChannelState) JSValue

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

JSValue is converting this enum into a javascript object

func (DataChannelState) Value

func (this DataChannelState) Value() string

Value is converting this into javascript defined string value

type DegradationPreference

type DegradationPreference int

enum: RTCDegradationPreference

const (
	MaintainFramerateRTCDegradationPreference DegradationPreference = iota
	MaintainResolutionRTCDegradationPreference
	BalancedRTCDegradationPreference
)

func DegradationPreferenceFromJS

func DegradationPreferenceFromJS(value js.Value) DegradationPreference

DegradationPreferenceFromJS is converting a javascript value into a DegradationPreference enum value.

func (*DegradationPreference) JSValue

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

JSValue is converting this enum into a javascript object

func (DegradationPreference) Value

func (this DegradationPreference) Value() string

Value is converting this into javascript defined string value

type DtlsFingerprint

type DtlsFingerprint struct {
	Algorithm string
	Value     string
}

dictionary: RTCDtlsFingerprint

func DtlsFingerprintFromJS

func DtlsFingerprintFromJS(value js.Value) *DtlsFingerprint

DtlsFingerprintFromJS is allocating a new DtlsFingerprint object and copy all values in the value javascript object.

func (*DtlsFingerprint) JSValue

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

JSValue is allocating a new javascript object and copy all values

type DtlsTransport

type DtlsTransport struct {
	domcore.EventTarget
}

class: RTCDtlsTransport

func DtlsTransportFromJS

func DtlsTransportFromJS(value js.Value) *DtlsTransport

DtlsTransportFromJS is casting a js.Value into DtlsTransport.

func DtlsTransportFromWrapper

func DtlsTransportFromWrapper(input core.Wrapper) *DtlsTransport

DtlsTransportFromJS is casting from something that holds a js.Value into DtlsTransport.

func (*DtlsTransport) AddEventError

func (_this *DtlsTransport) AddEventError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func

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

func (*DtlsTransport) AddEventStateChange

func (_this *DtlsTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func

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

func (*DtlsTransport) GetRemoteCertificates

func (_this *DtlsTransport) GetRemoteCertificates() (_result []*javascript.ArrayBuffer)

func (*DtlsTransport) IceTransport

func (_this *DtlsTransport) IceTransport() *IceTransport

IceTransport returning attribute 'iceTransport' with type IceTransport (idl: RTCIceTransport).

func (*DtlsTransport) OnError

func (_this *DtlsTransport) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DtlsTransport) OnStateChange

func (_this *DtlsTransport) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*DtlsTransport) SetOnError

func (_this *DtlsTransport) SetOnError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func

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

func (*DtlsTransport) SetOnStateChange

func (_this *DtlsTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func

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

func (*DtlsTransport) State

func (_this *DtlsTransport) State() DtlsTransportState

State returning attribute 'state' with type DtlsTransportState (idl: RTCDtlsTransportState).

type DtlsTransportState

type DtlsTransportState int

enum: RTCDtlsTransportState

const (
	NewRTCDtlsTransportState DtlsTransportState = iota
	ConnectingRTCDtlsTransportState
	ConnectedRTCDtlsTransportState
	ClosedRTCDtlsTransportState
	FailedRTCDtlsTransportState
)

func DtlsTransportStateFromJS

func DtlsTransportStateFromJS(value js.Value) DtlsTransportState

DtlsTransportStateFromJS is converting a javascript value into a DtlsTransportState enum value.

func (*DtlsTransportState) JSValue

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

JSValue is converting this enum into a javascript object

func (DtlsTransportState) Value

func (this DtlsTransportState) Value() string

Value is converting this into javascript defined string value

type DtxStatus

type DtxStatus int

enum: RTCDtxStatus

const (
	DisabledRTCDtxStatus DtxStatus = iota
	EnabledRTCDtxStatus
)

func DtxStatusFromJS

func DtxStatusFromJS(value js.Value) DtxStatus

DtxStatusFromJS is converting a javascript value into a DtxStatus enum value.

func (*DtxStatus) JSValue

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

JSValue is converting this enum into a javascript object

func (DtxStatus) Value

func (this DtxStatus) Value() string

Value is converting this into javascript defined string value

type Error

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

class: RTCError

func ErrorFromJS

func ErrorFromJS(value js.Value) *Error

ErrorFromJS is casting a js.Value into Error.

func ErrorFromWrapper

func ErrorFromWrapper(input core.Wrapper) *Error

ErrorFromJS is casting from something that holds a js.Value into Error.

func (*Error) JSValue

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

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

type ErrorEvent

type ErrorEvent struct {
	domcore.Event
}

class: RTCErrorEvent

func ErrorEventFromJS

func ErrorEventFromJS(value js.Value) *ErrorEvent

ErrorEventFromJS is casting a js.Value into ErrorEvent.

func ErrorEventFromWrapper

func ErrorEventFromWrapper(input core.Wrapper) *ErrorEvent

ErrorEventFromJS is casting from something that holds a js.Value into ErrorEvent.

func NewRTCErrorEvent

func NewRTCErrorEvent(_type string, eventInitDict *ErrorEventInit) (_result *ErrorEvent)

func (*ErrorEvent) Error

func (_this *ErrorEvent) Error() *Error

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

type ErrorEventInit

type ErrorEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Error      *Error
}

dictionary: RTCErrorEventInit

func ErrorEventInitFromJS

func ErrorEventInitFromJS(value js.Value) *ErrorEventInit

ErrorEventInitFromJS is allocating a new ErrorEventInit object and copy all values in the value javascript object.

func (*ErrorEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceCandidate

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

class: RTCIceCandidate

func IceCandidateFromJS

func IceCandidateFromJS(value js.Value) *IceCandidate

IceCandidateFromJS is casting a js.Value into IceCandidate.

func IceCandidateFromWrapper

func IceCandidateFromWrapper(input core.Wrapper) *IceCandidate

IceCandidateFromJS is casting from something that holds a js.Value into IceCandidate.

func NewRTCIceCandidate

func NewRTCIceCandidate(candidateInitDict *IceCandidateInit) (_result *IceCandidate)

func (*IceCandidate) Address

func (_this *IceCandidate) Address() *string

Address returning attribute 'address' with type string (idl: DOMString).

func (*IceCandidate) Candidate

func (_this *IceCandidate) Candidate() string

Candidate returning attribute 'candidate' with type string (idl: DOMString).

func (*IceCandidate) Component

func (_this *IceCandidate) Component() *IceComponent

Component returning attribute 'component' with type IceComponent (idl: RTCIceComponent).

func (*IceCandidate) Foundation

func (_this *IceCandidate) Foundation() *string

Foundation returning attribute 'foundation' with type string (idl: DOMString).

func (*IceCandidate) JSValue

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

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

func (*IceCandidate) Port

func (_this *IceCandidate) Port() *int

Port returning attribute 'port' with type int (idl: unsigned short).

func (*IceCandidate) Priority

func (_this *IceCandidate) Priority() *uint

Priority returning attribute 'priority' with type uint (idl: unsigned long).

func (*IceCandidate) Protocol

func (_this *IceCandidate) Protocol() *IceProtocol

Protocol returning attribute 'protocol' with type IceProtocol (idl: RTCIceProtocol).

func (*IceCandidate) RelatedAddress

func (_this *IceCandidate) RelatedAddress() *string

RelatedAddress returning attribute 'relatedAddress' with type string (idl: DOMString).

func (*IceCandidate) RelatedPort

func (_this *IceCandidate) RelatedPort() *int

RelatedPort returning attribute 'relatedPort' with type int (idl: unsigned short).

func (*IceCandidate) SdpMLineIndex

func (_this *IceCandidate) SdpMLineIndex() *int

SdpMLineIndex returning attribute 'sdpMLineIndex' with type int (idl: unsigned short).

func (*IceCandidate) SdpMid

func (_this *IceCandidate) SdpMid() *string

SdpMid returning attribute 'sdpMid' with type string (idl: DOMString).

func (*IceCandidate) TcpType

func (_this *IceCandidate) TcpType() *IceTcpCandidateType

TcpType returning attribute 'tcpType' with type IceTcpCandidateType (idl: RTCIceTcpCandidateType).

func (*IceCandidate) ToJSON

func (_this *IceCandidate) ToJSON() (_result *IceCandidateInit)

func (*IceCandidate) Type

func (_this *IceCandidate) Type() *IceCandidateType

Type returning attribute 'type' with type IceCandidateType (idl: RTCIceCandidateType).

func (*IceCandidate) UsernameFragment

func (_this *IceCandidate) UsernameFragment() *string

UsernameFragment returning attribute 'usernameFragment' with type string (idl: DOMString).

type IceCandidateInit

type IceCandidateInit struct {
	Candidate        string
	SdpMid           *string
	SdpMLineIndex    *int
	UsernameFragment string
}

dictionary: RTCIceCandidateInit

func IceCandidateInitFromJS

func IceCandidateInitFromJS(value js.Value) *IceCandidateInit

IceCandidateInitFromJS is allocating a new IceCandidateInit object and copy all values in the value javascript object.

func (*IceCandidateInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceCandidatePair

type IceCandidatePair struct {
	Local  *IceCandidate
	Remote *IceCandidate
}

dictionary: RTCIceCandidatePair

func IceCandidatePairFromJS

func IceCandidatePairFromJS(value js.Value) *IceCandidatePair

IceCandidatePairFromJS is allocating a new IceCandidatePair object and copy all values in the value javascript object.

func (*IceCandidatePair) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceCandidateType

type IceCandidateType int

enum: RTCIceCandidateType

const (
	HostRTCIceCandidateType IceCandidateType = iota
	SrflxRTCIceCandidateType
	PrflxRTCIceCandidateType
	RelayRTCIceCandidateType
)

func IceCandidateTypeFromJS

func IceCandidateTypeFromJS(value js.Value) IceCandidateType

IceCandidateTypeFromJS is converting a javascript value into a IceCandidateType enum value.

func (*IceCandidateType) JSValue

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

JSValue is converting this enum into a javascript object

func (IceCandidateType) Value

func (this IceCandidateType) Value() string

Value is converting this into javascript defined string value

type IceComponent

type IceComponent int

enum: RTCIceComponent

const (
	RtpRTCIceComponent IceComponent = iota
	RtcpRTCIceComponent
)

func IceComponentFromJS

func IceComponentFromJS(value js.Value) IceComponent

IceComponentFromJS is converting a javascript value into a IceComponent enum value.

func (*IceComponent) JSValue

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

JSValue is converting this enum into a javascript object

func (IceComponent) Value

func (this IceComponent) Value() string

Value is converting this into javascript defined string value

type IceConnectionState

type IceConnectionState int

enum: RTCIceConnectionState

const (
	ClosedRTCIceConnectionState IceConnectionState = iota
	FailedRTCIceConnectionState
	DisconnectedRTCIceConnectionState
	NewRTCIceConnectionState
	CheckingRTCIceConnectionState
	CompletedRTCIceConnectionState
	ConnectedRTCIceConnectionState
)

func IceConnectionStateFromJS

func IceConnectionStateFromJS(value js.Value) IceConnectionState

IceConnectionStateFromJS is converting a javascript value into a IceConnectionState enum value.

func (*IceConnectionState) JSValue

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

JSValue is converting this enum into a javascript object

func (IceConnectionState) Value

func (this IceConnectionState) Value() string

Value is converting this into javascript defined string value

type IceCredentialType

type IceCredentialType int

enum: RTCIceCredentialType

const (
	PasswordRTCIceCredentialType IceCredentialType = iota
	OauthRTCIceCredentialType
)

func IceCredentialTypeFromJS

func IceCredentialTypeFromJS(value js.Value) IceCredentialType

IceCredentialTypeFromJS is converting a javascript value into a IceCredentialType enum value.

func (*IceCredentialType) JSValue

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

JSValue is converting this enum into a javascript object

func (IceCredentialType) Value

func (this IceCredentialType) Value() string

Value is converting this into javascript defined string value

type IceGathererState

type IceGathererState int

enum: RTCIceGathererState

const (
	NewRTCIceGathererState IceGathererState = iota
	GatheringRTCIceGathererState
	CompleteRTCIceGathererState
)

func IceGathererStateFromJS

func IceGathererStateFromJS(value js.Value) IceGathererState

IceGathererStateFromJS is converting a javascript value into a IceGathererState enum value.

func (*IceGathererState) JSValue

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

JSValue is converting this enum into a javascript object

func (IceGathererState) Value

func (this IceGathererState) Value() string

Value is converting this into javascript defined string value

type IceGatheringState

type IceGatheringState int

enum: RTCIceGatheringState

const (
	NewRTCIceGatheringState IceGatheringState = iota
	GatheringRTCIceGatheringState
	CompleteRTCIceGatheringState
)

func IceGatheringStateFromJS

func IceGatheringStateFromJS(value js.Value) IceGatheringState

IceGatheringStateFromJS is converting a javascript value into a IceGatheringState enum value.

func (*IceGatheringState) JSValue

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

JSValue is converting this enum into a javascript object

func (IceGatheringState) Value

func (this IceGatheringState) Value() string

Value is converting this into javascript defined string value

type IceParameters

type IceParameters struct {
	UsernameFragment string
	Password         string
}

dictionary: RTCIceParameters

func IceParametersFromJS

func IceParametersFromJS(value js.Value) *IceParameters

IceParametersFromJS is allocating a new IceParameters object and copy all values in the value javascript object.

func (*IceParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceProtocol

type IceProtocol int

enum: RTCIceProtocol

const (
	UdpRTCIceProtocol IceProtocol = iota
	TcpRTCIceProtocol
)

func IceProtocolFromJS

func IceProtocolFromJS(value js.Value) IceProtocol

IceProtocolFromJS is converting a javascript value into a IceProtocol enum value.

func (*IceProtocol) JSValue

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

JSValue is converting this enum into a javascript object

func (IceProtocol) Value

func (this IceProtocol) Value() string

Value is converting this into javascript defined string value

type IceRole

type IceRole int

enum: RTCIceRole

const (
	ControllingRTCIceRole IceRole = iota
	ControlledRTCIceRole
)

func IceRoleFromJS

func IceRoleFromJS(value js.Value) IceRole

IceRoleFromJS is converting a javascript value into a IceRole enum value.

func (*IceRole) JSValue

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

JSValue is converting this enum into a javascript object

func (IceRole) Value

func (this IceRole) Value() string

Value is converting this into javascript defined string value

type IceServer

type IceServer struct {
	Urls           *Union
	Username       string
	Credential     *Union
	CredentialType IceCredentialType
}

dictionary: RTCIceServer

func GetDefaultIceServers

func GetDefaultIceServers() (_result []*IceServer)

func IceServerFromJS

func IceServerFromJS(value js.Value) *IceServer

IceServerFromJS is allocating a new IceServer object and copy all values in the value javascript object.

func (*IceServer) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceTcpCandidateType

type IceTcpCandidateType int

enum: RTCIceTcpCandidateType

const (
	ActiveRTCIceTcpCandidateType IceTcpCandidateType = iota
	PassiveRTCIceTcpCandidateType
	SoRTCIceTcpCandidateType
)

func IceTcpCandidateTypeFromJS

func IceTcpCandidateTypeFromJS(value js.Value) IceTcpCandidateType

IceTcpCandidateTypeFromJS is converting a javascript value into a IceTcpCandidateType enum value.

func (*IceTcpCandidateType) JSValue

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

JSValue is converting this enum into a javascript object

func (IceTcpCandidateType) Value

func (this IceTcpCandidateType) Value() string

Value is converting this into javascript defined string value

type IceTransport

type IceTransport struct {
	domcore.EventTarget
}

class: RTCIceTransport

func IceTransportFromJS

func IceTransportFromJS(value js.Value) *IceTransport

IceTransportFromJS is casting a js.Value into IceTransport.

func IceTransportFromWrapper

func IceTransportFromWrapper(input core.Wrapper) *IceTransport

IceTransportFromJS is casting from something that holds a js.Value into IceTransport.

func (*IceTransport) AddEventGatheringStateChange

func (_this *IceTransport) AddEventGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) AddEventSelectedCandidatePairChange

func (_this *IceTransport) AddEventSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) AddEventStateChange

func (_this *IceTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) Component

func (_this *IceTransport) Component() IceComponent

Component returning attribute 'component' with type IceComponent (idl: RTCIceComponent).

func (*IceTransport) GatheringState

func (_this *IceTransport) GatheringState() IceGathererState

GatheringState returning attribute 'gatheringState' with type IceGathererState (idl: RTCIceGathererState).

func (*IceTransport) GetLocalCandidates

func (_this *IceTransport) GetLocalCandidates() (_result []*IceCandidate)

func (*IceTransport) GetLocalParameters

func (_this *IceTransport) GetLocalParameters() (_result *IceParameters)

func (*IceTransport) GetRemoteCandidates

func (_this *IceTransport) GetRemoteCandidates() (_result []*IceCandidate)

func (*IceTransport) GetRemoteParameters

func (_this *IceTransport) GetRemoteParameters() (_result *IceParameters)

func (*IceTransport) GetSelectedCandidatePair

func (_this *IceTransport) GetSelectedCandidatePair() (_result *IceCandidatePair)

func (*IceTransport) OnGatheringStateChange

func (_this *IceTransport) OnGatheringStateChange() domcore.EventHandlerFunc

OnGatheringStateChange returning attribute 'ongatheringstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IceTransport) OnSelectedCandidatePairChange

func (_this *IceTransport) OnSelectedCandidatePairChange() domcore.EventHandlerFunc

OnSelectedCandidatePairChange returning attribute 'onselectedcandidatepairchange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IceTransport) OnStateChange

func (_this *IceTransport) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*IceTransport) Role

func (_this *IceTransport) Role() IceRole

Role returning attribute 'role' with type IceRole (idl: RTCIceRole).

func (*IceTransport) SetOnGatheringStateChange

func (_this *IceTransport) SetOnGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) SetOnSelectedCandidatePairChange

func (_this *IceTransport) SetOnSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) SetOnStateChange

func (_this *IceTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func

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

func (*IceTransport) State

func (_this *IceTransport) State() IceTransportState

State returning attribute 'state' with type IceTransportState (idl: RTCIceTransportState).

type IceTransportPolicy

type IceTransportPolicy int

enum: RTCIceTransportPolicy

const (
	RelayRTCIceTransportPolicy IceTransportPolicy = iota
	AllRTCIceTransportPolicy
)

func IceTransportPolicyFromJS

func IceTransportPolicyFromJS(value js.Value) IceTransportPolicy

IceTransportPolicyFromJS is converting a javascript value into a IceTransportPolicy enum value.

func (*IceTransportPolicy) JSValue

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

JSValue is converting this enum into a javascript object

func (IceTransportPolicy) Value

func (this IceTransportPolicy) Value() string

Value is converting this into javascript defined string value

type IceTransportState

type IceTransportState int

enum: RTCIceTransportState

const (
	NewRTCIceTransportState IceTransportState = iota
	CheckingRTCIceTransportState
	ConnectedRTCIceTransportState
	CompletedRTCIceTransportState
	DisconnectedRTCIceTransportState
	FailedRTCIceTransportState
	ClosedRTCIceTransportState
)

func IceTransportStateFromJS

func IceTransportStateFromJS(value js.Value) IceTransportState

IceTransportStateFromJS is converting a javascript value into a IceTransportState enum value.

func (*IceTransportState) JSValue

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

JSValue is converting this enum into a javascript object

func (IceTransportState) Value

func (this IceTransportState) Value() string

Value is converting this into javascript defined string value

type OAuthCredential

type OAuthCredential struct {
	MacKey      string
	AccessToken string
}

dictionary: RTCOAuthCredential

func OAuthCredentialFromJS

func OAuthCredentialFromJS(value js.Value) *OAuthCredential

OAuthCredentialFromJS is allocating a new OAuthCredential object and copy all values in the value javascript object.

func (*OAuthCredential) JSValue

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

JSValue is allocating a new javascript object and copy all values

type OfferAnswerOptions

type OfferAnswerOptions struct {
	VoiceActivityDetection bool
}

dictionary: RTCOfferAnswerOptions

func OfferAnswerOptionsFromJS

func OfferAnswerOptionsFromJS(value js.Value) *OfferAnswerOptions

OfferAnswerOptionsFromJS is allocating a new OfferAnswerOptions object and copy all values in the value javascript object.

func (*OfferAnswerOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type OfferOptions

type OfferOptions struct {
	VoiceActivityDetection bool
	IceRestart             bool
	OfferToReceiveAudio    bool
	OfferToReceiveVideo    bool
}

dictionary: RTCOfferOptions

func OfferOptionsFromJS

func OfferOptionsFromJS(value js.Value) *OfferOptions

OfferOptionsFromJS is allocating a new OfferOptions object and copy all values in the value javascript object.

func (*OfferOptions) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PeerConnection

type PeerConnection struct {
	domcore.EventTarget
}

class: RTCPeerConnection

func NewRTCPeerConnection

func NewRTCPeerConnection(configuration *Configuration) (_result *PeerConnection)

func PeerConnectionFromJS

func PeerConnectionFromJS(value js.Value) *PeerConnection

PeerConnectionFromJS is casting a js.Value into PeerConnection.

func PeerConnectionFromWrapper

func PeerConnectionFromWrapper(input core.Wrapper) *PeerConnection

PeerConnectionFromJS is casting from something that holds a js.Value into PeerConnection.

func (*PeerConnection) AddEventConnectionStateChange

func (_this *PeerConnection) AddEventConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventDataChannel

func (_this *PeerConnection) AddEventDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventIceCandidate

func (_this *PeerConnection) AddEventIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventIceCandidateError

func (_this *PeerConnection) AddEventIceCandidateError(listener func(event *PeerConnectionIceErrorEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventIceConnectionStateChange

func (_this *PeerConnection) AddEventIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventIceGatheringStateChange

func (_this *PeerConnection) AddEventIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventNegotiationNeeded

func (_this *PeerConnection) AddEventNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventSignalingStateChange

func (_this *PeerConnection) AddEventSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventStatsEnded

func (_this *PeerConnection) AddEventStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddEventTrack

func (_this *PeerConnection) AddEventTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) AddIceCandidate

func (_this *PeerConnection) AddIceCandidate(candidate *IceCandidateInit) (_result *javascript.PromiseVoid)

func (*PeerConnection) AddIceCandidate2

func (_this *PeerConnection) AddIceCandidate2(candidate *IceCandidateInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)

func (*PeerConnection) AddTrack

func (_this *PeerConnection) AddTrack(track *local.MediaStreamTrack, streams ...*local.MediaStream) (_result *RtpSender)

func (*PeerConnection) AddTransceiver

func (_this *PeerConnection) AddTransceiver(trackOrKind *Union, init *RtpTransceiverInit) (_result *RtpTransceiver)

func (*PeerConnection) CanTrickleIceCandidates

func (_this *PeerConnection) CanTrickleIceCandidates() *bool

CanTrickleIceCandidates returning attribute 'canTrickleIceCandidates' with type bool (idl: boolean).

func (*PeerConnection) Close

func (_this *PeerConnection) Close()

func (*PeerConnection) ConnectionState

func (_this *PeerConnection) ConnectionState() PeerConnectionState

ConnectionState returning attribute 'connectionState' with type PeerConnectionState (idl: RTCPeerConnectionState).

func (*PeerConnection) CreateAnswer

func (_this *PeerConnection) CreateAnswer(options *AnswerOptions) (_result *PromiseSessionDescriptionInit)

func (*PeerConnection) CreateAnswer2

func (_this *PeerConnection) CreateAnswer2(successCallback *SessionDescriptionCallback, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)

func (*PeerConnection) CreateDataChannel

func (_this *PeerConnection) CreateDataChannel(label string, dataChannelDict *DataChannelInit) (_result *DataChannel)

func (*PeerConnection) CreateOffer

func (_this *PeerConnection) CreateOffer(options *OfferOptions) (_result *PromiseSessionDescriptionInit)

func (*PeerConnection) CreateOffer2

func (_this *PeerConnection) CreateOffer2(successCallback *SessionDescriptionCallback, failureCallback *PeerConnectionErrorCallback, options *OfferOptions) (_result *javascript.PromiseVoid)

func (*PeerConnection) CurrentLocalDescription

func (_this *PeerConnection) CurrentLocalDescription() *SessionDescription

CurrentLocalDescription returning attribute 'currentLocalDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) CurrentRemoteDescription

func (_this *PeerConnection) CurrentRemoteDescription() *SessionDescription

CurrentRemoteDescription returning attribute 'currentRemoteDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) GetConfiguration

func (_this *PeerConnection) GetConfiguration() (_result *Configuration)

func (*PeerConnection) GetReceivers

func (_this *PeerConnection) GetReceivers() (_result []*RtpReceiver)

func (*PeerConnection) GetSenders

func (_this *PeerConnection) GetSenders() (_result []*RtpSender)

func (*PeerConnection) GetStats

func (_this *PeerConnection) GetStats(selector *local.MediaStreamTrack) (_result *PromiseStatsReport)

func (*PeerConnection) GetTransceivers

func (_this *PeerConnection) GetTransceivers() (_result []*RtpTransceiver)

func (*PeerConnection) IceConnectionState

func (_this *PeerConnection) IceConnectionState() IceConnectionState

IceConnectionState returning attribute 'iceConnectionState' with type IceConnectionState (idl: RTCIceConnectionState).

func (*PeerConnection) IceGatheringState

func (_this *PeerConnection) IceGatheringState() IceGatheringState

IceGatheringState returning attribute 'iceGatheringState' with type IceGatheringState (idl: RTCIceGatheringState).

func (*PeerConnection) LocalDescription

func (_this *PeerConnection) LocalDescription() *SessionDescription

LocalDescription returning attribute 'localDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) OnConnectionStateChange

func (_this *PeerConnection) OnConnectionStateChange() domcore.EventHandlerFunc

OnConnectionStateChange returning attribute 'onconnectionstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnDataChannel

func (_this *PeerConnection) OnDataChannel() domcore.EventHandlerFunc

OnDataChannel returning attribute 'ondatachannel' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnIceCandidate

func (_this *PeerConnection) OnIceCandidate() domcore.EventHandlerFunc

OnIceCandidate returning attribute 'onicecandidate' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnIceCandidateError

func (_this *PeerConnection) OnIceCandidateError() domcore.EventHandlerFunc

OnIceCandidateError returning attribute 'onicecandidateerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnIceConnectionStateChange

func (_this *PeerConnection) OnIceConnectionStateChange() domcore.EventHandlerFunc

OnIceConnectionStateChange returning attribute 'oniceconnectionstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnIceGatheringStateChange

func (_this *PeerConnection) OnIceGatheringStateChange() domcore.EventHandlerFunc

OnIceGatheringStateChange returning attribute 'onicegatheringstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnNegotiationNeeded

func (_this *PeerConnection) OnNegotiationNeeded() domcore.EventHandlerFunc

OnNegotiationNeeded returning attribute 'onnegotiationneeded' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnSignalingStateChange

func (_this *PeerConnection) OnSignalingStateChange() domcore.EventHandlerFunc

OnSignalingStateChange returning attribute 'onsignalingstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnStatsEnded

func (_this *PeerConnection) OnStatsEnded() domcore.EventHandlerFunc

OnStatsEnded returning attribute 'onstatsended' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) OnTrack

func (_this *PeerConnection) OnTrack() domcore.EventHandlerFunc

OnTrack returning attribute 'ontrack' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*PeerConnection) PendingLocalDescription

func (_this *PeerConnection) PendingLocalDescription() *SessionDescription

PendingLocalDescription returning attribute 'pendingLocalDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) PendingRemoteDescription

func (_this *PeerConnection) PendingRemoteDescription() *SessionDescription

PendingRemoteDescription returning attribute 'pendingRemoteDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) RemoteDescription

func (_this *PeerConnection) RemoteDescription() *SessionDescription

RemoteDescription returning attribute 'remoteDescription' with type SessionDescription (idl: RTCSessionDescription).

func (*PeerConnection) RemoveTrack

func (_this *PeerConnection) RemoveTrack(sender *RtpSender)

func (*PeerConnection) Sctp

func (_this *PeerConnection) Sctp() *SctpTransport

Sctp returning attribute 'sctp' with type SctpTransport (idl: RTCSctpTransport).

func (*PeerConnection) SetConfiguration

func (_this *PeerConnection) SetConfiguration(configuration *Configuration)

func (*PeerConnection) SetLocalDescription

func (_this *PeerConnection) SetLocalDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)

func (*PeerConnection) SetLocalDescription2

func (_this *PeerConnection) SetLocalDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)

func (*PeerConnection) SetOnConnectionStateChange

func (_this *PeerConnection) SetOnConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnDataChannel

func (_this *PeerConnection) SetOnDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnIceCandidate

func (_this *PeerConnection) SetOnIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnIceCandidateError

func (_this *PeerConnection) SetOnIceCandidateError(listener func(event *PeerConnectionIceErrorEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnIceConnectionStateChange

func (_this *PeerConnection) SetOnIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnIceGatheringStateChange

func (_this *PeerConnection) SetOnIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnNegotiationNeeded

func (_this *PeerConnection) SetOnNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnSignalingStateChange

func (_this *PeerConnection) SetOnSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnStatsEnded

func (_this *PeerConnection) SetOnStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetOnTrack

func (_this *PeerConnection) SetOnTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func

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

func (*PeerConnection) SetRemoteDescription

func (_this *PeerConnection) SetRemoteDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)

func (*PeerConnection) SetRemoteDescription2

func (_this *PeerConnection) SetRemoteDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)

func (*PeerConnection) SignalingState

func (_this *PeerConnection) SignalingState() SignalingState

SignalingState returning attribute 'signalingState' with type SignalingState (idl: RTCSignalingState).

type PeerConnectionErrorCallback

type PeerConnectionErrorCallback js.Func

PeerConnectionErrorCallback is a javascript function type.

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

type PeerConnectionErrorCallbackFunc

type PeerConnectionErrorCallbackFunc func(_error *domcore.DOMException)

callback: RTCPeerConnectionErrorCallback

func PeerConnectionErrorCallbackFromJS

func PeerConnectionErrorCallbackFromJS(_value js.Value) PeerConnectionErrorCallbackFunc

type PeerConnectionIceErrorEvent

type PeerConnectionIceErrorEvent struct {
	domcore.Event
}

class: RTCPeerConnectionIceErrorEvent

func NewRTCPeerConnectionIceErrorEvent

func NewRTCPeerConnectionIceErrorEvent(_type string, eventInitDict *PeerConnectionIceErrorEventInit) (_result *PeerConnectionIceErrorEvent)

func PeerConnectionIceErrorEventFromJS

func PeerConnectionIceErrorEventFromJS(value js.Value) *PeerConnectionIceErrorEvent

PeerConnectionIceErrorEventFromJS is casting a js.Value into PeerConnectionIceErrorEvent.

func PeerConnectionIceErrorEventFromWrapper

func PeerConnectionIceErrorEventFromWrapper(input core.Wrapper) *PeerConnectionIceErrorEvent

PeerConnectionIceErrorEventFromJS is casting from something that holds a js.Value into PeerConnectionIceErrorEvent.

func (*PeerConnectionIceErrorEvent) ErrorCode

func (_this *PeerConnectionIceErrorEvent) ErrorCode() int

ErrorCode returning attribute 'errorCode' with type int (idl: unsigned short).

func (*PeerConnectionIceErrorEvent) ErrorText

func (_this *PeerConnectionIceErrorEvent) ErrorText() string

ErrorText returning attribute 'errorText' with type string (idl: USVString).

func (*PeerConnectionIceErrorEvent) HostCandidate

func (_this *PeerConnectionIceErrorEvent) HostCandidate() string

HostCandidate returning attribute 'hostCandidate' with type string (idl: DOMString).

func (*PeerConnectionIceErrorEvent) Url

func (_this *PeerConnectionIceErrorEvent) Url() string

Url returning attribute 'url' with type string (idl: DOMString).

type PeerConnectionIceErrorEventInit

type PeerConnectionIceErrorEventInit struct {
	Bubbles       bool
	Cancelable    bool
	Composed      bool
	HostCandidate string
	Url           string
	ErrorCode     int
	StatusText    string
}

dictionary: RTCPeerConnectionIceErrorEventInit

func PeerConnectionIceErrorEventInitFromJS

func PeerConnectionIceErrorEventInitFromJS(value js.Value) *PeerConnectionIceErrorEventInit

PeerConnectionIceErrorEventInitFromJS is allocating a new PeerConnectionIceErrorEventInit object and copy all values in the value javascript object.

func (*PeerConnectionIceErrorEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PeerConnectionIceEvent

type PeerConnectionIceEvent struct {
	domcore.Event
}

class: RTCPeerConnectionIceEvent

func NewRTCPeerConnectionIceEvent

func NewRTCPeerConnectionIceEvent(_type string, eventInitDict *PeerConnectionIceEventInit) (_result *PeerConnectionIceEvent)

func PeerConnectionIceEventFromJS

func PeerConnectionIceEventFromJS(value js.Value) *PeerConnectionIceEvent

PeerConnectionIceEventFromJS is casting a js.Value into PeerConnectionIceEvent.

func PeerConnectionIceEventFromWrapper

func PeerConnectionIceEventFromWrapper(input core.Wrapper) *PeerConnectionIceEvent

PeerConnectionIceEventFromJS is casting from something that holds a js.Value into PeerConnectionIceEvent.

func (*PeerConnectionIceEvent) Candidate

func (_this *PeerConnectionIceEvent) Candidate() *IceCandidate

Candidate returning attribute 'candidate' with type IceCandidate (idl: RTCIceCandidate).

func (*PeerConnectionIceEvent) Url

func (_this *PeerConnectionIceEvent) Url() *string

Url returning attribute 'url' with type string (idl: DOMString).

type PeerConnectionIceEventInit

type PeerConnectionIceEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Candidate  *IceCandidate
	Url        *string
}

dictionary: RTCPeerConnectionIceEventInit

func PeerConnectionIceEventInitFromJS

func PeerConnectionIceEventInitFromJS(value js.Value) *PeerConnectionIceEventInit

PeerConnectionIceEventInitFromJS is allocating a new PeerConnectionIceEventInit object and copy all values in the value javascript object.

func (*PeerConnectionIceEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PeerConnectionState

type PeerConnectionState int

enum: RTCPeerConnectionState

const (
	ClosedRTCPeerConnectionState PeerConnectionState = iota
	FailedRTCPeerConnectionState
	DisconnectedRTCPeerConnectionState
	NewRTCPeerConnectionState
	ConnectingRTCPeerConnectionState
	ConnectedRTCPeerConnectionState
)

func PeerConnectionStateFromJS

func PeerConnectionStateFromJS(value js.Value) PeerConnectionState

PeerConnectionStateFromJS is converting a javascript value into a PeerConnectionState enum value.

func (*PeerConnectionState) JSValue

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

JSValue is converting this enum into a javascript object

func (PeerConnectionState) Value

func (this PeerConnectionState) Value() string

Value is converting this into javascript defined string value

type PriorityType

type PriorityType int

enum: RTCPriorityType

const (
	VeryLowRTCPriorityType PriorityType = iota
	LowRTCPriorityType
	MediumRTCPriorityType
	HighRTCPriorityType
)

func PriorityTypeFromJS

func PriorityTypeFromJS(value js.Value) PriorityType

PriorityTypeFromJS is converting a javascript value into a PriorityType enum value.

func (*PriorityType) JSValue

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

JSValue is converting this enum into a javascript object

func (PriorityType) Value

func (this PriorityType) Value() string

Value is converting this into javascript defined string value

type PromiseCertificate

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

class: Promise

func GenerateCertificate

func GenerateCertificate(keygenAlgorithm *Union) (_result *PromiseCertificate)

func PromiseCertificateFromJS

func PromiseCertificateFromJS(value js.Value) *PromiseCertificate

PromiseCertificateFromJS is casting a js.Value into PromiseCertificate.

func PromiseCertificateFromWrapper

func PromiseCertificateFromWrapper(input core.Wrapper) *PromiseCertificate

PromiseCertificateFromJS is casting from something that holds a js.Value into PromiseCertificate.

func (*PromiseCertificate) Catch

func (_this *PromiseCertificate) Catch(onRejected *PromiseCertificateOnRejected) (_result *PromiseCertificate)

func (*PromiseCertificate) Finally

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

func (*PromiseCertificate) JSValue

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

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

func (*PromiseCertificate) Then

func (_this *PromiseCertificate) Then(onFulfilled *PromiseCertificateOnFulfilled, onRejected *PromiseCertificateOnRejected) (_result *PromiseCertificate)

type PromiseCertificateOnFulfilled

type PromiseCertificateOnFulfilled js.Func

PromiseCertificateOnFulfilled is a javascript function type.

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

type PromiseCertificateOnFulfilledFunc

type PromiseCertificateOnFulfilledFunc func(value *Certificate)

callback: PromiseTemplateOnFulfilled

func PromiseCertificateOnFulfilledFromJS

func PromiseCertificateOnFulfilledFromJS(_value js.Value) PromiseCertificateOnFulfilledFunc

type PromiseCertificateOnRejected

type PromiseCertificateOnRejected js.Func

PromiseCertificateOnRejected is a javascript function type.

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

type PromiseCertificateOnRejectedFunc

type PromiseCertificateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCertificateOnRejectedFromJS

func PromiseCertificateOnRejectedFromJS(_value js.Value) PromiseCertificateOnRejectedFunc

type PromiseSessionDescriptionInit

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

class: Promise

func PromiseSessionDescriptionInitFromJS

func PromiseSessionDescriptionInitFromJS(value js.Value) *PromiseSessionDescriptionInit

PromiseSessionDescriptionInitFromJS is casting a js.Value into PromiseSessionDescriptionInit.

func PromiseSessionDescriptionInitFromWrapper

func PromiseSessionDescriptionInitFromWrapper(input core.Wrapper) *PromiseSessionDescriptionInit

PromiseSessionDescriptionInitFromJS is casting from something that holds a js.Value into PromiseSessionDescriptionInit.

func (*PromiseSessionDescriptionInit) Catch

func (*PromiseSessionDescriptionInit) Finally

func (*PromiseSessionDescriptionInit) JSValue

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

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

func (*PromiseSessionDescriptionInit) Then

type PromiseSessionDescriptionInitOnFulfilled

type PromiseSessionDescriptionInitOnFulfilled js.Func

PromiseSessionDescriptionInitOnFulfilled is a javascript function type.

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

type PromiseSessionDescriptionInitOnFulfilledFunc

type PromiseSessionDescriptionInitOnFulfilledFunc func(value *SessionDescriptionInit)

callback: PromiseTemplateOnFulfilled

func PromiseSessionDescriptionInitOnFulfilledFromJS

func PromiseSessionDescriptionInitOnFulfilledFromJS(_value js.Value) PromiseSessionDescriptionInitOnFulfilledFunc

type PromiseSessionDescriptionInitOnRejected

type PromiseSessionDescriptionInitOnRejected js.Func

PromiseSessionDescriptionInitOnRejected is a javascript function type.

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

type PromiseSessionDescriptionInitOnRejectedFunc

type PromiseSessionDescriptionInitOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSessionDescriptionInitOnRejectedFromJS

func PromiseSessionDescriptionInitOnRejectedFromJS(_value js.Value) PromiseSessionDescriptionInitOnRejectedFunc

type PromiseStatsReport

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

class: Promise

func PromiseStatsReportFromJS

func PromiseStatsReportFromJS(value js.Value) *PromiseStatsReport

PromiseStatsReportFromJS is casting a js.Value into PromiseStatsReport.

func PromiseStatsReportFromWrapper

func PromiseStatsReportFromWrapper(input core.Wrapper) *PromiseStatsReport

PromiseStatsReportFromJS is casting from something that holds a js.Value into PromiseStatsReport.

func (*PromiseStatsReport) Catch

func (_this *PromiseStatsReport) Catch(onRejected *PromiseStatsReportOnRejected) (_result *PromiseStatsReport)

func (*PromiseStatsReport) Finally

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

func (*PromiseStatsReport) JSValue

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

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

func (*PromiseStatsReport) Then

func (_this *PromiseStatsReport) Then(onFulfilled *PromiseStatsReportOnFulfilled, onRejected *PromiseStatsReportOnRejected) (_result *PromiseStatsReport)

type PromiseStatsReportOnFulfilled

type PromiseStatsReportOnFulfilled js.Func

PromiseStatsReportOnFulfilled is a javascript function type.

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

type PromiseStatsReportOnFulfilledFunc

type PromiseStatsReportOnFulfilledFunc func(value *StatsReport)

callback: PromiseTemplateOnFulfilled

func PromiseStatsReportOnFulfilledFromJS

func PromiseStatsReportOnFulfilledFromJS(_value js.Value) PromiseStatsReportOnFulfilledFunc

type PromiseStatsReportOnRejected

type PromiseStatsReportOnRejected js.Func

PromiseStatsReportOnRejected is a javascript function type.

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

type PromiseStatsReportOnRejectedFunc

type PromiseStatsReportOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseStatsReportOnRejectedFromJS

func PromiseStatsReportOnRejectedFromJS(_value js.Value) PromiseStatsReportOnRejectedFunc

type RtcpMuxPolicy

type RtcpMuxPolicy int

enum: RTCRtcpMuxPolicy

const (
	NegotiateRTCRtcpMuxPolicy RtcpMuxPolicy = iota
	RequireRTCRtcpMuxPolicy
)

func RtcpMuxPolicyFromJS

func RtcpMuxPolicyFromJS(value js.Value) RtcpMuxPolicy

RtcpMuxPolicyFromJS is converting a javascript value into a RtcpMuxPolicy enum value.

func (*RtcpMuxPolicy) JSValue

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

JSValue is converting this enum into a javascript object

func (RtcpMuxPolicy) Value

func (this RtcpMuxPolicy) Value() string

Value is converting this into javascript defined string value

type RtcpParameters

type RtcpParameters struct {
	Cname       string
	ReducedSize bool
}

dictionary: RTCRtcpParameters

func RtcpParametersFromJS

func RtcpParametersFromJS(value js.Value) *RtcpParameters

RtcpParametersFromJS is allocating a new RtcpParameters object and copy all values in the value javascript object.

func (*RtcpParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpCapabilities

type RtpCapabilities struct {
	Codecs           []*RtpCodecCapability
	HeaderExtensions []*RtpHeaderExtensionCapability
}

dictionary: RTCRtpCapabilities

func GetCapabilities

func GetCapabilities(kind string) (_result *RtpCapabilities)

func GetCapabilities2

func GetCapabilities2(kind string) (_result *RtpCapabilities)

func RtpCapabilitiesFromJS

func RtpCapabilitiesFromJS(value js.Value) *RtpCapabilities

RtpCapabilitiesFromJS is allocating a new RtpCapabilities object and copy all values in the value javascript object.

func (*RtpCapabilities) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpCodecCapability

type RtpCodecCapability struct {
	MimeType    string
	ClockRate   uint
	Channels    int
	SdpFmtpLine string
}

dictionary: RTCRtpCodecCapability

func RtpCodecCapabilityFromJS

func RtpCodecCapabilityFromJS(value js.Value) *RtpCodecCapability

RtpCodecCapabilityFromJS is allocating a new RtpCodecCapability object and copy all values in the value javascript object.

func (*RtpCodecCapability) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpCodecParameters

type RtpCodecParameters struct {
	PayloadType int
	MimeType    string
	ClockRate   uint
	Channels    int
	SdpFmtpLine string
}

dictionary: RTCRtpCodecParameters

func RtpCodecParametersFromJS

func RtpCodecParametersFromJS(value js.Value) *RtpCodecParameters

RtpCodecParametersFromJS is allocating a new RtpCodecParameters object and copy all values in the value javascript object.

func (*RtpCodecParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpCodingParameters

type RtpCodingParameters struct {
	Rid string
}

dictionary: RTCRtpCodingParameters

func RtpCodingParametersFromJS

func RtpCodingParametersFromJS(value js.Value) *RtpCodingParameters

RtpCodingParametersFromJS is allocating a new RtpCodingParameters object and copy all values in the value javascript object.

func (*RtpCodingParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpContributingSource

type RtpContributingSource struct {
	Timestamp  float64
	Source     uint
	AudioLevel float64
}

dictionary: RTCRtpContributingSource

func RtpContributingSourceFromJS

func RtpContributingSourceFromJS(value js.Value) *RtpContributingSource

RtpContributingSourceFromJS is allocating a new RtpContributingSource object and copy all values in the value javascript object.

func (*RtpContributingSource) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpDecodingParameters

type RtpDecodingParameters struct {
	Rid string
}

dictionary: RTCRtpDecodingParameters

func RtpDecodingParametersFromJS

func RtpDecodingParametersFromJS(value js.Value) *RtpDecodingParameters

RtpDecodingParametersFromJS is allocating a new RtpDecodingParameters object and copy all values in the value javascript object.

func (*RtpDecodingParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpEncodingParameters

type RtpEncodingParameters struct {
	Rid                   string
	CodecPayloadType      int
	Dtx                   DtxStatus
	Active                bool
	Ptime                 uint
	MaxBitrate            uint
	MaxFramerate          float64
	ScaleResolutionDownBy float64
	NetworkPriority       PriorityType
}

dictionary: RTCRtpEncodingParameters

func RtpEncodingParametersFromJS

func RtpEncodingParametersFromJS(value js.Value) *RtpEncodingParameters

RtpEncodingParametersFromJS is allocating a new RtpEncodingParameters object and copy all values in the value javascript object.

func (*RtpEncodingParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpHeaderExtensionCapability

type RtpHeaderExtensionCapability struct {
	Uri string
}

dictionary: RTCRtpHeaderExtensionCapability

func RtpHeaderExtensionCapabilityFromJS

func RtpHeaderExtensionCapabilityFromJS(value js.Value) *RtpHeaderExtensionCapability

RtpHeaderExtensionCapabilityFromJS is allocating a new RtpHeaderExtensionCapability object and copy all values in the value javascript object.

func (*RtpHeaderExtensionCapability) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpHeaderExtensionParameters

type RtpHeaderExtensionParameters struct {
	Uri       string
	Id        int
	Encrypted bool
}

dictionary: RTCRtpHeaderExtensionParameters

func RtpHeaderExtensionParametersFromJS

func RtpHeaderExtensionParametersFromJS(value js.Value) *RtpHeaderExtensionParameters

RtpHeaderExtensionParametersFromJS is allocating a new RtpHeaderExtensionParameters object and copy all values in the value javascript object.

func (*RtpHeaderExtensionParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpParameters

type RtpParameters struct {
	HeaderExtensions []*RtpHeaderExtensionParameters
	Rtcp             *RtcpParameters
	Codecs           []*RtpCodecParameters
}

dictionary: RTCRtpParameters

func RtpParametersFromJS

func RtpParametersFromJS(value js.Value) *RtpParameters

RtpParametersFromJS is allocating a new RtpParameters object and copy all values in the value javascript object.

func (*RtpParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpReceiveParameters

type RtpReceiveParameters struct {
	HeaderExtensions []*RtpHeaderExtensionParameters
	Rtcp             *RtcpParameters
	Codecs           []*RtpCodecParameters
	Encodings        []*RtpDecodingParameters
}

dictionary: RTCRtpReceiveParameters

func RtpReceiveParametersFromJS

func RtpReceiveParametersFromJS(value js.Value) *RtpReceiveParameters

RtpReceiveParametersFromJS is allocating a new RtpReceiveParameters object and copy all values in the value javascript object.

func (*RtpReceiveParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpReceiver

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

class: RTCRtpReceiver

func RtpReceiverFromJS

func RtpReceiverFromJS(value js.Value) *RtpReceiver

RtpReceiverFromJS is casting a js.Value into RtpReceiver.

func RtpReceiverFromWrapper

func RtpReceiverFromWrapper(input core.Wrapper) *RtpReceiver

RtpReceiverFromJS is casting from something that holds a js.Value into RtpReceiver.

func (*RtpReceiver) GetContributingSources

func (_this *RtpReceiver) GetContributingSources() (_result []*RtpContributingSource)

func (*RtpReceiver) GetParameters

func (_this *RtpReceiver) GetParameters() (_result *RtpReceiveParameters)

func (*RtpReceiver) GetStats

func (_this *RtpReceiver) GetStats() (_result *PromiseStatsReport)

func (*RtpReceiver) GetSynchronizationSources

func (_this *RtpReceiver) GetSynchronizationSources() (_result []*RtpSynchronizationSource)

func (*RtpReceiver) JSValue

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

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

func (*RtpReceiver) RtcpTransport

func (_this *RtpReceiver) RtcpTransport() *DtlsTransport

RtcpTransport returning attribute 'rtcpTransport' with type DtlsTransport (idl: RTCDtlsTransport).

func (*RtpReceiver) Track

func (_this *RtpReceiver) Track() *local.MediaStreamTrack

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

func (*RtpReceiver) Transport

func (_this *RtpReceiver) Transport() *DtlsTransport

Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).

type RtpSendParameters

type RtpSendParameters struct {
	HeaderExtensions      []*RtpHeaderExtensionParameters
	Rtcp                  *RtcpParameters
	Codecs                []*RtpCodecParameters
	TransactionId         string
	Encodings             []*RtpEncodingParameters
	DegradationPreference DegradationPreference
	Priority              PriorityType
}

dictionary: RTCRtpSendParameters

func RtpSendParametersFromJS

func RtpSendParametersFromJS(value js.Value) *RtpSendParameters

RtpSendParametersFromJS is allocating a new RtpSendParameters object and copy all values in the value javascript object.

func (*RtpSendParameters) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpSender

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

class: RTCRtpSender

func RtpSenderFromJS

func RtpSenderFromJS(value js.Value) *RtpSender

RtpSenderFromJS is casting a js.Value into RtpSender.

func RtpSenderFromWrapper

func RtpSenderFromWrapper(input core.Wrapper) *RtpSender

RtpSenderFromJS is casting from something that holds a js.Value into RtpSender.

func (*RtpSender) Dtmf

func (_this *RtpSender) Dtmf() *DTMFSender

Dtmf returning attribute 'dtmf' with type DTMFSender (idl: RTCDTMFSender).

func (*RtpSender) GetParameters

func (_this *RtpSender) GetParameters() (_result *RtpSendParameters)

func (*RtpSender) GetStats

func (_this *RtpSender) GetStats() (_result *PromiseStatsReport)

func (*RtpSender) JSValue

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

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

func (*RtpSender) ReplaceTrack

func (_this *RtpSender) ReplaceTrack(withTrack *local.MediaStreamTrack) (_result *javascript.PromiseVoid)

func (*RtpSender) RtcpTransport

func (_this *RtpSender) RtcpTransport() *DtlsTransport

RtcpTransport returning attribute 'rtcpTransport' with type DtlsTransport (idl: RTCDtlsTransport).

func (*RtpSender) SetParameters

func (_this *RtpSender) SetParameters(parameters *RtpSendParameters) (_result *javascript.PromiseVoid)

func (*RtpSender) SetStreams

func (_this *RtpSender) SetStreams(streams ...*local.MediaStream)

func (*RtpSender) Track

func (_this *RtpSender) Track() *local.MediaStreamTrack

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

func (*RtpSender) Transport

func (_this *RtpSender) Transport() *DtlsTransport

Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).

type RtpSynchronizationSource

type RtpSynchronizationSource struct {
	Timestamp         float64
	Source            uint
	AudioLevel        float64
	VoiceActivityFlag bool
}

dictionary: RTCRtpSynchronizationSource

func RtpSynchronizationSourceFromJS

func RtpSynchronizationSourceFromJS(value js.Value) *RtpSynchronizationSource

RtpSynchronizationSourceFromJS is allocating a new RtpSynchronizationSource object and copy all values in the value javascript object.

func (*RtpSynchronizationSource) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpTransceiver

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

class: RTCRtpTransceiver

func RtpTransceiverFromJS

func RtpTransceiverFromJS(value js.Value) *RtpTransceiver

RtpTransceiverFromJS is casting a js.Value into RtpTransceiver.

func RtpTransceiverFromWrapper

func RtpTransceiverFromWrapper(input core.Wrapper) *RtpTransceiver

RtpTransceiverFromJS is casting from something that holds a js.Value into RtpTransceiver.

func (*RtpTransceiver) CurrentDirection

func (_this *RtpTransceiver) CurrentDirection() *RtpTransceiverDirection

CurrentDirection returning attribute 'currentDirection' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).

func (*RtpTransceiver) Direction

func (_this *RtpTransceiver) Direction() RtpTransceiverDirection

Direction returning attribute 'direction' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).

func (*RtpTransceiver) JSValue

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

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

func (*RtpTransceiver) Mid

func (_this *RtpTransceiver) Mid() *string

Mid returning attribute 'mid' with type string (idl: DOMString).

func (*RtpTransceiver) Receiver

func (_this *RtpTransceiver) Receiver() *RtpReceiver

Receiver returning attribute 'receiver' with type RtpReceiver (idl: RTCRtpReceiver).

func (*RtpTransceiver) Sender

func (_this *RtpTransceiver) Sender() *RtpSender

Sender returning attribute 'sender' with type RtpSender (idl: RTCRtpSender).

func (*RtpTransceiver) SetCodecPreferences

func (_this *RtpTransceiver) SetCodecPreferences(codecs []*RtpCodecCapability)

func (*RtpTransceiver) SetDirection

func (_this *RtpTransceiver) SetDirection(value RtpTransceiverDirection)

SetDirection setting attribute 'direction' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).

func (*RtpTransceiver) Stop

func (_this *RtpTransceiver) Stop()

func (*RtpTransceiver) Stopped

func (_this *RtpTransceiver) Stopped() bool

Stopped returning attribute 'stopped' with type bool (idl: boolean).

type RtpTransceiverDirection

type RtpTransceiverDirection int

enum: RTCRtpTransceiverDirection

const (
	SendrecvRTCRtpTransceiverDirection RtpTransceiverDirection = iota
	SendonlyRTCRtpTransceiverDirection
	RecvonlyRTCRtpTransceiverDirection
	InactiveRTCRtpTransceiverDirection
)

func RtpTransceiverDirectionFromJS

func RtpTransceiverDirectionFromJS(value js.Value) RtpTransceiverDirection

RtpTransceiverDirectionFromJS is converting a javascript value into a RtpTransceiverDirection enum value.

func (*RtpTransceiverDirection) JSValue

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

JSValue is converting this enum into a javascript object

func (RtpTransceiverDirection) Value

func (this RtpTransceiverDirection) Value() string

Value is converting this into javascript defined string value

type RtpTransceiverInit

type RtpTransceiverInit struct {
	Direction     RtpTransceiverDirection
	Streams       []*local.MediaStream
	SendEncodings []*RtpEncodingParameters
}

dictionary: RTCRtpTransceiverInit

func RtpTransceiverInitFromJS

func RtpTransceiverInitFromJS(value js.Value) *RtpTransceiverInit

RtpTransceiverInitFromJS is allocating a new RtpTransceiverInit object and copy all values in the value javascript object.

func (*RtpTransceiverInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SctpTransport

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

class: RTCSctpTransport

func SctpTransportFromJS

func SctpTransportFromJS(value js.Value) *SctpTransport

SctpTransportFromJS is casting a js.Value into SctpTransport.

func SctpTransportFromWrapper

func SctpTransportFromWrapper(input core.Wrapper) *SctpTransport

SctpTransportFromJS is casting from something that holds a js.Value into SctpTransport.

func (*SctpTransport) AddEventStateChange

func (_this *SctpTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func

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

func (*SctpTransport) JSValue

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

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

func (*SctpTransport) MaxChannels

func (_this *SctpTransport) MaxChannels() *int

MaxChannels returning attribute 'maxChannels' with type int (idl: unsigned short).

func (*SctpTransport) MaxMessageSize

func (_this *SctpTransport) MaxMessageSize() float64

MaxMessageSize returning attribute 'maxMessageSize' with type float64 (idl: unrestricted double).

func (*SctpTransport) OnStateChange

func (_this *SctpTransport) OnStateChange() domcore.EventHandlerFunc

OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*SctpTransport) SetOnStateChange

func (_this *SctpTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func

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

func (*SctpTransport) State

func (_this *SctpTransport) State() SctpTransportState

State returning attribute 'state' with type SctpTransportState (idl: RTCSctpTransportState).

func (*SctpTransport) Transport

func (_this *SctpTransport) Transport() *DtlsTransport

Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).

type SctpTransportState

type SctpTransportState int

enum: RTCSctpTransportState

const (
	ConnectingRTCSctpTransportState SctpTransportState = iota
	ConnectedRTCSctpTransportState
	ClosedRTCSctpTransportState
)

func SctpTransportStateFromJS

func SctpTransportStateFromJS(value js.Value) SctpTransportState

SctpTransportStateFromJS is converting a javascript value into a SctpTransportState enum value.

func (*SctpTransportState) JSValue

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

JSValue is converting this enum into a javascript object

func (SctpTransportState) Value

func (this SctpTransportState) Value() string

Value is converting this into javascript defined string value

type SdpType

type SdpType int

enum: RTCSdpType

const (
	OfferRTCSdpType SdpType = iota
	PranswerRTCSdpType
	AnswerRTCSdpType
	RollbackRTCSdpType
)

func SdpTypeFromJS

func SdpTypeFromJS(value js.Value) SdpType

SdpTypeFromJS is converting a javascript value into a SdpType enum value.

func (*SdpType) JSValue

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

JSValue is converting this enum into a javascript object

func (SdpType) Value

func (this SdpType) Value() string

Value is converting this into javascript defined string value

type SessionDescription

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

class: RTCSessionDescription

func NewRTCSessionDescription

func NewRTCSessionDescription(descriptionInitDict *SessionDescriptionInit) (_result *SessionDescription)

func SessionDescriptionFromJS

func SessionDescriptionFromJS(value js.Value) *SessionDescription

SessionDescriptionFromJS is casting a js.Value into SessionDescription.

func SessionDescriptionFromWrapper

func SessionDescriptionFromWrapper(input core.Wrapper) *SessionDescription

SessionDescriptionFromJS is casting from something that holds a js.Value into SessionDescription.

func (*SessionDescription) JSValue

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

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

func (*SessionDescription) Sdp

func (_this *SessionDescription) Sdp() string

Sdp returning attribute 'sdp' with type string (idl: DOMString).

func (*SessionDescription) ToJSON

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

func (*SessionDescription) Type

func (_this *SessionDescription) Type() SdpType

Type returning attribute 'type' with type SdpType (idl: RTCSdpType).

type SessionDescriptionCallback

type SessionDescriptionCallback js.Func

SessionDescriptionCallback is a javascript function type.

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

type SessionDescriptionCallbackFunc

type SessionDescriptionCallbackFunc func(description *SessionDescriptionInit)

callback: RTCSessionDescriptionCallback

func SessionDescriptionCallbackFromJS

func SessionDescriptionCallbackFromJS(_value js.Value) SessionDescriptionCallbackFunc

type SessionDescriptionInit

type SessionDescriptionInit struct {
	Type SdpType
	Sdp  string
}

dictionary: RTCSessionDescriptionInit

func SessionDescriptionInitFromJS

func SessionDescriptionInitFromJS(value js.Value) *SessionDescriptionInit

SessionDescriptionInitFromJS is allocating a new SessionDescriptionInit object and copy all values in the value javascript object.

func (*SessionDescriptionInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SignalingState

type SignalingState int

enum: RTCSignalingState

const (
	StableRTCSignalingState SignalingState = iota
	HaveLocalOfferRTCSignalingState
	HaveRemoteOfferRTCSignalingState
	HaveLocalPranswerRTCSignalingState
	HaveRemotePranswerRTCSignalingState
	ClosedRTCSignalingState
)

func SignalingStateFromJS

func SignalingStateFromJS(value js.Value) SignalingState

SignalingStateFromJS is converting a javascript value into a SignalingState enum value.

func (*SignalingState) JSValue

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

JSValue is converting this enum into a javascript object

func (SignalingState) Value

func (this SignalingState) Value() string

Value is converting this into javascript defined string value

type Stats

type Stats struct {
	Timestamp float64
	Type      StatsType
	Id        string
}

dictionary: RTCStats

func StatsFromJS

func StatsFromJS(value js.Value) *Stats

StatsFromJS is allocating a new Stats object and copy all values in the value javascript object.

func (*Stats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsEvent

type StatsEvent struct {
	domcore.Event
}

class: RTCStatsEvent

func NewRTCStatsEvent

func NewRTCStatsEvent(_type string, eventInitDict *StatsEventInit) (_result *StatsEvent)

func StatsEventFromJS

func StatsEventFromJS(value js.Value) *StatsEvent

StatsEventFromJS is casting a js.Value into StatsEvent.

func StatsEventFromWrapper

func StatsEventFromWrapper(input core.Wrapper) *StatsEvent

StatsEventFromJS is casting from something that holds a js.Value into StatsEvent.

func (*StatsEvent) Report

func (_this *StatsEvent) Report() *StatsReport

Report returning attribute 'report' with type StatsReport (idl: RTCStatsReport).

type StatsEventInit

type StatsEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Report     *StatsReport
}

dictionary: RTCStatsEventInit

func StatsEventInitFromJS

func StatsEventInitFromJS(value js.Value) *StatsEventInit

StatsEventInitFromJS is allocating a new StatsEventInit object and copy all values in the value javascript object.

func (*StatsEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsReport

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

class: RTCStatsReport

func StatsReportFromJS

func StatsReportFromJS(value js.Value) *StatsReport

StatsReportFromJS is casting a js.Value into StatsReport.

func StatsReportFromWrapper

func StatsReportFromWrapper(input core.Wrapper) *StatsReport

StatsReportFromJS is casting from something that holds a js.Value into StatsReport.

func (*StatsReport) Entries

func (_this *StatsReport) Entries() (_result *StatsReportEntryIterator)

func (*StatsReport) ForEach

func (_this *StatsReport) ForEach(callback *StatsReportForEach, optionalThisForCallbackArgument interface{})

func (*StatsReport) Get

func (_this *StatsReport) Get(key string) (_result *javascript.Object)

func (*StatsReport) Has

func (_this *StatsReport) Has(key string) (_result bool)

func (*StatsReport) JSValue

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

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

func (*StatsReport) Keys

func (_this *StatsReport) Keys() (_result *StatsReportKeyIterator)

func (*StatsReport) Size

func (_this *StatsReport) Size() int

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

func (*StatsReport) Values

func (_this *StatsReport) Values() (_result *StatsReportValueIterator)

type StatsReportEntryIterator

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

class: RTCStatsReportEntryIterator

func StatsReportEntryIteratorFromJS

func StatsReportEntryIteratorFromJS(value js.Value) *StatsReportEntryIterator

StatsReportEntryIteratorFromJS is casting a js.Value into StatsReportEntryIterator.

func StatsReportEntryIteratorFromWrapper

func StatsReportEntryIteratorFromWrapper(input core.Wrapper) *StatsReportEntryIterator

StatsReportEntryIteratorFromJS is casting from something that holds a js.Value into StatsReportEntryIterator.

func (*StatsReportEntryIterator) JSValue

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

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

func (*StatsReportEntryIterator) Next

type StatsReportEntryIteratorValue

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

dictionary: RTCStatsReportEntryIteratorValue

func StatsReportEntryIteratorValueFromJS

func StatsReportEntryIteratorValueFromJS(value js.Value) *StatsReportEntryIteratorValue

StatsReportEntryIteratorValueFromJS is allocating a new StatsReportEntryIteratorValue object and copy all values in the value javascript object.

func (*StatsReportEntryIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsReportForEach

type StatsReportForEach js.Func

StatsReportForEach is a javascript function type.

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

func StatsReportForEachToJS

func StatsReportForEachToJS(callback StatsReportForEachFunc) *StatsReportForEach

type StatsReportForEachFunc

type StatsReportForEachFunc func(currentValue *javascript.Object, currentKey string, listObj *StatsReport)

callback: RTCStatsReportForEach

func StatsReportForEachFromJS

func StatsReportForEachFromJS(_value js.Value) StatsReportForEachFunc

type StatsReportKeyIterator

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

class: RTCStatsReportKeyIterator

func StatsReportKeyIteratorFromJS

func StatsReportKeyIteratorFromJS(value js.Value) *StatsReportKeyIterator

StatsReportKeyIteratorFromJS is casting a js.Value into StatsReportKeyIterator.

func StatsReportKeyIteratorFromWrapper

func StatsReportKeyIteratorFromWrapper(input core.Wrapper) *StatsReportKeyIterator

StatsReportKeyIteratorFromJS is casting from something that holds a js.Value into StatsReportKeyIterator.

func (*StatsReportKeyIterator) JSValue

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

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

func (*StatsReportKeyIterator) Next

func (_this *StatsReportKeyIterator) Next() (_result *StatsReportKeyIteratorValue)

type StatsReportKeyIteratorValue

type StatsReportKeyIteratorValue struct {
	Value string
	Done  bool
}

dictionary: RTCStatsReportKeyIteratorValue

func StatsReportKeyIteratorValueFromJS

func StatsReportKeyIteratorValueFromJS(value js.Value) *StatsReportKeyIteratorValue

StatsReportKeyIteratorValueFromJS is allocating a new StatsReportKeyIteratorValue object and copy all values in the value javascript object.

func (*StatsReportKeyIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsReportValueIterator

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

class: RTCStatsReportValueIterator

func StatsReportValueIteratorFromJS

func StatsReportValueIteratorFromJS(value js.Value) *StatsReportValueIterator

StatsReportValueIteratorFromJS is casting a js.Value into StatsReportValueIterator.

func StatsReportValueIteratorFromWrapper

func StatsReportValueIteratorFromWrapper(input core.Wrapper) *StatsReportValueIterator

StatsReportValueIteratorFromJS is casting from something that holds a js.Value into StatsReportValueIterator.

func (*StatsReportValueIterator) JSValue

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

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

func (*StatsReportValueIterator) Next

type StatsReportValueIteratorValue

type StatsReportValueIteratorValue struct {
	Value *javascript.Object
	Done  bool
}

dictionary: RTCStatsReportValueIteratorValue

func StatsReportValueIteratorValueFromJS

func StatsReportValueIteratorValueFromJS(value js.Value) *StatsReportValueIteratorValue

StatsReportValueIteratorValueFromJS is allocating a new StatsReportValueIteratorValue object and copy all values in the value javascript object.

func (*StatsReportValueIteratorValue) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsType

type StatsType int

enum: RTCStatsType

const (
	CodecRTCStatsType StatsType = iota
	InboundRtpRTCStatsType
	OutboundRtpRTCStatsType
	RemoteInboundRtpRTCStatsType
	RemoteOutboundRtpRTCStatsType
	CsrcRTCStatsType
	PeerConnectionRTCStatsType
	DataChannelRTCStatsType
	StreamRTCStatsType
	TrackRTCStatsType
	SenderRTCStatsType
	ReceiverRTCStatsType
	TransportRTCStatsType
	CandidatePairRTCStatsType
	LocalCandidateRTCStatsType
	RemoteCandidateRTCStatsType
	CertificateRTCStatsType
)

func StatsTypeFromJS

func StatsTypeFromJS(value js.Value) StatsType

StatsTypeFromJS is converting a javascript value into a StatsType enum value.

func (*StatsType) JSValue

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

JSValue is converting this enum into a javascript object

func (StatsType) Value

func (this StatsType) Value() string

Value is converting this into javascript defined string value

type TrackEvent

type TrackEvent struct {
	domcore.Event
}

class: RTCTrackEvent

func NewRTCTrackEvent

func NewRTCTrackEvent(_type string, eventInitDict *TrackEventInit) (_result *TrackEvent)

func TrackEventFromJS

func TrackEventFromJS(value js.Value) *TrackEvent

TrackEventFromJS is casting a js.Value into TrackEvent.

func TrackEventFromWrapper

func TrackEventFromWrapper(input core.Wrapper) *TrackEvent

TrackEventFromJS is casting from something that holds a js.Value into TrackEvent.

func (*TrackEvent) Receiver

func (_this *TrackEvent) Receiver() *RtpReceiver

Receiver returning attribute 'receiver' with type RtpReceiver (idl: RTCRtpReceiver).

func (*TrackEvent) Streams

func (_this *TrackEvent) Streams() *javascript.FrozenArray

Streams returning attribute 'streams' with type javascript.FrozenArray (idl: FrozenArray).

func (*TrackEvent) Track

func (_this *TrackEvent) Track() *local.MediaStreamTrack

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

func (*TrackEvent) Transceiver

func (_this *TrackEvent) Transceiver() *RtpTransceiver

Transceiver returning attribute 'transceiver' with type RtpTransceiver (idl: RTCRtpTransceiver).

type TrackEventInit

type TrackEventInit struct {
	Bubbles     bool
	Cancelable  bool
	Composed    bool
	Receiver    *RtpReceiver
	Track       *local.MediaStreamTrack
	Streams     []*local.MediaStream
	Transceiver *RtpTransceiver
}

dictionary: RTCTrackEventInit

func TrackEventInitFromJS

func TrackEventInitFromJS(value js.Value) *TrackEventInit

TrackEventInitFromJS is allocating a new TrackEventInit object and copy all values in the value javascript object.

func (*TrackEventInit) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func GetSupportedAlgorithms

func GetSupportedAlgorithms() (_result []*Union)

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

Directories

Path Synopsis
Package stats contains WebRTC statistic data
Package stats contains WebRTC statistic data

Jump to

Keyboard shortcuts

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