webapi: github.com/gowebapi/webapi/media/webrtc Index | Files | Directories

package webrtc

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

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

Package Files

doc.go webrtc.go

type AnswerOptions Uses

type AnswerOptions struct {
    VoiceActivityDetection bool
}

dictionary: RTCAnswerOptions

func AnswerOptionsFromJS Uses

func AnswerOptionsFromJS(value js.Wrapper) *AnswerOptions

AnswerOptionsFromJS is allocating a new AnswerOptions object and copy all values from input javascript object

func (*AnswerOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type BundlePolicy Uses

type BundlePolicy int

enum: RTCBundlePolicy

const (
    BalancedRTCBundlePolicy BundlePolicy = iota
    MaxCompatRTCBundlePolicy
    MaxBundleRTCBundlePolicy
)

func BundlePolicyFromJS Uses

func BundlePolicyFromJS(value js.Value) BundlePolicy

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

func (*BundlePolicy) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (BundlePolicy) Value Uses

func (this BundlePolicy) Value() string

Value is converting this into javascript defined string value

type Certificate Uses

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

class: RTCCertificate

func CertificateFromJS Uses

func CertificateFromJS(value js.Wrapper) *Certificate

CertificateFromJS is casting a js.Wrapper into Certificate.

func (*Certificate) Expires Uses

func (_this *Certificate) Expires() int

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

func (*Certificate) GetFingerprints Uses

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

func (*Certificate) JSValue Uses

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

type CertificateExpiration Uses

type CertificateExpiration struct {
    Expires int
}

dictionary: RTCCertificateExpiration

func CertificateExpirationFromJS Uses

func CertificateExpirationFromJS(value js.Wrapper) *CertificateExpiration

CertificateExpirationFromJS is allocating a new CertificateExpiration object and copy all values from input javascript object

func (*CertificateExpiration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Configuration Uses

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

dictionary: RTCConfiguration

func ConfigurationFromJS Uses

func ConfigurationFromJS(value js.Wrapper) *Configuration

ConfigurationFromJS is allocating a new Configuration object and copy all values from input javascript object

func (*Configuration) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DTMFSender Uses

type DTMFSender struct {
    domcore.EventTarget
}

class: RTCDTMFSender

func DTMFSenderFromJS Uses

func DTMFSenderFromJS(value js.Wrapper) *DTMFSender

DTMFSenderFromJS is casting a js.Wrapper into DTMFSender.

func (*DTMFSender) AddEventToneChange Uses

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 Uses

func (_this *DTMFSender) CanInsertDTMF() bool

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

func (*DTMFSender) InsertDTMF Uses

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

func (*DTMFSender) OnToneChange Uses

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

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

func (*DTMFSender) SetOnToneChange Uses

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 Uses

func (_this *DTMFSender) ToneBuffer() string

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

type DTMFToneChangeEvent Uses

type DTMFToneChangeEvent struct {
    domcore.Event
}

class: RTCDTMFToneChangeEvent

func DTMFToneChangeEventFromJS Uses

func DTMFToneChangeEventFromJS(value js.Wrapper) *DTMFToneChangeEvent

DTMFToneChangeEventFromJS is casting a js.Wrapper into DTMFToneChangeEvent.

func NewRTCDTMFToneChangeEvent Uses

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

func (*DTMFToneChangeEvent) Tone Uses

func (_this *DTMFToneChangeEvent) Tone() string

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

type DTMFToneChangeEventInit Uses

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

dictionary: RTCDTMFToneChangeEventInit

func DTMFToneChangeEventInitFromJS Uses

func DTMFToneChangeEventInitFromJS(value js.Wrapper) *DTMFToneChangeEventInit

DTMFToneChangeEventInitFromJS is allocating a new DTMFToneChangeEventInit object and copy all values from input javascript object

func (*DTMFToneChangeEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DataChannel Uses

type DataChannel struct {
    domcore.EventTarget
}

class: RTCDataChannel

func DataChannelFromJS Uses

func DataChannelFromJS(value js.Wrapper) *DataChannel

DataChannelFromJS is casting a js.Wrapper into DataChannel.

func (*DataChannel) AddEventBufferedAmountLow Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (_this *DataChannel) BinaryType() string

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

func (*DataChannel) BufferedAmount Uses

func (_this *DataChannel) BufferedAmount() uint

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

func (*DataChannel) BufferedAmountLowThreshold Uses

func (_this *DataChannel) BufferedAmountLowThreshold() uint

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

func (*DataChannel) Close Uses

func (_this *DataChannel) Close()

func (*DataChannel) Id Uses

func (_this *DataChannel) Id() *int

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

func (*DataChannel) Label Uses

func (_this *DataChannel) Label() string

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

func (*DataChannel) MaxPacketLifeTime Uses

func (_this *DataChannel) MaxPacketLifeTime() *int

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

func (*DataChannel) MaxRetransmits Uses

func (_this *DataChannel) MaxRetransmits() *int

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

func (*DataChannel) Negotiated Uses

func (_this *DataChannel) Negotiated() bool

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

func (*DataChannel) OnBufferedAmountLow Uses

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

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

func (*DataChannel) OnClose Uses

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

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

func (*DataChannel) OnError Uses

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

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

func (*DataChannel) OnMessage Uses

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

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

func (*DataChannel) OnOpen Uses

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

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

func (*DataChannel) Ordered Uses

func (_this *DataChannel) Ordered() bool

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

func (*DataChannel) Priority Uses

func (_this *DataChannel) Priority() PriorityType

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

func (*DataChannel) Protocol Uses

func (_this *DataChannel) Protocol() string

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

func (*DataChannel) ReadyState Uses

func (_this *DataChannel) ReadyState() DataChannelState

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

func (*DataChannel) Send Uses

func (_this *DataChannel) Send(data string)

func (*DataChannel) Send2 Uses

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

func (*DataChannel) Send3 Uses

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

func (*DataChannel) Send4 Uses

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

func (*DataChannel) SetBinaryType Uses

func (_this *DataChannel) SetBinaryType(value string)

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

func (*DataChannel) SetBufferedAmountLowThreshold Uses

func (_this *DataChannel) SetBufferedAmountLowThreshold(value uint)

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

func (*DataChannel) SetOnBufferedAmountLow Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type DataChannelEvent struct {
    domcore.Event
}

class: RTCDataChannelEvent

func DataChannelEventFromJS Uses

func DataChannelEventFromJS(value js.Wrapper) *DataChannelEvent

DataChannelEventFromJS is casting a js.Wrapper into DataChannelEvent.

func NewRTCDataChannelEvent Uses

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

func (*DataChannelEvent) Channel Uses

func (_this *DataChannelEvent) Channel() *DataChannel

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

type DataChannelEventInit Uses

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

dictionary: RTCDataChannelEventInit

func DataChannelEventInitFromJS Uses

func DataChannelEventInitFromJS(value js.Wrapper) *DataChannelEventInit

DataChannelEventInitFromJS is allocating a new DataChannelEventInit object and copy all values from input javascript object

func (*DataChannelEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DataChannelInit Uses

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

dictionary: RTCDataChannelInit

func DataChannelInitFromJS Uses

func DataChannelInitFromJS(value js.Wrapper) *DataChannelInit

DataChannelInitFromJS is allocating a new DataChannelInit object and copy all values from input javascript object

func (*DataChannelInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DataChannelState Uses

type DataChannelState int

enum: RTCDataChannelState

const (
    ConnectingRTCDataChannelState DataChannelState = iota
    OpenRTCDataChannelState
    ClosingRTCDataChannelState
    ClosedRTCDataChannelState
)

func DataChannelStateFromJS Uses

func DataChannelStateFromJS(value js.Value) DataChannelState

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

func (*DataChannelState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (DataChannelState) Value Uses

func (this DataChannelState) Value() string

Value is converting this into javascript defined string value

type DegradationPreference Uses

type DegradationPreference int

enum: RTCDegradationPreference

const (
    MaintainFramerateRTCDegradationPreference DegradationPreference = iota
    MaintainResolutionRTCDegradationPreference
    BalancedRTCDegradationPreference
)

func DegradationPreferenceFromJS Uses

func DegradationPreferenceFromJS(value js.Value) DegradationPreference

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

func (*DegradationPreference) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (DegradationPreference) Value Uses

func (this DegradationPreference) Value() string

Value is converting this into javascript defined string value

type DtlsFingerprint Uses

type DtlsFingerprint struct {
    Algorithm string
    Value     string
}

dictionary: RTCDtlsFingerprint

func DtlsFingerprintFromJS Uses

func DtlsFingerprintFromJS(value js.Wrapper) *DtlsFingerprint

DtlsFingerprintFromJS is allocating a new DtlsFingerprint object and copy all values from input javascript object

func (*DtlsFingerprint) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type DtlsTransport Uses

type DtlsTransport struct {
    domcore.EventTarget
}

class: RTCDtlsTransport

func DtlsTransportFromJS Uses

func DtlsTransportFromJS(value js.Wrapper) *DtlsTransport

DtlsTransportFromJS is casting a js.Wrapper into DtlsTransport.

func (*DtlsTransport) AddEventError Uses

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 Uses

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 Uses

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

func (*DtlsTransport) IceTransport Uses

func (_this *DtlsTransport) IceTransport() *IceTransport

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

func (*DtlsTransport) OnError Uses

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

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

func (*DtlsTransport) OnStateChange Uses

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

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

func (*DtlsTransport) SetOnError Uses

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 Uses

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 Uses

func (_this *DtlsTransport) State() DtlsTransportState

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

type DtlsTransportState Uses

type DtlsTransportState int

enum: RTCDtlsTransportState

const (
    NewRTCDtlsTransportState DtlsTransportState = iota
    ConnectingRTCDtlsTransportState
    ConnectedRTCDtlsTransportState
    ClosedRTCDtlsTransportState
    FailedRTCDtlsTransportState
)

func DtlsTransportStateFromJS Uses

func DtlsTransportStateFromJS(value js.Value) DtlsTransportState

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

func (*DtlsTransportState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (DtlsTransportState) Value Uses

func (this DtlsTransportState) Value() string

Value is converting this into javascript defined string value

type DtxStatus Uses

type DtxStatus int

enum: RTCDtxStatus

const (
    DisabledRTCDtxStatus DtxStatus = iota
    EnabledRTCDtxStatus
)

func DtxStatusFromJS Uses

func DtxStatusFromJS(value js.Value) DtxStatus

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

func (*DtxStatus) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (DtxStatus) Value Uses

func (this DtxStatus) Value() string

Value is converting this into javascript defined string value

type Error Uses

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

class: RTCError

func ErrorFromJS Uses

func ErrorFromJS(value js.Wrapper) *Error

ErrorFromJS is casting a js.Wrapper into Error.

func (*Error) JSValue Uses

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

type ErrorEvent Uses

type ErrorEvent struct {
    domcore.Event
}

class: RTCErrorEvent

func ErrorEventFromJS Uses

func ErrorEventFromJS(value js.Wrapper) *ErrorEvent

ErrorEventFromJS is casting a js.Wrapper into ErrorEvent.

func NewRTCErrorEvent Uses

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

func (*ErrorEvent) Error Uses

func (_this *ErrorEvent) Error() *Error

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

type ErrorEventInit Uses

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

dictionary: RTCErrorEventInit

func ErrorEventInitFromJS Uses

func ErrorEventInitFromJS(value js.Wrapper) *ErrorEventInit

ErrorEventInitFromJS is allocating a new ErrorEventInit object and copy all values from input javascript object

func (*ErrorEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IceCandidate Uses

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

class: RTCIceCandidate

func IceCandidateFromJS Uses

func IceCandidateFromJS(value js.Wrapper) *IceCandidate

IceCandidateFromJS is casting a js.Wrapper into IceCandidate.

func NewRTCIceCandidate Uses

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

func (*IceCandidate) Address Uses

func (_this *IceCandidate) Address() *string

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

func (*IceCandidate) Candidate Uses

func (_this *IceCandidate) Candidate() string

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

func (*IceCandidate) Component Uses

func (_this *IceCandidate) Component() *IceComponent

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

func (*IceCandidate) Foundation Uses

func (_this *IceCandidate) Foundation() *string

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

func (*IceCandidate) JSValue Uses

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

func (*IceCandidate) Port Uses

func (_this *IceCandidate) Port() *int

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

func (*IceCandidate) Priority Uses

func (_this *IceCandidate) Priority() *uint

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

func (*IceCandidate) Protocol Uses

func (_this *IceCandidate) Protocol() *IceProtocol

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

func (*IceCandidate) RelatedAddress Uses

func (_this *IceCandidate) RelatedAddress() *string

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

func (*IceCandidate) RelatedPort Uses

func (_this *IceCandidate) RelatedPort() *int

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

func (*IceCandidate) SdpMLineIndex Uses

func (_this *IceCandidate) SdpMLineIndex() *int

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

func (*IceCandidate) SdpMid Uses

func (_this *IceCandidate) SdpMid() *string

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

func (*IceCandidate) TcpType Uses

func (_this *IceCandidate) TcpType() *IceTcpCandidateType

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

func (*IceCandidate) ToJSON Uses

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

func (*IceCandidate) Type Uses

func (_this *IceCandidate) Type() *IceCandidateType

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

func (*IceCandidate) UsernameFragment Uses

func (_this *IceCandidate) UsernameFragment() *string

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

type IceCandidateInit Uses

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

dictionary: RTCIceCandidateInit

func IceCandidateInitFromJS Uses

func IceCandidateInitFromJS(value js.Wrapper) *IceCandidateInit

IceCandidateInitFromJS is allocating a new IceCandidateInit object and copy all values from input javascript object

func (*IceCandidateInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IceCandidatePair Uses

type IceCandidatePair struct {
    Local  *IceCandidate
    Remote *IceCandidate
}

dictionary: RTCIceCandidatePair

func IceCandidatePairFromJS Uses

func IceCandidatePairFromJS(value js.Wrapper) *IceCandidatePair

IceCandidatePairFromJS is allocating a new IceCandidatePair object and copy all values from input javascript object

func (*IceCandidatePair) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IceCandidateType Uses

type IceCandidateType int

enum: RTCIceCandidateType

const (
    HostRTCIceCandidateType IceCandidateType = iota
    SrflxRTCIceCandidateType
    PrflxRTCIceCandidateType
    RelayRTCIceCandidateType
)

func IceCandidateTypeFromJS Uses

func IceCandidateTypeFromJS(value js.Value) IceCandidateType

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

func (*IceCandidateType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceCandidateType) Value Uses

func (this IceCandidateType) Value() string

Value is converting this into javascript defined string value

type IceComponent Uses

type IceComponent int

enum: RTCIceComponent

const (
    RtpRTCIceComponent IceComponent = iota
    RtcpRTCIceComponent
)

func IceComponentFromJS Uses

func IceComponentFromJS(value js.Value) IceComponent

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

func (*IceComponent) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceComponent) Value Uses

func (this IceComponent) Value() string

Value is converting this into javascript defined string value

type IceConnectionState Uses

type IceConnectionState int

enum: RTCIceConnectionState

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

func IceConnectionStateFromJS Uses

func IceConnectionStateFromJS(value js.Value) IceConnectionState

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

func (*IceConnectionState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceConnectionState) Value Uses

func (this IceConnectionState) Value() string

Value is converting this into javascript defined string value

type IceCredentialType Uses

type IceCredentialType int

enum: RTCIceCredentialType

const (
    PasswordRTCIceCredentialType IceCredentialType = iota
    OauthRTCIceCredentialType
)

func IceCredentialTypeFromJS Uses

func IceCredentialTypeFromJS(value js.Value) IceCredentialType

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

func (*IceCredentialType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceCredentialType) Value Uses

func (this IceCredentialType) Value() string

Value is converting this into javascript defined string value

type IceGathererState Uses

type IceGathererState int

enum: RTCIceGathererState

const (
    NewRTCIceGathererState IceGathererState = iota
    GatheringRTCIceGathererState
    CompleteRTCIceGathererState
)

func IceGathererStateFromJS Uses

func IceGathererStateFromJS(value js.Value) IceGathererState

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

func (*IceGathererState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceGathererState) Value Uses

func (this IceGathererState) Value() string

Value is converting this into javascript defined string value

type IceGatheringState Uses

type IceGatheringState int

enum: RTCIceGatheringState

const (
    NewRTCIceGatheringState IceGatheringState = iota
    GatheringRTCIceGatheringState
    CompleteRTCIceGatheringState
)

func IceGatheringStateFromJS Uses

func IceGatheringStateFromJS(value js.Value) IceGatheringState

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

func (*IceGatheringState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceGatheringState) Value Uses

func (this IceGatheringState) Value() string

Value is converting this into javascript defined string value

type IceParameters Uses

type IceParameters struct {
    UsernameFragment string
    Password         string
}

dictionary: RTCIceParameters

func IceParametersFromJS Uses

func IceParametersFromJS(value js.Wrapper) *IceParameters

IceParametersFromJS is allocating a new IceParameters object and copy all values from input javascript object

func (*IceParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IceProtocol Uses

type IceProtocol int

enum: RTCIceProtocol

const (
    UdpRTCIceProtocol IceProtocol = iota
    TcpRTCIceProtocol
)

func IceProtocolFromJS Uses

func IceProtocolFromJS(value js.Value) IceProtocol

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

func (*IceProtocol) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceProtocol) Value Uses

func (this IceProtocol) Value() string

Value is converting this into javascript defined string value

type IceRole Uses

type IceRole int

enum: RTCIceRole

const (
    ControllingRTCIceRole IceRole = iota
    ControlledRTCIceRole
)

func IceRoleFromJS Uses

func IceRoleFromJS(value js.Value) IceRole

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

func (*IceRole) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceRole) Value Uses

func (this IceRole) Value() string

Value is converting this into javascript defined string value

type IceServer Uses

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

dictionary: RTCIceServer

func GetDefaultIceServers Uses

func GetDefaultIceServers() (_result []*IceServer)

func IceServerFromJS Uses

func IceServerFromJS(value js.Wrapper) *IceServer

IceServerFromJS is allocating a new IceServer object and copy all values from input javascript object

func (*IceServer) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type IceTcpCandidateType Uses

type IceTcpCandidateType int

enum: RTCIceTcpCandidateType

const (
    ActiveRTCIceTcpCandidateType IceTcpCandidateType = iota
    PassiveRTCIceTcpCandidateType
    SoRTCIceTcpCandidateType
)

func IceTcpCandidateTypeFromJS Uses

func IceTcpCandidateTypeFromJS(value js.Value) IceTcpCandidateType

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

func (*IceTcpCandidateType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceTcpCandidateType) Value Uses

func (this IceTcpCandidateType) Value() string

Value is converting this into javascript defined string value

type IceTransport Uses

type IceTransport struct {
    domcore.EventTarget
}

class: RTCIceTransport

func IceTransportFromJS Uses

func IceTransportFromJS(value js.Wrapper) *IceTransport

IceTransportFromJS is casting a js.Wrapper into IceTransport.

func (*IceTransport) AddEventGatheringStateChange Uses

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 Uses

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 Uses

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 Uses

func (_this *IceTransport) Component() IceComponent

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

func (*IceTransport) GatheringState Uses

func (_this *IceTransport) GatheringState() IceGathererState

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

func (*IceTransport) GetLocalCandidates Uses

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

func (*IceTransport) GetLocalParameters Uses

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

func (*IceTransport) GetRemoteCandidates Uses

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

func (*IceTransport) GetRemoteParameters Uses

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

func (*IceTransport) GetSelectedCandidatePair Uses

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

func (*IceTransport) OnGatheringStateChange Uses

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

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

func (*IceTransport) OnSelectedCandidatePairChange Uses

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

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

func (*IceTransport) OnStateChange Uses

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

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

func (*IceTransport) Role Uses

func (_this *IceTransport) Role() IceRole

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

func (*IceTransport) SetOnGatheringStateChange Uses

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 Uses

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 Uses

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 Uses

func (_this *IceTransport) State() IceTransportState

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

type IceTransportPolicy Uses

type IceTransportPolicy int

enum: RTCIceTransportPolicy

const (
    RelayRTCIceTransportPolicy IceTransportPolicy = iota
    AllRTCIceTransportPolicy
)

func IceTransportPolicyFromJS Uses

func IceTransportPolicyFromJS(value js.Value) IceTransportPolicy

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

func (*IceTransportPolicy) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceTransportPolicy) Value Uses

func (this IceTransportPolicy) Value() string

Value is converting this into javascript defined string value

type IceTransportState Uses

type IceTransportState int

enum: RTCIceTransportState

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

func IceTransportStateFromJS Uses

func IceTransportStateFromJS(value js.Value) IceTransportState

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

func (*IceTransportState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (IceTransportState) Value Uses

func (this IceTransportState) Value() string

Value is converting this into javascript defined string value

type OAuthCredential Uses

type OAuthCredential struct {
    MacKey      string
    AccessToken string
}

dictionary: RTCOAuthCredential

func OAuthCredentialFromJS Uses

func OAuthCredentialFromJS(value js.Wrapper) *OAuthCredential

OAuthCredentialFromJS is allocating a new OAuthCredential object and copy all values from input javascript object

func (*OAuthCredential) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type OfferAnswerOptions Uses

type OfferAnswerOptions struct {
    VoiceActivityDetection bool
}

dictionary: RTCOfferAnswerOptions

func OfferAnswerOptionsFromJS Uses

func OfferAnswerOptionsFromJS(value js.Wrapper) *OfferAnswerOptions

OfferAnswerOptionsFromJS is allocating a new OfferAnswerOptions object and copy all values from input javascript object

func (*OfferAnswerOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type OfferOptions Uses

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

dictionary: RTCOfferOptions

func OfferOptionsFromJS Uses

func OfferOptionsFromJS(value js.Wrapper) *OfferOptions

OfferOptionsFromJS is allocating a new OfferOptions object and copy all values from input javascript object

func (*OfferOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PeerConnection Uses

type PeerConnection struct {
    domcore.EventTarget
}

class: RTCPeerConnection

func NewRTCPeerConnection Uses

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

func PeerConnectionFromJS Uses

func PeerConnectionFromJS(value js.Wrapper) *PeerConnection

PeerConnectionFromJS is casting a js.Wrapper into PeerConnection.

func (*PeerConnection) AddEventConnectionStateChange Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*PeerConnection) AddIceCandidate2 Uses

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

func (*PeerConnection) AddTrack Uses

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

func (*PeerConnection) AddTransceiver Uses

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

func (*PeerConnection) CanTrickleIceCandidates Uses

func (_this *PeerConnection) CanTrickleIceCandidates() *bool

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

func (*PeerConnection) Close Uses

func (_this *PeerConnection) Close()

func (*PeerConnection) ConnectionState Uses

func (_this *PeerConnection) ConnectionState() PeerConnectionState

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

func (*PeerConnection) CreateAnswer Uses

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

func (*PeerConnection) CreateAnswer2 Uses

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

func (*PeerConnection) CreateDataChannel Uses

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

func (*PeerConnection) CreateOffer Uses

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

func (*PeerConnection) CreateOffer2 Uses

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

func (*PeerConnection) CurrentLocalDescription Uses

func (_this *PeerConnection) CurrentLocalDescription() *SessionDescription

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

func (*PeerConnection) CurrentRemoteDescription Uses

func (_this *PeerConnection) CurrentRemoteDescription() *SessionDescription

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

func (*PeerConnection) GetConfiguration Uses

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

func (*PeerConnection) GetReceivers Uses

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

func (*PeerConnection) GetSenders Uses

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

func (*PeerConnection) GetStats Uses

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

func (*PeerConnection) GetTransceivers Uses

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

func (*PeerConnection) IceConnectionState Uses

func (_this *PeerConnection) IceConnectionState() IceConnectionState

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

func (*PeerConnection) IceGatheringState Uses

func (_this *PeerConnection) IceGatheringState() IceGatheringState

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

func (*PeerConnection) LocalDescription Uses

func (_this *PeerConnection) LocalDescription() *SessionDescription

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

func (*PeerConnection) OnConnectionStateChange Uses

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

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

func (*PeerConnection) OnDataChannel Uses

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

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

func (*PeerConnection) OnIceCandidate Uses

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

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

func (*PeerConnection) OnIceCandidateError Uses

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

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

func (*PeerConnection) OnIceConnectionStateChange Uses

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

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

func (*PeerConnection) OnIceGatheringStateChange Uses

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

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

func (*PeerConnection) OnNegotiationNeeded Uses

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

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

func (*PeerConnection) OnSignalingStateChange Uses

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

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

func (*PeerConnection) OnStatsEnded Uses

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

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

func (*PeerConnection) OnTrack Uses

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

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

func (*PeerConnection) PendingLocalDescription Uses

func (_this *PeerConnection) PendingLocalDescription() *SessionDescription

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

func (*PeerConnection) PendingRemoteDescription Uses

func (_this *PeerConnection) PendingRemoteDescription() *SessionDescription

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

func (*PeerConnection) RemoteDescription Uses

func (_this *PeerConnection) RemoteDescription() *SessionDescription

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

func (*PeerConnection) RemoveTrack Uses

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

func (*PeerConnection) Sctp Uses

func (_this *PeerConnection) Sctp() *SctpTransport

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

func (*PeerConnection) SetConfiguration Uses

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

func (*PeerConnection) SetLocalDescription Uses

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

func (*PeerConnection) SetLocalDescription2 Uses

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

func (*PeerConnection) SetOnConnectionStateChange Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*PeerConnection) SetRemoteDescription2 Uses

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

func (*PeerConnection) SignalingState Uses

func (_this *PeerConnection) SignalingState() SignalingState

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

type PeerConnectionErrorCallback Uses

type PeerConnectionErrorCallback js.Func

PeerConnectionErrorCallback is a javascript function type.

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

func PeerConnectionErrorCallbackToJS Uses

func PeerConnectionErrorCallbackToJS(callback PeerConnectionErrorCallbackFunc) *PeerConnectionErrorCallback

type PeerConnectionErrorCallbackFunc Uses

type PeerConnectionErrorCallbackFunc func(_error *domcore.DOMException)

callback: RTCPeerConnectionErrorCallback

func PeerConnectionErrorCallbackFromJS Uses

func PeerConnectionErrorCallbackFromJS(_value js.Value) PeerConnectionErrorCallbackFunc

type PeerConnectionIceErrorEvent Uses

type PeerConnectionIceErrorEvent struct {
    domcore.Event
}

class: RTCPeerConnectionIceErrorEvent

func NewRTCPeerConnectionIceErrorEvent Uses

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

func PeerConnectionIceErrorEventFromJS Uses

func PeerConnectionIceErrorEventFromJS(value js.Wrapper) *PeerConnectionIceErrorEvent

PeerConnectionIceErrorEventFromJS is casting a js.Wrapper into PeerConnectionIceErrorEvent.

func (*PeerConnectionIceErrorEvent) ErrorCode Uses

func (_this *PeerConnectionIceErrorEvent) ErrorCode() int

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

func (*PeerConnectionIceErrorEvent) ErrorText Uses

func (_this *PeerConnectionIceErrorEvent) ErrorText() string

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

func (*PeerConnectionIceErrorEvent) HostCandidate Uses

func (_this *PeerConnectionIceErrorEvent) HostCandidate() string

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

func (*PeerConnectionIceErrorEvent) Url Uses

func (_this *PeerConnectionIceErrorEvent) Url() string

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

type PeerConnectionIceErrorEventInit Uses

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

dictionary: RTCPeerConnectionIceErrorEventInit

func PeerConnectionIceErrorEventInitFromJS Uses

func PeerConnectionIceErrorEventInitFromJS(value js.Wrapper) *PeerConnectionIceErrorEventInit

PeerConnectionIceErrorEventInitFromJS is allocating a new PeerConnectionIceErrorEventInit object and copy all values from input javascript object

func (*PeerConnectionIceErrorEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PeerConnectionIceEvent Uses

type PeerConnectionIceEvent struct {
    domcore.Event
}

class: RTCPeerConnectionIceEvent

func NewRTCPeerConnectionIceEvent Uses

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

func PeerConnectionIceEventFromJS Uses

func PeerConnectionIceEventFromJS(value js.Wrapper) *PeerConnectionIceEvent

PeerConnectionIceEventFromJS is casting a js.Wrapper into PeerConnectionIceEvent.

func (*PeerConnectionIceEvent) Candidate Uses

func (_this *PeerConnectionIceEvent) Candidate() *IceCandidate

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

func (*PeerConnectionIceEvent) Url Uses

func (_this *PeerConnectionIceEvent) Url() *string

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

type PeerConnectionIceEventInit Uses

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

dictionary: RTCPeerConnectionIceEventInit

func PeerConnectionIceEventInitFromJS Uses

func PeerConnectionIceEventInitFromJS(value js.Wrapper) *PeerConnectionIceEventInit

PeerConnectionIceEventInitFromJS is allocating a new PeerConnectionIceEventInit object and copy all values from input javascript object

func (*PeerConnectionIceEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type PeerConnectionState Uses

type PeerConnectionState int

enum: RTCPeerConnectionState

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

func PeerConnectionStateFromJS Uses

func PeerConnectionStateFromJS(value js.Value) PeerConnectionState

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

func (*PeerConnectionState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PeerConnectionState) Value Uses

func (this PeerConnectionState) Value() string

Value is converting this into javascript defined string value

type PriorityType Uses

type PriorityType int

enum: RTCPriorityType

const (
    VeryLowRTCPriorityType PriorityType = iota
    LowRTCPriorityType
    MediumRTCPriorityType
    HighRTCPriorityType
)

func PriorityTypeFromJS Uses

func PriorityTypeFromJS(value js.Value) PriorityType

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

func (*PriorityType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (PriorityType) Value Uses

func (this PriorityType) Value() string

Value is converting this into javascript defined string value

type PromiseCertificate Uses

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

class: Promise

func GenerateCertificate Uses

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

func PromiseCertificateFromJS Uses

func PromiseCertificateFromJS(value js.Wrapper) *PromiseCertificate

PromiseCertificateFromJS is casting a js.Wrapper into PromiseCertificate.

func (*PromiseCertificate) Catch Uses

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

func (*PromiseCertificate) Finally Uses

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

func (*PromiseCertificate) JSValue Uses

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

func (*PromiseCertificate) Then Uses

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

type PromiseCertificateOnFulfilled Uses

type PromiseCertificateOnFulfilled js.Func

PromiseCertificateOnFulfilled is a javascript function type.

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

func PromiseCertificateOnFulfilledToJS Uses

func PromiseCertificateOnFulfilledToJS(callback PromiseCertificateOnFulfilledFunc) *PromiseCertificateOnFulfilled

type PromiseCertificateOnFulfilledFunc Uses

type PromiseCertificateOnFulfilledFunc func(value *Certificate)

callback: PromiseTemplateOnFulfilled

func PromiseCertificateOnFulfilledFromJS Uses

func PromiseCertificateOnFulfilledFromJS(_value js.Value) PromiseCertificateOnFulfilledFunc

type PromiseCertificateOnRejected Uses

type PromiseCertificateOnRejected js.Func

PromiseCertificateOnRejected is a javascript function type.

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

func PromiseCertificateOnRejectedToJS Uses

func PromiseCertificateOnRejectedToJS(callback PromiseCertificateOnRejectedFunc) *PromiseCertificateOnRejected

type PromiseCertificateOnRejectedFunc Uses

type PromiseCertificateOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseCertificateOnRejectedFromJS Uses

func PromiseCertificateOnRejectedFromJS(_value js.Value) PromiseCertificateOnRejectedFunc

type PromiseSessionDescriptionInit Uses

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

class: Promise

func PromiseSessionDescriptionInitFromJS Uses

func PromiseSessionDescriptionInitFromJS(value js.Wrapper) *PromiseSessionDescriptionInit

PromiseSessionDescriptionInitFromJS is casting a js.Wrapper into PromiseSessionDescriptionInit.

func (*PromiseSessionDescriptionInit) Catch Uses

func (_this *PromiseSessionDescriptionInit) Catch(onRejected *PromiseSessionDescriptionInitOnRejected) (_result *PromiseSessionDescriptionInit)

func (*PromiseSessionDescriptionInit) Finally Uses

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

func (*PromiseSessionDescriptionInit) JSValue Uses

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

func (*PromiseSessionDescriptionInit) Then Uses

func (_this *PromiseSessionDescriptionInit) Then(onFulfilled *PromiseSessionDescriptionInitOnFulfilled, onRejected *PromiseSessionDescriptionInitOnRejected) (_result *PromiseSessionDescriptionInit)

type PromiseSessionDescriptionInitOnFulfilled Uses

type PromiseSessionDescriptionInitOnFulfilled js.Func

PromiseSessionDescriptionInitOnFulfilled is a javascript function type.

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

func PromiseSessionDescriptionInitOnFulfilledToJS Uses

func PromiseSessionDescriptionInitOnFulfilledToJS(callback PromiseSessionDescriptionInitOnFulfilledFunc) *PromiseSessionDescriptionInitOnFulfilled

type PromiseSessionDescriptionInitOnFulfilledFunc Uses

type PromiseSessionDescriptionInitOnFulfilledFunc func(value *SessionDescriptionInit)

callback: PromiseTemplateOnFulfilled

func PromiseSessionDescriptionInitOnFulfilledFromJS Uses

func PromiseSessionDescriptionInitOnFulfilledFromJS(_value js.Value) PromiseSessionDescriptionInitOnFulfilledFunc

type PromiseSessionDescriptionInitOnRejected Uses

type PromiseSessionDescriptionInitOnRejected js.Func

PromiseSessionDescriptionInitOnRejected is a javascript function type.

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

func PromiseSessionDescriptionInitOnRejectedToJS Uses

func PromiseSessionDescriptionInitOnRejectedToJS(callback PromiseSessionDescriptionInitOnRejectedFunc) *PromiseSessionDescriptionInitOnRejected

type PromiseSessionDescriptionInitOnRejectedFunc Uses

type PromiseSessionDescriptionInitOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSessionDescriptionInitOnRejectedFromJS Uses

func PromiseSessionDescriptionInitOnRejectedFromJS(_value js.Value) PromiseSessionDescriptionInitOnRejectedFunc

type PromiseStatsReport Uses

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

class: Promise

func PromiseStatsReportFromJS Uses

func PromiseStatsReportFromJS(value js.Wrapper) *PromiseStatsReport

PromiseStatsReportFromJS is casting a js.Wrapper into PromiseStatsReport.

func (*PromiseStatsReport) Catch Uses

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

func (*PromiseStatsReport) Finally Uses

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

func (*PromiseStatsReport) JSValue Uses

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

func (*PromiseStatsReport) Then Uses

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

type PromiseStatsReportOnFulfilled Uses

type PromiseStatsReportOnFulfilled js.Func

PromiseStatsReportOnFulfilled is a javascript function type.

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

func PromiseStatsReportOnFulfilledToJS Uses

func PromiseStatsReportOnFulfilledToJS(callback PromiseStatsReportOnFulfilledFunc) *PromiseStatsReportOnFulfilled

type PromiseStatsReportOnFulfilledFunc Uses

type PromiseStatsReportOnFulfilledFunc func(value *StatsReport)

callback: PromiseTemplateOnFulfilled

func PromiseStatsReportOnFulfilledFromJS Uses

func PromiseStatsReportOnFulfilledFromJS(_value js.Value) PromiseStatsReportOnFulfilledFunc

type PromiseStatsReportOnRejected Uses

type PromiseStatsReportOnRejected js.Func

PromiseStatsReportOnRejected is a javascript function type.

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

func PromiseStatsReportOnRejectedToJS Uses

func PromiseStatsReportOnRejectedToJS(callback PromiseStatsReportOnRejectedFunc) *PromiseStatsReportOnRejected

type PromiseStatsReportOnRejectedFunc Uses

type PromiseStatsReportOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseStatsReportOnRejectedFromJS Uses

func PromiseStatsReportOnRejectedFromJS(_value js.Value) PromiseStatsReportOnRejectedFunc

type RtcpMuxPolicy Uses

type RtcpMuxPolicy int

enum: RTCRtcpMuxPolicy

const (
    NegotiateRTCRtcpMuxPolicy RtcpMuxPolicy = iota
    RequireRTCRtcpMuxPolicy
)

func RtcpMuxPolicyFromJS Uses

func RtcpMuxPolicyFromJS(value js.Value) RtcpMuxPolicy

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

func (*RtcpMuxPolicy) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (RtcpMuxPolicy) Value Uses

func (this RtcpMuxPolicy) Value() string

Value is converting this into javascript defined string value

type RtcpParameters Uses

type RtcpParameters struct {
    Cname       string
    ReducedSize bool
}

dictionary: RTCRtcpParameters

func RtcpParametersFromJS Uses

func RtcpParametersFromJS(value js.Wrapper) *RtcpParameters

RtcpParametersFromJS is allocating a new RtcpParameters object and copy all values from input javascript object

func (*RtcpParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpCapabilities Uses

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

dictionary: RTCRtpCapabilities

func GetCapabilities Uses

func GetCapabilities(kind string) (_result *RtpCapabilities)

func GetCapabilities2 Uses

func GetCapabilities2(kind string) (_result *RtpCapabilities)

func RtpCapabilitiesFromJS Uses

func RtpCapabilitiesFromJS(value js.Wrapper) *RtpCapabilities

RtpCapabilitiesFromJS is allocating a new RtpCapabilities object and copy all values from input javascript object

func (*RtpCapabilities) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpCodecCapability Uses

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

dictionary: RTCRtpCodecCapability

func RtpCodecCapabilityFromJS Uses

func RtpCodecCapabilityFromJS(value js.Wrapper) *RtpCodecCapability

RtpCodecCapabilityFromJS is allocating a new RtpCodecCapability object and copy all values from input javascript object

func (*RtpCodecCapability) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpCodecParameters Uses

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

dictionary: RTCRtpCodecParameters

func RtpCodecParametersFromJS Uses

func RtpCodecParametersFromJS(value js.Wrapper) *RtpCodecParameters

RtpCodecParametersFromJS is allocating a new RtpCodecParameters object and copy all values from input javascript object

func (*RtpCodecParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpCodingParameters Uses

type RtpCodingParameters struct {
    Rid string
}

dictionary: RTCRtpCodingParameters

func RtpCodingParametersFromJS Uses

func RtpCodingParametersFromJS(value js.Wrapper) *RtpCodingParameters

RtpCodingParametersFromJS is allocating a new RtpCodingParameters object and copy all values from input javascript object

func (*RtpCodingParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpContributingSource Uses

type RtpContributingSource struct {
    Timestamp  float64
    Source     uint
    AudioLevel float64
}

dictionary: RTCRtpContributingSource

func RtpContributingSourceFromJS Uses

func RtpContributingSourceFromJS(value js.Wrapper) *RtpContributingSource

RtpContributingSourceFromJS is allocating a new RtpContributingSource object and copy all values from input javascript object

func (*RtpContributingSource) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpDecodingParameters Uses

type RtpDecodingParameters struct {
    Rid string
}

dictionary: RTCRtpDecodingParameters

func RtpDecodingParametersFromJS Uses

func RtpDecodingParametersFromJS(value js.Wrapper) *RtpDecodingParameters

RtpDecodingParametersFromJS is allocating a new RtpDecodingParameters object and copy all values from input javascript object

func (*RtpDecodingParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpEncodingParameters Uses

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 Uses

func RtpEncodingParametersFromJS(value js.Wrapper) *RtpEncodingParameters

RtpEncodingParametersFromJS is allocating a new RtpEncodingParameters object and copy all values from input javascript object

func (*RtpEncodingParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpHeaderExtensionCapability Uses

type RtpHeaderExtensionCapability struct {
    Uri string
}

dictionary: RTCRtpHeaderExtensionCapability

func RtpHeaderExtensionCapabilityFromJS Uses

func RtpHeaderExtensionCapabilityFromJS(value js.Wrapper) *RtpHeaderExtensionCapability

RtpHeaderExtensionCapabilityFromJS is allocating a new RtpHeaderExtensionCapability object and copy all values from input javascript object

func (*RtpHeaderExtensionCapability) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpHeaderExtensionParameters Uses

type RtpHeaderExtensionParameters struct {
    Uri       string
    Id        int
    Encrypted bool
}

dictionary: RTCRtpHeaderExtensionParameters

func RtpHeaderExtensionParametersFromJS Uses

func RtpHeaderExtensionParametersFromJS(value js.Wrapper) *RtpHeaderExtensionParameters

RtpHeaderExtensionParametersFromJS is allocating a new RtpHeaderExtensionParameters object and copy all values from input javascript object

func (*RtpHeaderExtensionParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpParameters Uses

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

dictionary: RTCRtpParameters

func RtpParametersFromJS Uses

func RtpParametersFromJS(value js.Wrapper) *RtpParameters

RtpParametersFromJS is allocating a new RtpParameters object and copy all values from input javascript object

func (*RtpParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpReceiveParameters Uses

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

dictionary: RTCRtpReceiveParameters

func RtpReceiveParametersFromJS Uses

func RtpReceiveParametersFromJS(value js.Wrapper) *RtpReceiveParameters

RtpReceiveParametersFromJS is allocating a new RtpReceiveParameters object and copy all values from input javascript object

func (*RtpReceiveParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpReceiver Uses

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

class: RTCRtpReceiver

func RtpReceiverFromJS Uses

func RtpReceiverFromJS(value js.Wrapper) *RtpReceiver

RtpReceiverFromJS is casting a js.Wrapper into RtpReceiver.

func (*RtpReceiver) GetContributingSources Uses

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

func (*RtpReceiver) GetParameters Uses

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

func (*RtpReceiver) GetStats Uses

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

func (*RtpReceiver) GetSynchronizationSources Uses

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

func (*RtpReceiver) JSValue Uses

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

func (*RtpReceiver) RtcpTransport Uses

func (_this *RtpReceiver) RtcpTransport() *DtlsTransport

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

func (*RtpReceiver) Track Uses

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

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

func (*RtpReceiver) Transport Uses

func (_this *RtpReceiver) Transport() *DtlsTransport

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

type RtpSendParameters Uses

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

dictionary: RTCRtpSendParameters

func RtpSendParametersFromJS Uses

func RtpSendParametersFromJS(value js.Wrapper) *RtpSendParameters

RtpSendParametersFromJS is allocating a new RtpSendParameters object and copy all values from input javascript object

func (*RtpSendParameters) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpSender Uses

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

class: RTCRtpSender

func RtpSenderFromJS Uses

func RtpSenderFromJS(value js.Wrapper) *RtpSender

RtpSenderFromJS is casting a js.Wrapper into RtpSender.

func (*RtpSender) Dtmf Uses

func (_this *RtpSender) Dtmf() *DTMFSender

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

func (*RtpSender) GetParameters Uses

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

func (*RtpSender) GetStats Uses

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

func (*RtpSender) JSValue Uses

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

func (*RtpSender) ReplaceTrack Uses

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

func (*RtpSender) RtcpTransport Uses

func (_this *RtpSender) RtcpTransport() *DtlsTransport

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

func (*RtpSender) SetParameters Uses

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

func (*RtpSender) SetStreams Uses

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

func (*RtpSender) Track Uses

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

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

func (*RtpSender) Transport Uses

func (_this *RtpSender) Transport() *DtlsTransport

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

type RtpSynchronizationSource Uses

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

dictionary: RTCRtpSynchronizationSource

func RtpSynchronizationSourceFromJS Uses

func RtpSynchronizationSourceFromJS(value js.Wrapper) *RtpSynchronizationSource

RtpSynchronizationSourceFromJS is allocating a new RtpSynchronizationSource object and copy all values from input javascript object

func (*RtpSynchronizationSource) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RtpTransceiver Uses

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

class: RTCRtpTransceiver

func RtpTransceiverFromJS Uses

func RtpTransceiverFromJS(value js.Wrapper) *RtpTransceiver

RtpTransceiverFromJS is casting a js.Wrapper into RtpTransceiver.

func (*RtpTransceiver) CurrentDirection Uses

func (_this *RtpTransceiver) CurrentDirection() *RtpTransceiverDirection

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

func (*RtpTransceiver) Direction Uses

func (_this *RtpTransceiver) Direction() RtpTransceiverDirection

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

func (*RtpTransceiver) JSValue Uses

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

func (*RtpTransceiver) Mid Uses

func (_this *RtpTransceiver) Mid() *string

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

func (*RtpTransceiver) Receiver Uses

func (_this *RtpTransceiver) Receiver() *RtpReceiver

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

func (*RtpTransceiver) Sender Uses

func (_this *RtpTransceiver) Sender() *RtpSender

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

func (*RtpTransceiver) SetCodecPreferences Uses

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

func (*RtpTransceiver) SetDirection Uses

func (_this *RtpTransceiver) SetDirection(value RtpTransceiverDirection)

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

func (*RtpTransceiver) Stop Uses

func (_this *RtpTransceiver) Stop()

func (*RtpTransceiver) Stopped Uses

func (_this *RtpTransceiver) Stopped() bool

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

type RtpTransceiverDirection Uses

type RtpTransceiverDirection int

enum: RTCRtpTransceiverDirection

const (
    SendrecvRTCRtpTransceiverDirection RtpTransceiverDirection = iota
    SendonlyRTCRtpTransceiverDirection
    RecvonlyRTCRtpTransceiverDirection
    InactiveRTCRtpTransceiverDirection
)

func RtpTransceiverDirectionFromJS Uses

func RtpTransceiverDirectionFromJS(value js.Value) RtpTransceiverDirection

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

func (*RtpTransceiverDirection) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (RtpTransceiverDirection) Value Uses

func (this RtpTransceiverDirection) Value() string

Value is converting this into javascript defined string value

type RtpTransceiverInit Uses

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

dictionary: RTCRtpTransceiverInit

func RtpTransceiverInitFromJS Uses

func RtpTransceiverInitFromJS(value js.Wrapper) *RtpTransceiverInit

RtpTransceiverInitFromJS is allocating a new RtpTransceiverInit object and copy all values from input javascript object

func (*RtpTransceiverInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type SctpTransport Uses

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

class: RTCSctpTransport

func SctpTransportFromJS Uses

func SctpTransportFromJS(value js.Wrapper) *SctpTransport

SctpTransportFromJS is casting a js.Wrapper into SctpTransport.

func (*SctpTransport) AddEventStateChange Uses

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 Uses

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

func (*SctpTransport) MaxChannels Uses

func (_this *SctpTransport) MaxChannels() *int

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

func (*SctpTransport) MaxMessageSize Uses

func (_this *SctpTransport) MaxMessageSize() float64

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

func (*SctpTransport) OnStateChange Uses

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

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

func (*SctpTransport) SetOnStateChange Uses

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 Uses

func (_this *SctpTransport) State() SctpTransportState

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

func (*SctpTransport) Transport Uses

func (_this *SctpTransport) Transport() *DtlsTransport

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

type SctpTransportState Uses

type SctpTransportState int

enum: RTCSctpTransportState

const (
    ConnectingRTCSctpTransportState SctpTransportState = iota
    ConnectedRTCSctpTransportState
    ClosedRTCSctpTransportState
)

func SctpTransportStateFromJS Uses

func SctpTransportStateFromJS(value js.Value) SctpTransportState

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

func (*SctpTransportState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (SctpTransportState) Value Uses

func (this SctpTransportState) Value() string

Value is converting this into javascript defined string value

type SdpType Uses

type SdpType int

enum: RTCSdpType

const (
    OfferRTCSdpType SdpType = iota
    PranswerRTCSdpType
    AnswerRTCSdpType
    RollbackRTCSdpType
)

func SdpTypeFromJS Uses

func SdpTypeFromJS(value js.Value) SdpType

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

func (*SdpType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (SdpType) Value Uses

func (this SdpType) Value() string

Value is converting this into javascript defined string value

type SessionDescription Uses

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

class: RTCSessionDescription

func NewRTCSessionDescription Uses

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

func SessionDescriptionFromJS Uses

func SessionDescriptionFromJS(value js.Wrapper) *SessionDescription

SessionDescriptionFromJS is casting a js.Wrapper into SessionDescription.

func (*SessionDescription) JSValue Uses

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

func (*SessionDescription) Sdp Uses

func (_this *SessionDescription) Sdp() string

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

func (*SessionDescription) ToJSON Uses

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

func (*SessionDescription) Type Uses

func (_this *SessionDescription) Type() SdpType

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

type SessionDescriptionCallback Uses

type SessionDescriptionCallback js.Func

SessionDescriptionCallback is a javascript function type.

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

func SessionDescriptionCallbackToJS Uses

func SessionDescriptionCallbackToJS(callback SessionDescriptionCallbackFunc) *SessionDescriptionCallback

type SessionDescriptionCallbackFunc Uses

type SessionDescriptionCallbackFunc func(description *SessionDescriptionInit)

callback: RTCSessionDescriptionCallback

func SessionDescriptionCallbackFromJS Uses

func SessionDescriptionCallbackFromJS(_value js.Value) SessionDescriptionCallbackFunc

type SessionDescriptionInit Uses

type SessionDescriptionInit struct {
    Type SdpType
    Sdp  string
}

dictionary: RTCSessionDescriptionInit

func SessionDescriptionInitFromJS Uses

func SessionDescriptionInitFromJS(value js.Wrapper) *SessionDescriptionInit

SessionDescriptionInitFromJS is allocating a new SessionDescriptionInit object and copy all values from input javascript object

func (*SessionDescriptionInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type SignalingState Uses

type SignalingState int

enum: RTCSignalingState

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

func SignalingStateFromJS Uses

func SignalingStateFromJS(value js.Value) SignalingState

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

func (*SignalingState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (SignalingState) Value Uses

func (this SignalingState) Value() string

Value is converting this into javascript defined string value

type Stats Uses

type Stats struct {
    Timestamp float64
    Type      StatsType
    Id        string
}

dictionary: RTCStats

func StatsFromJS Uses

func StatsFromJS(value js.Wrapper) *Stats

StatsFromJS is allocating a new Stats object and copy all values from input javascript object

func (*Stats) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StatsEvent Uses

type StatsEvent struct {
    domcore.Event
}

class: RTCStatsEvent

func NewRTCStatsEvent Uses

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

func StatsEventFromJS Uses

func StatsEventFromJS(value js.Wrapper) *StatsEvent

StatsEventFromJS is casting a js.Wrapper into StatsEvent.

func (*StatsEvent) Report Uses

func (_this *StatsEvent) Report() *StatsReport

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

type StatsEventInit Uses

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

dictionary: RTCStatsEventInit

func StatsEventInitFromJS Uses

func StatsEventInitFromJS(value js.Wrapper) *StatsEventInit

StatsEventInitFromJS is allocating a new StatsEventInit object and copy all values from input javascript object

func (*StatsEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StatsReport Uses

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

class: RTCStatsReport

func StatsReportFromJS Uses

func StatsReportFromJS(value js.Wrapper) *StatsReport

StatsReportFromJS is casting a js.Wrapper into StatsReport.

func (*StatsReport) Entries Uses

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

func (*StatsReport) ForEach Uses

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

func (*StatsReport) Get Uses

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

func (*StatsReport) Has Uses

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

func (*StatsReport) JSValue Uses

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

func (*StatsReport) Keys Uses

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

func (*StatsReport) Size Uses

func (_this *StatsReport) Size() int

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

func (*StatsReport) Values Uses

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

type StatsReportEntryIterator Uses

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

class: RTCStatsReportEntryIterator

func StatsReportEntryIteratorFromJS Uses

func StatsReportEntryIteratorFromJS(value js.Wrapper) *StatsReportEntryIterator

StatsReportEntryIteratorFromJS is casting a js.Wrapper into StatsReportEntryIterator.

func (*StatsReportEntryIterator) JSValue Uses

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

func (*StatsReportEntryIterator) Next Uses

func (_this *StatsReportEntryIterator) Next() (_result *StatsReportEntryIteratorValue)

type StatsReportEntryIteratorValue Uses

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

dictionary: RTCStatsReportEntryIteratorValue

func StatsReportEntryIteratorValueFromJS Uses

func StatsReportEntryIteratorValueFromJS(value js.Wrapper) *StatsReportEntryIteratorValue

StatsReportEntryIteratorValueFromJS is allocating a new StatsReportEntryIteratorValue object and copy all values from input javascript object

func (*StatsReportEntryIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StatsReportForEach Uses

type StatsReportForEach js.Func

StatsReportForEach is a javascript function type.

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

func StatsReportForEachToJS Uses

func StatsReportForEachToJS(callback StatsReportForEachFunc) *StatsReportForEach

type StatsReportForEachFunc Uses

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

callback: RTCStatsReportForEach

func StatsReportForEachFromJS Uses

func StatsReportForEachFromJS(_value js.Value) StatsReportForEachFunc

type StatsReportKeyIterator Uses

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

class: RTCStatsReportKeyIterator

func StatsReportKeyIteratorFromJS Uses

func StatsReportKeyIteratorFromJS(value js.Wrapper) *StatsReportKeyIterator

StatsReportKeyIteratorFromJS is casting a js.Wrapper into StatsReportKeyIterator.

func (*StatsReportKeyIterator) JSValue Uses

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

func (*StatsReportKeyIterator) Next Uses

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

type StatsReportKeyIteratorValue Uses

type StatsReportKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: RTCStatsReportKeyIteratorValue

func StatsReportKeyIteratorValueFromJS Uses

func StatsReportKeyIteratorValueFromJS(value js.Wrapper) *StatsReportKeyIteratorValue

StatsReportKeyIteratorValueFromJS is allocating a new StatsReportKeyIteratorValue object and copy all values from input javascript object

func (*StatsReportKeyIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StatsReportValueIterator Uses

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

class: RTCStatsReportValueIterator

func StatsReportValueIteratorFromJS Uses

func StatsReportValueIteratorFromJS(value js.Wrapper) *StatsReportValueIterator

StatsReportValueIteratorFromJS is casting a js.Wrapper into StatsReportValueIterator.

func (*StatsReportValueIterator) JSValue Uses

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

func (*StatsReportValueIterator) Next Uses

func (_this *StatsReportValueIterator) Next() (_result *StatsReportValueIteratorValue)

type StatsReportValueIteratorValue Uses

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

dictionary: RTCStatsReportValueIteratorValue

func StatsReportValueIteratorValueFromJS Uses

func StatsReportValueIteratorValueFromJS(value js.Wrapper) *StatsReportValueIteratorValue

StatsReportValueIteratorValueFromJS is allocating a new StatsReportValueIteratorValue object and copy all values from input javascript object

func (*StatsReportValueIteratorValue) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type StatsType Uses

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 Uses

func StatsTypeFromJS(value js.Value) StatsType

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

func (*StatsType) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (StatsType) Value Uses

func (this StatsType) Value() string

Value is converting this into javascript defined string value

type TrackEvent Uses

type TrackEvent struct {
    domcore.Event
}

class: RTCTrackEvent

func NewRTCTrackEvent Uses

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

func TrackEventFromJS Uses

func TrackEventFromJS(value js.Wrapper) *TrackEvent

TrackEventFromJS is casting a js.Wrapper into TrackEvent.

func (*TrackEvent) Receiver Uses

func (_this *TrackEvent) Receiver() *RtpReceiver

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

func (*TrackEvent) Streams Uses

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

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

func (*TrackEvent) Track Uses

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

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

func (*TrackEvent) Transceiver Uses

func (_this *TrackEvent) Transceiver() *RtpTransceiver

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

type TrackEventInit Uses

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

dictionary: RTCTrackEventInit

func TrackEventInitFromJS Uses

func TrackEventInitFromJS(value js.Wrapper) *TrackEventInit

TrackEventInitFromJS is allocating a new TrackEventInit object and copy all values from input javascript object

func (*TrackEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func GetSupportedAlgorithms Uses

func GetSupportedAlgorithms() (_result []*Union)

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Directories

PathSynopsis
statsPackage stats contains WebRTC statistic data

Package webrtc imports 7 packages (graph) and is imported by 1 packages. Updated 2019-09-19. Refresh now. Tools for package owners.