Documentation ¶
Overview ¶
Package webrtc is to allow media to be sent to and received from another browser or device implementing the appropriate set of real-time protocols.
Index ¶
- type AnswerOptions
- type BundlePolicy
- type Certificate
- type CertificateExpiration
- type Configuration
- type DTMFSender
- func (_this *DTMFSender) AddEventToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func
- func (_this *DTMFSender) CanInsertDTMF() bool
- func (_this *DTMFSender) InsertDTMF(tones string, duration *uint, interToneGap *uint)
- func (_this *DTMFSender) OnToneChange() domcore.EventHandlerFunc
- func (_this *DTMFSender) SetOnToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func
- func (_this *DTMFSender) ToneBuffer() string
- type DTMFToneChangeEvent
- type DTMFToneChangeEventInit
- type DataChannel
- func (_this *DataChannel) AddEventBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) AddEventClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) AddEventError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) AddEventOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) BinaryType() string
- func (_this *DataChannel) BufferedAmount() uint
- func (_this *DataChannel) BufferedAmountLowThreshold() uint
- func (_this *DataChannel) Close()
- func (_this *DataChannel) Id() *int
- func (_this *DataChannel) Label() string
- func (_this *DataChannel) MaxPacketLifeTime() *int
- func (_this *DataChannel) MaxRetransmits() *int
- func (_this *DataChannel) Negotiated() bool
- func (_this *DataChannel) OnBufferedAmountLow() domcore.EventHandlerFunc
- func (_this *DataChannel) OnClose() domcore.EventHandlerFunc
- func (_this *DataChannel) OnError() domcore.EventHandlerFunc
- func (_this *DataChannel) OnMessage() domcore.EventHandlerFunc
- func (_this *DataChannel) OnOpen() domcore.EventHandlerFunc
- func (_this *DataChannel) Ordered() bool
- func (_this *DataChannel) Priority() PriorityType
- func (_this *DataChannel) Protocol() string
- func (_this *DataChannel) ReadyState() DataChannelState
- func (_this *DataChannel) Send(data string)
- func (_this *DataChannel) Send2(data *file.Blob)
- func (_this *DataChannel) Send3(data *javascript.ArrayBuffer)
- func (_this *DataChannel) Send4(data *Union)
- func (_this *DataChannel) SetBinaryType(value string)
- func (_this *DataChannel) SetBufferedAmountLowThreshold(value uint)
- func (_this *DataChannel) SetOnBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) SetOnClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) SetOnError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func
- func (_this *DataChannel) SetOnOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
- type DataChannelEvent
- type DataChannelEventInit
- type DataChannelInit
- type DataChannelState
- type DegradationPreference
- type DtlsFingerprint
- type DtlsTransport
- func (_this *DtlsTransport) AddEventError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func
- func (_this *DtlsTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func
- func (_this *DtlsTransport) GetRemoteCertificates() (_result []*javascript.ArrayBuffer)
- func (_this *DtlsTransport) IceTransport() *IceTransport
- func (_this *DtlsTransport) OnError() domcore.EventHandlerFunc
- func (_this *DtlsTransport) OnStateChange() domcore.EventHandlerFunc
- func (_this *DtlsTransport) SetOnError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func
- func (_this *DtlsTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func
- func (_this *DtlsTransport) State() DtlsTransportState
- type DtlsTransportState
- type DtxStatus
- type Error
- type ErrorEvent
- type ErrorEventInit
- type IceCandidate
- func (_this *IceCandidate) Address() *string
- func (_this *IceCandidate) Candidate() string
- func (_this *IceCandidate) Component() *IceComponent
- func (_this *IceCandidate) Foundation() *string
- func (_this *IceCandidate) JSValue() js.Value
- func (_this *IceCandidate) Port() *int
- func (_this *IceCandidate) Priority() *uint
- func (_this *IceCandidate) Protocol() *IceProtocol
- func (_this *IceCandidate) RelatedAddress() *string
- func (_this *IceCandidate) RelatedPort() *int
- func (_this *IceCandidate) SdpMLineIndex() *int
- func (_this *IceCandidate) SdpMid() *string
- func (_this *IceCandidate) TcpType() *IceTcpCandidateType
- func (_this *IceCandidate) ToJSON() (_result *IceCandidateInit)
- func (_this *IceCandidate) Type() *IceCandidateType
- func (_this *IceCandidate) UsernameFragment() *string
- type IceCandidateInit
- type IceCandidatePair
- type IceCandidateType
- type IceComponent
- type IceConnectionState
- type IceCredentialType
- type IceGathererState
- type IceGatheringState
- type IceParameters
- type IceProtocol
- type IceRole
- type IceServer
- type IceTcpCandidateType
- type IceTransport
- func (_this *IceTransport) AddEventGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) AddEventSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) Component() IceComponent
- func (_this *IceTransport) GatheringState() IceGathererState
- func (_this *IceTransport) GetLocalCandidates() (_result []*IceCandidate)
- func (_this *IceTransport) GetLocalParameters() (_result *IceParameters)
- func (_this *IceTransport) GetRemoteCandidates() (_result []*IceCandidate)
- func (_this *IceTransport) GetRemoteParameters() (_result *IceParameters)
- func (_this *IceTransport) GetSelectedCandidatePair() (_result *IceCandidatePair)
- func (_this *IceTransport) OnGatheringStateChange() domcore.EventHandlerFunc
- func (_this *IceTransport) OnSelectedCandidatePairChange() domcore.EventHandlerFunc
- func (_this *IceTransport) OnStateChange() domcore.EventHandlerFunc
- func (_this *IceTransport) Role() IceRole
- func (_this *IceTransport) SetOnGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) SetOnSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
- func (_this *IceTransport) State() IceTransportState
- type IceTransportPolicy
- type IceTransportState
- type OAuthCredential
- type OfferAnswerOptions
- type OfferOptions
- type PeerConnection
- func (_this *PeerConnection) AddEventConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventIceCandidateError(...) js.Func
- func (_this *PeerConnection) AddEventIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddEventTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) AddIceCandidate(candidate *IceCandidateInit) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) AddIceCandidate2(candidate *IceCandidateInit, successCallback *webidl.VoidFunction, ...) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) AddTrack(track *local.MediaStreamTrack, streams ...*local.MediaStream) (_result *RtpSender)
- func (_this *PeerConnection) AddTransceiver(trackOrKind *Union, init *RtpTransceiverInit) (_result *RtpTransceiver)
- func (_this *PeerConnection) CanTrickleIceCandidates() *bool
- func (_this *PeerConnection) Close()
- func (_this *PeerConnection) ConnectionState() PeerConnectionState
- func (_this *PeerConnection) CreateAnswer(options *AnswerOptions) (_result *PromiseSessionDescriptionInit)
- func (_this *PeerConnection) CreateAnswer2(successCallback *SessionDescriptionCallback, ...) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) CreateDataChannel(label string, dataChannelDict *DataChannelInit) (_result *DataChannel)
- func (_this *PeerConnection) CreateOffer(options *OfferOptions) (_result *PromiseSessionDescriptionInit)
- func (_this *PeerConnection) CreateOffer2(successCallback *SessionDescriptionCallback, ...) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) CurrentLocalDescription() *SessionDescription
- func (_this *PeerConnection) CurrentRemoteDescription() *SessionDescription
- func (_this *PeerConnection) GetConfiguration() (_result *Configuration)
- func (_this *PeerConnection) GetReceivers() (_result []*RtpReceiver)
- func (_this *PeerConnection) GetSenders() (_result []*RtpSender)
- func (_this *PeerConnection) GetStats(selector *local.MediaStreamTrack) (_result *PromiseStatsReport)
- func (_this *PeerConnection) GetTransceivers() (_result []*RtpTransceiver)
- func (_this *PeerConnection) IceConnectionState() IceConnectionState
- func (_this *PeerConnection) IceGatheringState() IceGatheringState
- func (_this *PeerConnection) LocalDescription() *SessionDescription
- func (_this *PeerConnection) OnConnectionStateChange() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnDataChannel() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnIceCandidate() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnIceCandidateError() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnIceConnectionStateChange() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnIceGatheringStateChange() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnNegotiationNeeded() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnSignalingStateChange() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnStatsEnded() domcore.EventHandlerFunc
- func (_this *PeerConnection) OnTrack() domcore.EventHandlerFunc
- func (_this *PeerConnection) PendingLocalDescription() *SessionDescription
- func (_this *PeerConnection) PendingRemoteDescription() *SessionDescription
- func (_this *PeerConnection) RemoteDescription() *SessionDescription
- func (_this *PeerConnection) RemoveTrack(sender *RtpSender)
- func (_this *PeerConnection) Sctp() *SctpTransport
- func (_this *PeerConnection) SetConfiguration(configuration *Configuration)
- func (_this *PeerConnection) SetLocalDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) SetLocalDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, ...) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) SetOnConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnIceCandidateError(...) js.Func
- func (_this *PeerConnection) SetOnIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetOnTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func
- func (_this *PeerConnection) SetRemoteDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) SetRemoteDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, ...) (_result *javascript.PromiseVoid)
- func (_this *PeerConnection) SignalingState() SignalingState
- type PeerConnectionErrorCallback
- type PeerConnectionErrorCallbackFunc
- type PeerConnectionIceErrorEvent
- type PeerConnectionIceErrorEventInit
- type PeerConnectionIceEvent
- type PeerConnectionIceEventInit
- type PeerConnectionState
- type PriorityType
- type PromiseCertificate
- func (_this *PromiseCertificate) Catch(onRejected *PromiseCertificateOnRejected) (_result *PromiseCertificate)
- func (_this *PromiseCertificate) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCertificate)
- func (_this *PromiseCertificate) JSValue() js.Value
- func (_this *PromiseCertificate) Then(onFulfilled *PromiseCertificateOnFulfilled, ...) (_result *PromiseCertificate)
- type PromiseCertificateOnFulfilled
- type PromiseCertificateOnFulfilledFunc
- type PromiseCertificateOnRejected
- type PromiseCertificateOnRejectedFunc
- type PromiseSessionDescriptionInit
- func (_this *PromiseSessionDescriptionInit) Catch(onRejected *PromiseSessionDescriptionInitOnRejected) (_result *PromiseSessionDescriptionInit)
- func (_this *PromiseSessionDescriptionInit) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSessionDescriptionInit)
- func (_this *PromiseSessionDescriptionInit) JSValue() js.Value
- func (_this *PromiseSessionDescriptionInit) Then(onFulfilled *PromiseSessionDescriptionInitOnFulfilled, ...) (_result *PromiseSessionDescriptionInit)
- type PromiseSessionDescriptionInitOnFulfilled
- type PromiseSessionDescriptionInitOnFulfilledFunc
- type PromiseSessionDescriptionInitOnRejected
- type PromiseSessionDescriptionInitOnRejectedFunc
- type PromiseStatsReport
- func (_this *PromiseStatsReport) Catch(onRejected *PromiseStatsReportOnRejected) (_result *PromiseStatsReport)
- func (_this *PromiseStatsReport) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseStatsReport)
- func (_this *PromiseStatsReport) JSValue() js.Value
- func (_this *PromiseStatsReport) Then(onFulfilled *PromiseStatsReportOnFulfilled, ...) (_result *PromiseStatsReport)
- type PromiseStatsReportOnFulfilled
- type PromiseStatsReportOnFulfilledFunc
- type PromiseStatsReportOnRejected
- type PromiseStatsReportOnRejectedFunc
- type RtcpMuxPolicy
- type RtcpParameters
- type RtpCapabilities
- type RtpCodecCapability
- type RtpCodecParameters
- type RtpCodingParameters
- type RtpContributingSource
- type RtpDecodingParameters
- type RtpEncodingParameters
- type RtpHeaderExtensionCapability
- type RtpHeaderExtensionParameters
- type RtpParameters
- type RtpReceiveParameters
- type RtpReceiver
- func (_this *RtpReceiver) GetContributingSources() (_result []*RtpContributingSource)
- func (_this *RtpReceiver) GetParameters() (_result *RtpReceiveParameters)
- func (_this *RtpReceiver) GetStats() (_result *PromiseStatsReport)
- func (_this *RtpReceiver) GetSynchronizationSources() (_result []*RtpSynchronizationSource)
- func (_this *RtpReceiver) JSValue() js.Value
- func (_this *RtpReceiver) RtcpTransport() *DtlsTransport
- func (_this *RtpReceiver) Track() *local.MediaStreamTrack
- func (_this *RtpReceiver) Transport() *DtlsTransport
- type RtpSendParameters
- type RtpSender
- func (_this *RtpSender) Dtmf() *DTMFSender
- func (_this *RtpSender) GetParameters() (_result *RtpSendParameters)
- func (_this *RtpSender) GetStats() (_result *PromiseStatsReport)
- func (_this *RtpSender) JSValue() js.Value
- func (_this *RtpSender) ReplaceTrack(withTrack *local.MediaStreamTrack) (_result *javascript.PromiseVoid)
- func (_this *RtpSender) RtcpTransport() *DtlsTransport
- func (_this *RtpSender) SetParameters(parameters *RtpSendParameters) (_result *javascript.PromiseVoid)
- func (_this *RtpSender) SetStreams(streams ...*local.MediaStream)
- func (_this *RtpSender) Track() *local.MediaStreamTrack
- func (_this *RtpSender) Transport() *DtlsTransport
- type RtpSynchronizationSource
- type RtpTransceiver
- func (_this *RtpTransceiver) CurrentDirection() *RtpTransceiverDirection
- func (_this *RtpTransceiver) Direction() RtpTransceiverDirection
- func (_this *RtpTransceiver) JSValue() js.Value
- func (_this *RtpTransceiver) Mid() *string
- func (_this *RtpTransceiver) Receiver() *RtpReceiver
- func (_this *RtpTransceiver) Sender() *RtpSender
- func (_this *RtpTransceiver) SetCodecPreferences(codecs []*RtpCodecCapability)
- func (_this *RtpTransceiver) SetDirection(value RtpTransceiverDirection)
- func (_this *RtpTransceiver) Stop()
- func (_this *RtpTransceiver) Stopped() bool
- type RtpTransceiverDirection
- type RtpTransceiverInit
- type SctpTransport
- func (_this *SctpTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func
- func (_this *SctpTransport) JSValue() js.Value
- func (_this *SctpTransport) MaxChannels() *int
- func (_this *SctpTransport) MaxMessageSize() float64
- func (_this *SctpTransport) OnStateChange() domcore.EventHandlerFunc
- func (_this *SctpTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func
- func (_this *SctpTransport) State() SctpTransportState
- func (_this *SctpTransport) Transport() *DtlsTransport
- type SctpTransportState
- type SdpType
- type SessionDescription
- type SessionDescriptionCallback
- type SessionDescriptionCallbackFunc
- type SessionDescriptionInit
- type SignalingState
- type Stats
- type StatsEvent
- type StatsEventInit
- type StatsReport
- func (_this *StatsReport) Entries() (_result *StatsReportEntryIterator)
- func (_this *StatsReport) ForEach(callback *StatsReportForEach, optionalThisForCallbackArgument interface{})
- func (_this *StatsReport) Get(key string) (_result *javascript.Object)
- func (_this *StatsReport) Has(key string) (_result bool)
- func (_this *StatsReport) JSValue() js.Value
- func (_this *StatsReport) Keys() (_result *StatsReportKeyIterator)
- func (_this *StatsReport) Size() int
- func (_this *StatsReport) Values() (_result *StatsReportValueIterator)
- type StatsReportEntryIterator
- type StatsReportEntryIteratorValue
- type StatsReportForEach
- type StatsReportForEachFunc
- type StatsReportKeyIterator
- type StatsReportKeyIteratorValue
- type StatsReportValueIterator
- type StatsReportValueIteratorValue
- type StatsType
- type TrackEvent
- type TrackEventInit
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerOptions ¶
type AnswerOptions struct {
VoiceActivityDetection bool
}
dictionary: RTCAnswerOptions
func AnswerOptionsFromJS ¶
func AnswerOptionsFromJS(value js.Wrapper) *AnswerOptions
AnswerOptionsFromJS is allocating a new AnswerOptions object and copy all values from input javascript object
func (*AnswerOptions) JSValue ¶
func (_this *AnswerOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type BundlePolicy ¶
type BundlePolicy int
enum: RTCBundlePolicy
const ( BalancedRTCBundlePolicy BundlePolicy = iota MaxCompatRTCBundlePolicy MaxBundleRTCBundlePolicy )
func BundlePolicyFromJS ¶
func BundlePolicyFromJS(value js.Value) BundlePolicy
BundlePolicyFromJS is converting a javascript value into a BundlePolicy enum value.
func (*BundlePolicy) JSValue ¶
func (this *BundlePolicy) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (BundlePolicy) Value ¶
func (this BundlePolicy) Value() string
Value is converting this into javascript defined string value
type Certificate ¶
class: RTCCertificate
func CertificateFromJS ¶
func CertificateFromJS(value js.Wrapper) *Certificate
CertificateFromJS is casting a js.Wrapper into Certificate.
func (*Certificate) Expires ¶
func (_this *Certificate) Expires() int
Expires returning attribute 'expires' with type int (idl: unsigned long long).
func (*Certificate) GetFingerprints ¶
func (_this *Certificate) GetFingerprints() (_result []*DtlsFingerprint)
func (*Certificate) JSValue ¶
func (_this *Certificate) JSValue() js.Value
type CertificateExpiration ¶
type CertificateExpiration struct {
Expires int
}
dictionary: RTCCertificateExpiration
func CertificateExpirationFromJS ¶
func CertificateExpirationFromJS(value js.Wrapper) *CertificateExpiration
CertificateExpirationFromJS is allocating a new CertificateExpiration object and copy all values from input javascript object
func (*CertificateExpiration) JSValue ¶
func (_this *CertificateExpiration) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type Configuration ¶
type Configuration struct { IceServers []*IceServer IceTransportPolicy IceTransportPolicy BundlePolicy BundlePolicy RtcpMuxPolicy RtcpMuxPolicy PeerIdentity string Certificates []*Certificate IceCandidatePoolSize int }
dictionary: RTCConfiguration
func ConfigurationFromJS ¶
func ConfigurationFromJS(value js.Wrapper) *Configuration
ConfigurationFromJS is allocating a new Configuration object and copy all values from input javascript object
func (*Configuration) JSValue ¶
func (_this *Configuration) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DTMFSender ¶
type DTMFSender struct {
domcore.EventTarget
}
class: RTCDTMFSender
func DTMFSenderFromJS ¶
func DTMFSenderFromJS(value js.Wrapper) *DTMFSender
DTMFSenderFromJS is casting a js.Wrapper into DTMFSender.
func (*DTMFSender) AddEventToneChange ¶
func (_this *DTMFSender) AddEventToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func
AddToneChange is adding doing AddEventListener for 'ToneChange' on target. This method is returning allocated javascript function that need to be released.
func (*DTMFSender) CanInsertDTMF ¶
func (_this *DTMFSender) CanInsertDTMF() bool
CanInsertDTMF returning attribute 'canInsertDTMF' with type bool (idl: boolean).
func (*DTMFSender) InsertDTMF ¶
func (_this *DTMFSender) InsertDTMF(tones string, duration *uint, interToneGap *uint)
func (*DTMFSender) OnToneChange ¶
func (_this *DTMFSender) OnToneChange() domcore.EventHandlerFunc
OnToneChange returning attribute 'ontonechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DTMFSender) SetOnToneChange ¶
func (_this *DTMFSender) SetOnToneChange(listener func(event *DTMFToneChangeEvent, currentTarget *DTMFSender)) js.Func
SetOnToneChange is assigning a function to 'ontonechange'. This This method is returning allocated javascript function that need to be released.
func (*DTMFSender) ToneBuffer ¶
func (_this *DTMFSender) ToneBuffer() string
ToneBuffer returning attribute 'toneBuffer' with type string (idl: DOMString).
type DTMFToneChangeEvent ¶
class: RTCDTMFToneChangeEvent
func DTMFToneChangeEventFromJS ¶
func DTMFToneChangeEventFromJS(value js.Wrapper) *DTMFToneChangeEvent
DTMFToneChangeEventFromJS is casting a js.Wrapper into DTMFToneChangeEvent.
func NewRTCDTMFToneChangeEvent ¶
func NewRTCDTMFToneChangeEvent(_type string, eventInitDict *DTMFToneChangeEventInit) (_result *DTMFToneChangeEvent)
func (*DTMFToneChangeEvent) Tone ¶
func (_this *DTMFToneChangeEvent) Tone() string
Tone returning attribute 'tone' with type string (idl: DOMString).
type DTMFToneChangeEventInit ¶
dictionary: RTCDTMFToneChangeEventInit
func DTMFToneChangeEventInitFromJS ¶
func DTMFToneChangeEventInitFromJS(value js.Wrapper) *DTMFToneChangeEventInit
DTMFToneChangeEventInitFromJS is allocating a new DTMFToneChangeEventInit object and copy all values from input javascript object
func (*DTMFToneChangeEventInit) JSValue ¶
func (_this *DTMFToneChangeEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DataChannel ¶
type DataChannel struct {
domcore.EventTarget
}
class: RTCDataChannel
func DataChannelFromJS ¶
func DataChannelFromJS(value js.Wrapper) *DataChannel
DataChannelFromJS is casting a js.Wrapper into DataChannel.
func (*DataChannel) AddEventBufferedAmountLow ¶
func (_this *DataChannel) AddEventBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
AddBufferedAmountLow is adding doing AddEventListener for 'BufferedAmountLow' on target. This method is returning allocated javascript function that need to be released.
func (*DataChannel) AddEventClose ¶
func (_this *DataChannel) AddEventClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
AddClose is adding doing AddEventListener for 'Close' on target. This method is returning allocated javascript function that need to be released.
func (*DataChannel) AddEventError ¶
func (_this *DataChannel) AddEventError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func
AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.
func (*DataChannel) AddEventMessage ¶
func (_this *DataChannel) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func
AddMessage is adding doing AddEventListener for 'Message' on target. This method is returning allocated javascript function that need to be released.
func (*DataChannel) AddEventOpen ¶
func (_this *DataChannel) AddEventOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
AddOpen is adding doing AddEventListener for 'Open' on target. This method is returning allocated javascript function that need to be released.
func (*DataChannel) BinaryType ¶
func (_this *DataChannel) BinaryType() string
BinaryType returning attribute 'binaryType' with type string (idl: DOMString).
func (*DataChannel) BufferedAmount ¶
func (_this *DataChannel) BufferedAmount() uint
BufferedAmount returning attribute 'bufferedAmount' with type uint (idl: unsigned long).
func (*DataChannel) BufferedAmountLowThreshold ¶
func (_this *DataChannel) BufferedAmountLowThreshold() uint
BufferedAmountLowThreshold returning attribute 'bufferedAmountLowThreshold' with type uint (idl: unsigned long).
func (*DataChannel) Close ¶
func (_this *DataChannel) Close()
func (*DataChannel) Id ¶
func (_this *DataChannel) Id() *int
Id returning attribute 'id' with type int (idl: unsigned short).
func (*DataChannel) Label ¶
func (_this *DataChannel) Label() string
Label returning attribute 'label' with type string (idl: USVString).
func (*DataChannel) MaxPacketLifeTime ¶
func (_this *DataChannel) MaxPacketLifeTime() *int
MaxPacketLifeTime returning attribute 'maxPacketLifeTime' with type int (idl: unsigned short).
func (*DataChannel) MaxRetransmits ¶
func (_this *DataChannel) MaxRetransmits() *int
MaxRetransmits returning attribute 'maxRetransmits' with type int (idl: unsigned short).
func (*DataChannel) Negotiated ¶
func (_this *DataChannel) Negotiated() bool
Negotiated returning attribute 'negotiated' with type bool (idl: boolean).
func (*DataChannel) OnBufferedAmountLow ¶
func (_this *DataChannel) OnBufferedAmountLow() domcore.EventHandlerFunc
OnBufferedAmountLow returning attribute 'onbufferedamountlow' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DataChannel) OnClose ¶
func (_this *DataChannel) OnClose() domcore.EventHandlerFunc
OnClose returning attribute 'onclose' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DataChannel) OnError ¶
func (_this *DataChannel) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DataChannel) OnMessage ¶
func (_this *DataChannel) OnMessage() domcore.EventHandlerFunc
OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DataChannel) OnOpen ¶
func (_this *DataChannel) OnOpen() domcore.EventHandlerFunc
OnOpen returning attribute 'onopen' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DataChannel) Ordered ¶
func (_this *DataChannel) Ordered() bool
Ordered returning attribute 'ordered' with type bool (idl: boolean).
func (*DataChannel) Priority ¶
func (_this *DataChannel) Priority() PriorityType
Priority returning attribute 'priority' with type PriorityType (idl: RTCPriorityType).
func (*DataChannel) Protocol ¶
func (_this *DataChannel) Protocol() string
Protocol returning attribute 'protocol' with type string (idl: USVString).
func (*DataChannel) ReadyState ¶
func (_this *DataChannel) ReadyState() DataChannelState
ReadyState returning attribute 'readyState' with type DataChannelState (idl: RTCDataChannelState).
func (*DataChannel) Send ¶
func (_this *DataChannel) Send(data string)
func (*DataChannel) Send2 ¶
func (_this *DataChannel) Send2(data *file.Blob)
func (*DataChannel) Send3 ¶
func (_this *DataChannel) Send3(data *javascript.ArrayBuffer)
func (*DataChannel) Send4 ¶
func (_this *DataChannel) Send4(data *Union)
func (*DataChannel) SetBinaryType ¶
func (_this *DataChannel) SetBinaryType(value string)
SetBinaryType setting attribute 'binaryType' with type string (idl: DOMString).
func (*DataChannel) SetBufferedAmountLowThreshold ¶
func (_this *DataChannel) SetBufferedAmountLowThreshold(value uint)
SetBufferedAmountLowThreshold setting attribute 'bufferedAmountLowThreshold' with type uint (idl: unsigned long).
func (*DataChannel) SetOnBufferedAmountLow ¶
func (_this *DataChannel) SetOnBufferedAmountLow(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
SetOnBufferedAmountLow is assigning a function to 'onbufferedamountlow'. This This method is returning allocated javascript function that need to be released.
func (*DataChannel) SetOnClose ¶
func (_this *DataChannel) SetOnClose(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
SetOnClose is assigning a function to 'onclose'. This This method is returning allocated javascript function that need to be released.
func (*DataChannel) SetOnError ¶
func (_this *DataChannel) SetOnError(listener func(event *ErrorEvent, currentTarget *DataChannel)) js.Func
SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.
func (*DataChannel) SetOnMessage ¶
func (_this *DataChannel) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *DataChannel)) js.Func
SetOnMessage is assigning a function to 'onmessage'. This This method is returning allocated javascript function that need to be released.
func (*DataChannel) SetOnOpen ¶
func (_this *DataChannel) SetOnOpen(listener func(event *domcore.Event, currentTarget *DataChannel)) js.Func
SetOnOpen is assigning a function to 'onopen'. This This method is returning allocated javascript function that need to be released.
type DataChannelEvent ¶
class: RTCDataChannelEvent
func DataChannelEventFromJS ¶
func DataChannelEventFromJS(value js.Wrapper) *DataChannelEvent
DataChannelEventFromJS is casting a js.Wrapper into DataChannelEvent.
func NewRTCDataChannelEvent ¶
func NewRTCDataChannelEvent(_type string, eventInitDict *DataChannelEventInit) (_result *DataChannelEvent)
func (*DataChannelEvent) Channel ¶
func (_this *DataChannelEvent) Channel() *DataChannel
Channel returning attribute 'channel' with type DataChannel (idl: RTCDataChannel).
type DataChannelEventInit ¶
type DataChannelEventInit struct { Bubbles bool Cancelable bool Composed bool Channel *DataChannel }
dictionary: RTCDataChannelEventInit
func DataChannelEventInitFromJS ¶
func DataChannelEventInitFromJS(value js.Wrapper) *DataChannelEventInit
DataChannelEventInitFromJS is allocating a new DataChannelEventInit object and copy all values from input javascript object
func (*DataChannelEventInit) JSValue ¶
func (_this *DataChannelEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DataChannelInit ¶
type DataChannelInit struct { Ordered bool MaxPacketLifeTime int MaxRetransmits int Protocol string Negotiated bool Id int Priority PriorityType }
dictionary: RTCDataChannelInit
func DataChannelInitFromJS ¶
func DataChannelInitFromJS(value js.Wrapper) *DataChannelInit
DataChannelInitFromJS is allocating a new DataChannelInit object and copy all values from input javascript object
func (*DataChannelInit) JSValue ¶
func (_this *DataChannelInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DataChannelState ¶
type DataChannelState int
enum: RTCDataChannelState
const ( ConnectingRTCDataChannelState DataChannelState = iota OpenRTCDataChannelState ClosingRTCDataChannelState ClosedRTCDataChannelState )
func DataChannelStateFromJS ¶
func DataChannelStateFromJS(value js.Value) DataChannelState
DataChannelStateFromJS is converting a javascript value into a DataChannelState enum value.
func (*DataChannelState) JSValue ¶
func (this *DataChannelState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (DataChannelState) Value ¶
func (this DataChannelState) Value() string
Value is converting this into javascript defined string value
type DegradationPreference ¶
type DegradationPreference int
enum: RTCDegradationPreference
const ( MaintainFramerateRTCDegradationPreference DegradationPreference = iota MaintainResolutionRTCDegradationPreference BalancedRTCDegradationPreference )
func DegradationPreferenceFromJS ¶
func DegradationPreferenceFromJS(value js.Value) DegradationPreference
DegradationPreferenceFromJS is converting a javascript value into a DegradationPreference enum value.
func (*DegradationPreference) JSValue ¶
func (this *DegradationPreference) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (DegradationPreference) Value ¶
func (this DegradationPreference) Value() string
Value is converting this into javascript defined string value
type DtlsFingerprint ¶
dictionary: RTCDtlsFingerprint
func DtlsFingerprintFromJS ¶
func DtlsFingerprintFromJS(value js.Wrapper) *DtlsFingerprint
DtlsFingerprintFromJS is allocating a new DtlsFingerprint object and copy all values from input javascript object
func (*DtlsFingerprint) JSValue ¶
func (_this *DtlsFingerprint) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type DtlsTransport ¶
type DtlsTransport struct {
domcore.EventTarget
}
class: RTCDtlsTransport
func DtlsTransportFromJS ¶
func DtlsTransportFromJS(value js.Wrapper) *DtlsTransport
DtlsTransportFromJS is casting a js.Wrapper into DtlsTransport.
func (*DtlsTransport) AddEventError ¶
func (_this *DtlsTransport) AddEventError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func
AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.
func (*DtlsTransport) AddEventStateChange ¶
func (_this *DtlsTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*DtlsTransport) GetRemoteCertificates ¶
func (_this *DtlsTransport) GetRemoteCertificates() (_result []*javascript.ArrayBuffer)
func (*DtlsTransport) IceTransport ¶
func (_this *DtlsTransport) IceTransport() *IceTransport
IceTransport returning attribute 'iceTransport' with type IceTransport (idl: RTCIceTransport).
func (*DtlsTransport) OnError ¶
func (_this *DtlsTransport) OnError() domcore.EventHandlerFunc
OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DtlsTransport) OnStateChange ¶
func (_this *DtlsTransport) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*DtlsTransport) SetOnError ¶
func (_this *DtlsTransport) SetOnError(listener func(event *ErrorEvent, currentTarget *DtlsTransport)) js.Func
SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.
func (*DtlsTransport) SetOnStateChange ¶
func (_this *DtlsTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *DtlsTransport)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*DtlsTransport) State ¶
func (_this *DtlsTransport) State() DtlsTransportState
State returning attribute 'state' with type DtlsTransportState (idl: RTCDtlsTransportState).
type DtlsTransportState ¶
type DtlsTransportState int
enum: RTCDtlsTransportState
const ( NewRTCDtlsTransportState DtlsTransportState = iota ConnectingRTCDtlsTransportState ConnectedRTCDtlsTransportState ClosedRTCDtlsTransportState FailedRTCDtlsTransportState )
func DtlsTransportStateFromJS ¶
func DtlsTransportStateFromJS(value js.Value) DtlsTransportState
DtlsTransportStateFromJS is converting a javascript value into a DtlsTransportState enum value.
func (*DtlsTransportState) JSValue ¶
func (this *DtlsTransportState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (DtlsTransportState) Value ¶
func (this DtlsTransportState) Value() string
Value is converting this into javascript defined string value
type DtxStatus ¶
type DtxStatus int
enum: RTCDtxStatus
func DtxStatusFromJS ¶
DtxStatusFromJS is converting a javascript value into a DtxStatus enum value.
type ErrorEvent ¶
class: RTCErrorEvent
func ErrorEventFromJS ¶
func ErrorEventFromJS(value js.Wrapper) *ErrorEvent
ErrorEventFromJS is casting a js.Wrapper into ErrorEvent.
func NewRTCErrorEvent ¶
func NewRTCErrorEvent(_type string, eventInitDict *ErrorEventInit) (_result *ErrorEvent)
func (*ErrorEvent) Error ¶
func (_this *ErrorEvent) Error() *Error
Error returning attribute 'error' with type Error (idl: RTCError).
type ErrorEventInit ¶
dictionary: RTCErrorEventInit
func ErrorEventInitFromJS ¶
func ErrorEventInitFromJS(value js.Wrapper) *ErrorEventInit
ErrorEventInitFromJS is allocating a new ErrorEventInit object and copy all values from input javascript object
func (*ErrorEventInit) JSValue ¶
func (_this *ErrorEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type IceCandidate ¶
class: RTCIceCandidate
func IceCandidateFromJS ¶
func IceCandidateFromJS(value js.Wrapper) *IceCandidate
IceCandidateFromJS is casting a js.Wrapper into IceCandidate.
func NewRTCIceCandidate ¶
func NewRTCIceCandidate(candidateInitDict *IceCandidateInit) (_result *IceCandidate)
func (*IceCandidate) Address ¶
func (_this *IceCandidate) Address() *string
Address returning attribute 'address' with type string (idl: DOMString).
func (*IceCandidate) Candidate ¶
func (_this *IceCandidate) Candidate() string
Candidate returning attribute 'candidate' with type string (idl: DOMString).
func (*IceCandidate) Component ¶
func (_this *IceCandidate) Component() *IceComponent
Component returning attribute 'component' with type IceComponent (idl: RTCIceComponent).
func (*IceCandidate) Foundation ¶
func (_this *IceCandidate) Foundation() *string
Foundation returning attribute 'foundation' with type string (idl: DOMString).
func (*IceCandidate) JSValue ¶
func (_this *IceCandidate) JSValue() js.Value
func (*IceCandidate) Port ¶
func (_this *IceCandidate) Port() *int
Port returning attribute 'port' with type int (idl: unsigned short).
func (*IceCandidate) Priority ¶
func (_this *IceCandidate) Priority() *uint
Priority returning attribute 'priority' with type uint (idl: unsigned long).
func (*IceCandidate) Protocol ¶
func (_this *IceCandidate) Protocol() *IceProtocol
Protocol returning attribute 'protocol' with type IceProtocol (idl: RTCIceProtocol).
func (*IceCandidate) RelatedAddress ¶
func (_this *IceCandidate) RelatedAddress() *string
RelatedAddress returning attribute 'relatedAddress' with type string (idl: DOMString).
func (*IceCandidate) RelatedPort ¶
func (_this *IceCandidate) RelatedPort() *int
RelatedPort returning attribute 'relatedPort' with type int (idl: unsigned short).
func (*IceCandidate) SdpMLineIndex ¶
func (_this *IceCandidate) SdpMLineIndex() *int
SdpMLineIndex returning attribute 'sdpMLineIndex' with type int (idl: unsigned short).
func (*IceCandidate) SdpMid ¶
func (_this *IceCandidate) SdpMid() *string
SdpMid returning attribute 'sdpMid' with type string (idl: DOMString).
func (*IceCandidate) TcpType ¶
func (_this *IceCandidate) TcpType() *IceTcpCandidateType
TcpType returning attribute 'tcpType' with type IceTcpCandidateType (idl: RTCIceTcpCandidateType).
func (*IceCandidate) ToJSON ¶
func (_this *IceCandidate) ToJSON() (_result *IceCandidateInit)
func (*IceCandidate) Type ¶
func (_this *IceCandidate) Type() *IceCandidateType
Type returning attribute 'type' with type IceCandidateType (idl: RTCIceCandidateType).
func (*IceCandidate) UsernameFragment ¶
func (_this *IceCandidate) UsernameFragment() *string
UsernameFragment returning attribute 'usernameFragment' with type string (idl: DOMString).
type IceCandidateInit ¶
type IceCandidateInit struct { Candidate string SdpMid *string SdpMLineIndex *int UsernameFragment string }
dictionary: RTCIceCandidateInit
func IceCandidateInitFromJS ¶
func IceCandidateInitFromJS(value js.Wrapper) *IceCandidateInit
IceCandidateInitFromJS is allocating a new IceCandidateInit object and copy all values from input javascript object
func (*IceCandidateInit) JSValue ¶
func (_this *IceCandidateInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type IceCandidatePair ¶
type IceCandidatePair struct { Local *IceCandidate Remote *IceCandidate }
dictionary: RTCIceCandidatePair
func IceCandidatePairFromJS ¶
func IceCandidatePairFromJS(value js.Wrapper) *IceCandidatePair
IceCandidatePairFromJS is allocating a new IceCandidatePair object and copy all values from input javascript object
func (*IceCandidatePair) JSValue ¶
func (_this *IceCandidatePair) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type IceCandidateType ¶
type IceCandidateType int
enum: RTCIceCandidateType
const ( HostRTCIceCandidateType IceCandidateType = iota SrflxRTCIceCandidateType PrflxRTCIceCandidateType RelayRTCIceCandidateType )
func IceCandidateTypeFromJS ¶
func IceCandidateTypeFromJS(value js.Value) IceCandidateType
IceCandidateTypeFromJS is converting a javascript value into a IceCandidateType enum value.
func (*IceCandidateType) JSValue ¶
func (this *IceCandidateType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceCandidateType) Value ¶
func (this IceCandidateType) Value() string
Value is converting this into javascript defined string value
type IceComponent ¶
type IceComponent int
enum: RTCIceComponent
const ( RtpRTCIceComponent IceComponent = iota RtcpRTCIceComponent )
func IceComponentFromJS ¶
func IceComponentFromJS(value js.Value) IceComponent
IceComponentFromJS is converting a javascript value into a IceComponent enum value.
func (*IceComponent) JSValue ¶
func (this *IceComponent) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceComponent) Value ¶
func (this IceComponent) Value() string
Value is converting this into javascript defined string value
type IceConnectionState ¶
type IceConnectionState int
enum: RTCIceConnectionState
const ( ClosedRTCIceConnectionState IceConnectionState = iota FailedRTCIceConnectionState DisconnectedRTCIceConnectionState NewRTCIceConnectionState CheckingRTCIceConnectionState CompletedRTCIceConnectionState ConnectedRTCIceConnectionState )
func IceConnectionStateFromJS ¶
func IceConnectionStateFromJS(value js.Value) IceConnectionState
IceConnectionStateFromJS is converting a javascript value into a IceConnectionState enum value.
func (*IceConnectionState) JSValue ¶
func (this *IceConnectionState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceConnectionState) Value ¶
func (this IceConnectionState) Value() string
Value is converting this into javascript defined string value
type IceCredentialType ¶
type IceCredentialType int
enum: RTCIceCredentialType
const ( PasswordRTCIceCredentialType IceCredentialType = iota OauthRTCIceCredentialType )
func IceCredentialTypeFromJS ¶
func IceCredentialTypeFromJS(value js.Value) IceCredentialType
IceCredentialTypeFromJS is converting a javascript value into a IceCredentialType enum value.
func (*IceCredentialType) JSValue ¶
func (this *IceCredentialType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceCredentialType) Value ¶
func (this IceCredentialType) Value() string
Value is converting this into javascript defined string value
type IceGathererState ¶
type IceGathererState int
enum: RTCIceGathererState
const ( NewRTCIceGathererState IceGathererState = iota GatheringRTCIceGathererState CompleteRTCIceGathererState )
func IceGathererStateFromJS ¶
func IceGathererStateFromJS(value js.Value) IceGathererState
IceGathererStateFromJS is converting a javascript value into a IceGathererState enum value.
func (*IceGathererState) JSValue ¶
func (this *IceGathererState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceGathererState) Value ¶
func (this IceGathererState) Value() string
Value is converting this into javascript defined string value
type IceGatheringState ¶
type IceGatheringState int
enum: RTCIceGatheringState
const ( NewRTCIceGatheringState IceGatheringState = iota GatheringRTCIceGatheringState CompleteRTCIceGatheringState )
func IceGatheringStateFromJS ¶
func IceGatheringStateFromJS(value js.Value) IceGatheringState
IceGatheringStateFromJS is converting a javascript value into a IceGatheringState enum value.
func (*IceGatheringState) JSValue ¶
func (this *IceGatheringState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceGatheringState) Value ¶
func (this IceGatheringState) Value() string
Value is converting this into javascript defined string value
type IceParameters ¶
dictionary: RTCIceParameters
func IceParametersFromJS ¶
func IceParametersFromJS(value js.Wrapper) *IceParameters
IceParametersFromJS is allocating a new IceParameters object and copy all values from input javascript object
func (*IceParameters) JSValue ¶
func (_this *IceParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type IceProtocol ¶
type IceProtocol int
enum: RTCIceProtocol
const ( UdpRTCIceProtocol IceProtocol = iota TcpRTCIceProtocol )
func IceProtocolFromJS ¶
func IceProtocolFromJS(value js.Value) IceProtocol
IceProtocolFromJS is converting a javascript value into a IceProtocol enum value.
func (*IceProtocol) JSValue ¶
func (this *IceProtocol) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceProtocol) Value ¶
func (this IceProtocol) Value() string
Value is converting this into javascript defined string value
type IceRole ¶
type IceRole int
enum: RTCIceRole
func IceRoleFromJS ¶
IceRoleFromJS is converting a javascript value into a IceRole enum value.
type IceServer ¶
type IceServer struct { Urls *Union Username string Credential *Union CredentialType IceCredentialType }
dictionary: RTCIceServer
func GetDefaultIceServers ¶
func GetDefaultIceServers() (_result []*IceServer)
func IceServerFromJS ¶
IceServerFromJS is allocating a new IceServer object and copy all values from input javascript object
type IceTcpCandidateType ¶
type IceTcpCandidateType int
enum: RTCIceTcpCandidateType
const ( ActiveRTCIceTcpCandidateType IceTcpCandidateType = iota PassiveRTCIceTcpCandidateType SoRTCIceTcpCandidateType )
func IceTcpCandidateTypeFromJS ¶
func IceTcpCandidateTypeFromJS(value js.Value) IceTcpCandidateType
IceTcpCandidateTypeFromJS is converting a javascript value into a IceTcpCandidateType enum value.
func (*IceTcpCandidateType) JSValue ¶
func (this *IceTcpCandidateType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceTcpCandidateType) Value ¶
func (this IceTcpCandidateType) Value() string
Value is converting this into javascript defined string value
type IceTransport ¶
type IceTransport struct {
domcore.EventTarget
}
class: RTCIceTransport
func IceTransportFromJS ¶
func IceTransportFromJS(value js.Wrapper) *IceTransport
IceTransportFromJS is casting a js.Wrapper into IceTransport.
func (*IceTransport) AddEventGatheringStateChange ¶
func (_this *IceTransport) AddEventGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
AddGatheringStateChange is adding doing AddEventListener for 'GatheringStateChange' on target. This method is returning allocated javascript function that need to be released.
func (*IceTransport) AddEventSelectedCandidatePairChange ¶
func (_this *IceTransport) AddEventSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
AddSelectedCandidatePairChange is adding doing AddEventListener for 'SelectedCandidatePairChange' on target. This method is returning allocated javascript function that need to be released.
func (*IceTransport) AddEventStateChange ¶
func (_this *IceTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*IceTransport) Component ¶
func (_this *IceTransport) Component() IceComponent
Component returning attribute 'component' with type IceComponent (idl: RTCIceComponent).
func (*IceTransport) GatheringState ¶
func (_this *IceTransport) GatheringState() IceGathererState
GatheringState returning attribute 'gatheringState' with type IceGathererState (idl: RTCIceGathererState).
func (*IceTransport) GetLocalCandidates ¶
func (_this *IceTransport) GetLocalCandidates() (_result []*IceCandidate)
func (*IceTransport) GetLocalParameters ¶
func (_this *IceTransport) GetLocalParameters() (_result *IceParameters)
func (*IceTransport) GetRemoteCandidates ¶
func (_this *IceTransport) GetRemoteCandidates() (_result []*IceCandidate)
func (*IceTransport) GetRemoteParameters ¶
func (_this *IceTransport) GetRemoteParameters() (_result *IceParameters)
func (*IceTransport) GetSelectedCandidatePair ¶
func (_this *IceTransport) GetSelectedCandidatePair() (_result *IceCandidatePair)
func (*IceTransport) OnGatheringStateChange ¶
func (_this *IceTransport) OnGatheringStateChange() domcore.EventHandlerFunc
OnGatheringStateChange returning attribute 'ongatheringstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*IceTransport) OnSelectedCandidatePairChange ¶
func (_this *IceTransport) OnSelectedCandidatePairChange() domcore.EventHandlerFunc
OnSelectedCandidatePairChange returning attribute 'onselectedcandidatepairchange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*IceTransport) OnStateChange ¶
func (_this *IceTransport) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*IceTransport) Role ¶
func (_this *IceTransport) Role() IceRole
Role returning attribute 'role' with type IceRole (idl: RTCIceRole).
func (*IceTransport) SetOnGatheringStateChange ¶
func (_this *IceTransport) SetOnGatheringStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
SetOnGatheringStateChange is assigning a function to 'ongatheringstatechange'. This This method is returning allocated javascript function that need to be released.
func (*IceTransport) SetOnSelectedCandidatePairChange ¶
func (_this *IceTransport) SetOnSelectedCandidatePairChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
SetOnSelectedCandidatePairChange is assigning a function to 'onselectedcandidatepairchange'. This This method is returning allocated javascript function that need to be released.
func (*IceTransport) SetOnStateChange ¶
func (_this *IceTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *IceTransport)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*IceTransport) State ¶
func (_this *IceTransport) State() IceTransportState
State returning attribute 'state' with type IceTransportState (idl: RTCIceTransportState).
type IceTransportPolicy ¶
type IceTransportPolicy int
enum: RTCIceTransportPolicy
const ( RelayRTCIceTransportPolicy IceTransportPolicy = iota AllRTCIceTransportPolicy )
func IceTransportPolicyFromJS ¶
func IceTransportPolicyFromJS(value js.Value) IceTransportPolicy
IceTransportPolicyFromJS is converting a javascript value into a IceTransportPolicy enum value.
func (*IceTransportPolicy) JSValue ¶
func (this *IceTransportPolicy) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceTransportPolicy) Value ¶
func (this IceTransportPolicy) Value() string
Value is converting this into javascript defined string value
type IceTransportState ¶
type IceTransportState int
enum: RTCIceTransportState
const ( NewRTCIceTransportState IceTransportState = iota CheckingRTCIceTransportState ConnectedRTCIceTransportState CompletedRTCIceTransportState DisconnectedRTCIceTransportState FailedRTCIceTransportState ClosedRTCIceTransportState )
func IceTransportStateFromJS ¶
func IceTransportStateFromJS(value js.Value) IceTransportState
IceTransportStateFromJS is converting a javascript value into a IceTransportState enum value.
func (*IceTransportState) JSValue ¶
func (this *IceTransportState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (IceTransportState) Value ¶
func (this IceTransportState) Value() string
Value is converting this into javascript defined string value
type OAuthCredential ¶
dictionary: RTCOAuthCredential
func OAuthCredentialFromJS ¶
func OAuthCredentialFromJS(value js.Wrapper) *OAuthCredential
OAuthCredentialFromJS is allocating a new OAuthCredential object and copy all values from input javascript object
func (*OAuthCredential) JSValue ¶
func (_this *OAuthCredential) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type OfferAnswerOptions ¶
type OfferAnswerOptions struct {
VoiceActivityDetection bool
}
dictionary: RTCOfferAnswerOptions
func OfferAnswerOptionsFromJS ¶
func OfferAnswerOptionsFromJS(value js.Wrapper) *OfferAnswerOptions
OfferAnswerOptionsFromJS is allocating a new OfferAnswerOptions object and copy all values from input javascript object
func (*OfferAnswerOptions) JSValue ¶
func (_this *OfferAnswerOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type OfferOptions ¶
type OfferOptions struct { VoiceActivityDetection bool IceRestart bool OfferToReceiveAudio bool OfferToReceiveVideo bool }
dictionary: RTCOfferOptions
func OfferOptionsFromJS ¶
func OfferOptionsFromJS(value js.Wrapper) *OfferOptions
OfferOptionsFromJS is allocating a new OfferOptions object and copy all values from input javascript object
func (*OfferOptions) JSValue ¶
func (_this *OfferOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PeerConnection ¶
type PeerConnection struct {
domcore.EventTarget
}
class: RTCPeerConnection
func NewRTCPeerConnection ¶
func NewRTCPeerConnection(configuration *Configuration) (_result *PeerConnection)
func PeerConnectionFromJS ¶
func PeerConnectionFromJS(value js.Wrapper) *PeerConnection
PeerConnectionFromJS is casting a js.Wrapper into PeerConnection.
func (*PeerConnection) AddEventConnectionStateChange ¶
func (_this *PeerConnection) AddEventConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
AddConnectionStateChange is adding doing AddEventListener for 'ConnectionStateChange' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventDataChannel ¶
func (_this *PeerConnection) AddEventDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func
AddDataChannel is adding doing AddEventListener for 'DataChannel' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventIceCandidate ¶
func (_this *PeerConnection) AddEventIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func
AddIceCandidate is adding doing AddEventListener for 'IceCandidate' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventIceCandidateError ¶
func (_this *PeerConnection) AddEventIceCandidateError(listener func(event *PeerConnectionIceErrorEvent, currentTarget *PeerConnection)) js.Func
AddIceCandidateError is adding doing AddEventListener for 'IceCandidateError' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventIceConnectionStateChange ¶
func (_this *PeerConnection) AddEventIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
AddIceConnectionStateChange is adding doing AddEventListener for 'IceConnectionStateChange' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventIceGatheringStateChange ¶
func (_this *PeerConnection) AddEventIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
AddIceGatheringStateChange is adding doing AddEventListener for 'IceGatheringStateChange' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventNegotiationNeeded ¶
func (_this *PeerConnection) AddEventNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
AddNegotiationNeeded is adding doing AddEventListener for 'NegotiationNeeded' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventSignalingStateChange ¶
func (_this *PeerConnection) AddEventSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
AddSignalingStateChange is adding doing AddEventListener for 'SignalingStateChange' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventStatsEnded ¶
func (_this *PeerConnection) AddEventStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func
AddStatsEnded is adding doing AddEventListener for 'StatsEnded' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddEventTrack ¶
func (_this *PeerConnection) AddEventTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func
AddTrack is adding doing AddEventListener for 'Track' on target. This method is returning allocated javascript function that need to be released.
func (*PeerConnection) AddIceCandidate ¶
func (_this *PeerConnection) AddIceCandidate(candidate *IceCandidateInit) (_result *javascript.PromiseVoid)
func (*PeerConnection) AddIceCandidate2 ¶
func (_this *PeerConnection) AddIceCandidate2(candidate *IceCandidateInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)
func (*PeerConnection) AddTrack ¶
func (_this *PeerConnection) AddTrack(track *local.MediaStreamTrack, streams ...*local.MediaStream) (_result *RtpSender)
func (*PeerConnection) AddTransceiver ¶
func (_this *PeerConnection) AddTransceiver(trackOrKind *Union, init *RtpTransceiverInit) (_result *RtpTransceiver)
func (*PeerConnection) CanTrickleIceCandidates ¶
func (_this *PeerConnection) CanTrickleIceCandidates() *bool
CanTrickleIceCandidates returning attribute 'canTrickleIceCandidates' with type bool (idl: boolean).
func (*PeerConnection) Close ¶
func (_this *PeerConnection) Close()
func (*PeerConnection) ConnectionState ¶
func (_this *PeerConnection) ConnectionState() PeerConnectionState
ConnectionState returning attribute 'connectionState' with type PeerConnectionState (idl: RTCPeerConnectionState).
func (*PeerConnection) CreateAnswer ¶
func (_this *PeerConnection) CreateAnswer(options *AnswerOptions) (_result *PromiseSessionDescriptionInit)
func (*PeerConnection) CreateAnswer2 ¶
func (_this *PeerConnection) CreateAnswer2(successCallback *SessionDescriptionCallback, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)
func (*PeerConnection) CreateDataChannel ¶
func (_this *PeerConnection) CreateDataChannel(label string, dataChannelDict *DataChannelInit) (_result *DataChannel)
func (*PeerConnection) CreateOffer ¶
func (_this *PeerConnection) CreateOffer(options *OfferOptions) (_result *PromiseSessionDescriptionInit)
func (*PeerConnection) CreateOffer2 ¶
func (_this *PeerConnection) CreateOffer2(successCallback *SessionDescriptionCallback, failureCallback *PeerConnectionErrorCallback, options *OfferOptions) (_result *javascript.PromiseVoid)
func (*PeerConnection) CurrentLocalDescription ¶
func (_this *PeerConnection) CurrentLocalDescription() *SessionDescription
CurrentLocalDescription returning attribute 'currentLocalDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) CurrentRemoteDescription ¶
func (_this *PeerConnection) CurrentRemoteDescription() *SessionDescription
CurrentRemoteDescription returning attribute 'currentRemoteDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) GetConfiguration ¶
func (_this *PeerConnection) GetConfiguration() (_result *Configuration)
func (*PeerConnection) GetReceivers ¶
func (_this *PeerConnection) GetReceivers() (_result []*RtpReceiver)
func (*PeerConnection) GetSenders ¶
func (_this *PeerConnection) GetSenders() (_result []*RtpSender)
func (*PeerConnection) GetStats ¶
func (_this *PeerConnection) GetStats(selector *local.MediaStreamTrack) (_result *PromiseStatsReport)
func (*PeerConnection) GetTransceivers ¶
func (_this *PeerConnection) GetTransceivers() (_result []*RtpTransceiver)
func (*PeerConnection) IceConnectionState ¶
func (_this *PeerConnection) IceConnectionState() IceConnectionState
IceConnectionState returning attribute 'iceConnectionState' with type IceConnectionState (idl: RTCIceConnectionState).
func (*PeerConnection) IceGatheringState ¶
func (_this *PeerConnection) IceGatheringState() IceGatheringState
IceGatheringState returning attribute 'iceGatheringState' with type IceGatheringState (idl: RTCIceGatheringState).
func (*PeerConnection) LocalDescription ¶
func (_this *PeerConnection) LocalDescription() *SessionDescription
LocalDescription returning attribute 'localDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) OnConnectionStateChange ¶
func (_this *PeerConnection) OnConnectionStateChange() domcore.EventHandlerFunc
OnConnectionStateChange returning attribute 'onconnectionstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnDataChannel ¶
func (_this *PeerConnection) OnDataChannel() domcore.EventHandlerFunc
OnDataChannel returning attribute 'ondatachannel' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnIceCandidate ¶
func (_this *PeerConnection) OnIceCandidate() domcore.EventHandlerFunc
OnIceCandidate returning attribute 'onicecandidate' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnIceCandidateError ¶
func (_this *PeerConnection) OnIceCandidateError() domcore.EventHandlerFunc
OnIceCandidateError returning attribute 'onicecandidateerror' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnIceConnectionStateChange ¶
func (_this *PeerConnection) OnIceConnectionStateChange() domcore.EventHandlerFunc
OnIceConnectionStateChange returning attribute 'oniceconnectionstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnIceGatheringStateChange ¶
func (_this *PeerConnection) OnIceGatheringStateChange() domcore.EventHandlerFunc
OnIceGatheringStateChange returning attribute 'onicegatheringstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnNegotiationNeeded ¶
func (_this *PeerConnection) OnNegotiationNeeded() domcore.EventHandlerFunc
OnNegotiationNeeded returning attribute 'onnegotiationneeded' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnSignalingStateChange ¶
func (_this *PeerConnection) OnSignalingStateChange() domcore.EventHandlerFunc
OnSignalingStateChange returning attribute 'onsignalingstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnStatsEnded ¶
func (_this *PeerConnection) OnStatsEnded() domcore.EventHandlerFunc
OnStatsEnded returning attribute 'onstatsended' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) OnTrack ¶
func (_this *PeerConnection) OnTrack() domcore.EventHandlerFunc
OnTrack returning attribute 'ontrack' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*PeerConnection) PendingLocalDescription ¶
func (_this *PeerConnection) PendingLocalDescription() *SessionDescription
PendingLocalDescription returning attribute 'pendingLocalDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) PendingRemoteDescription ¶
func (_this *PeerConnection) PendingRemoteDescription() *SessionDescription
PendingRemoteDescription returning attribute 'pendingRemoteDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) RemoteDescription ¶
func (_this *PeerConnection) RemoteDescription() *SessionDescription
RemoteDescription returning attribute 'remoteDescription' with type SessionDescription (idl: RTCSessionDescription).
func (*PeerConnection) RemoveTrack ¶
func (_this *PeerConnection) RemoveTrack(sender *RtpSender)
func (*PeerConnection) Sctp ¶
func (_this *PeerConnection) Sctp() *SctpTransport
Sctp returning attribute 'sctp' with type SctpTransport (idl: RTCSctpTransport).
func (*PeerConnection) SetConfiguration ¶
func (_this *PeerConnection) SetConfiguration(configuration *Configuration)
func (*PeerConnection) SetLocalDescription ¶
func (_this *PeerConnection) SetLocalDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)
func (*PeerConnection) SetLocalDescription2 ¶
func (_this *PeerConnection) SetLocalDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)
func (*PeerConnection) SetOnConnectionStateChange ¶
func (_this *PeerConnection) SetOnConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
SetOnConnectionStateChange is assigning a function to 'onconnectionstatechange'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnDataChannel ¶
func (_this *PeerConnection) SetOnDataChannel(listener func(event *DataChannelEvent, currentTarget *PeerConnection)) js.Func
SetOnDataChannel is assigning a function to 'ondatachannel'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnIceCandidate ¶
func (_this *PeerConnection) SetOnIceCandidate(listener func(event *PeerConnectionIceEvent, currentTarget *PeerConnection)) js.Func
SetOnIceCandidate is assigning a function to 'onicecandidate'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnIceCandidateError ¶
func (_this *PeerConnection) SetOnIceCandidateError(listener func(event *PeerConnectionIceErrorEvent, currentTarget *PeerConnection)) js.Func
SetOnIceCandidateError is assigning a function to 'onicecandidateerror'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnIceConnectionStateChange ¶
func (_this *PeerConnection) SetOnIceConnectionStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
SetOnIceConnectionStateChange is assigning a function to 'oniceconnectionstatechange'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnIceGatheringStateChange ¶
func (_this *PeerConnection) SetOnIceGatheringStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
SetOnIceGatheringStateChange is assigning a function to 'onicegatheringstatechange'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnNegotiationNeeded ¶
func (_this *PeerConnection) SetOnNegotiationNeeded(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
SetOnNegotiationNeeded is assigning a function to 'onnegotiationneeded'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnSignalingStateChange ¶
func (_this *PeerConnection) SetOnSignalingStateChange(listener func(event *domcore.Event, currentTarget *PeerConnection)) js.Func
SetOnSignalingStateChange is assigning a function to 'onsignalingstatechange'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnStatsEnded ¶
func (_this *PeerConnection) SetOnStatsEnded(listener func(event *StatsEvent, currentTarget *PeerConnection)) js.Func
SetOnStatsEnded is assigning a function to 'onstatsended'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetOnTrack ¶
func (_this *PeerConnection) SetOnTrack(listener func(event *TrackEvent, currentTarget *PeerConnection)) js.Func
SetOnTrack is assigning a function to 'ontrack'. This This method is returning allocated javascript function that need to be released.
func (*PeerConnection) SetRemoteDescription ¶
func (_this *PeerConnection) SetRemoteDescription(description *SessionDescriptionInit) (_result *javascript.PromiseVoid)
func (*PeerConnection) SetRemoteDescription2 ¶
func (_this *PeerConnection) SetRemoteDescription2(description *SessionDescriptionInit, successCallback *webidl.VoidFunction, failureCallback *PeerConnectionErrorCallback) (_result *javascript.PromiseVoid)
func (*PeerConnection) SignalingState ¶
func (_this *PeerConnection) SignalingState() SignalingState
SignalingState returning attribute 'signalingState' with type SignalingState (idl: RTCSignalingState).
type PeerConnectionErrorCallback ¶
PeerConnectionErrorCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PeerConnectionErrorCallbackToJS ¶
func PeerConnectionErrorCallbackToJS(callback PeerConnectionErrorCallbackFunc) *PeerConnectionErrorCallback
type PeerConnectionErrorCallbackFunc ¶
type PeerConnectionErrorCallbackFunc func(_error *domcore.DOMException)
callback: RTCPeerConnectionErrorCallback
func PeerConnectionErrorCallbackFromJS ¶
func PeerConnectionErrorCallbackFromJS(_value js.Value) PeerConnectionErrorCallbackFunc
type PeerConnectionIceErrorEvent ¶
class: RTCPeerConnectionIceErrorEvent
func NewRTCPeerConnectionIceErrorEvent ¶
func NewRTCPeerConnectionIceErrorEvent(_type string, eventInitDict *PeerConnectionIceErrorEventInit) (_result *PeerConnectionIceErrorEvent)
func PeerConnectionIceErrorEventFromJS ¶
func PeerConnectionIceErrorEventFromJS(value js.Wrapper) *PeerConnectionIceErrorEvent
PeerConnectionIceErrorEventFromJS is casting a js.Wrapper into PeerConnectionIceErrorEvent.
func (*PeerConnectionIceErrorEvent) ErrorCode ¶
func (_this *PeerConnectionIceErrorEvent) ErrorCode() int
ErrorCode returning attribute 'errorCode' with type int (idl: unsigned short).
func (*PeerConnectionIceErrorEvent) ErrorText ¶
func (_this *PeerConnectionIceErrorEvent) ErrorText() string
ErrorText returning attribute 'errorText' with type string (idl: USVString).
func (*PeerConnectionIceErrorEvent) HostCandidate ¶
func (_this *PeerConnectionIceErrorEvent) HostCandidate() string
HostCandidate returning attribute 'hostCandidate' with type string (idl: DOMString).
func (*PeerConnectionIceErrorEvent) Url ¶
func (_this *PeerConnectionIceErrorEvent) Url() string
Url returning attribute 'url' with type string (idl: DOMString).
type PeerConnectionIceErrorEventInit ¶
type PeerConnectionIceErrorEventInit struct { Bubbles bool Cancelable bool Composed bool HostCandidate string Url string ErrorCode int StatusText string }
dictionary: RTCPeerConnectionIceErrorEventInit
func PeerConnectionIceErrorEventInitFromJS ¶
func PeerConnectionIceErrorEventInitFromJS(value js.Wrapper) *PeerConnectionIceErrorEventInit
PeerConnectionIceErrorEventInitFromJS is allocating a new PeerConnectionIceErrorEventInit object and copy all values from input javascript object
func (*PeerConnectionIceErrorEventInit) JSValue ¶
func (_this *PeerConnectionIceErrorEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PeerConnectionIceEvent ¶
class: RTCPeerConnectionIceEvent
func NewRTCPeerConnectionIceEvent ¶
func NewRTCPeerConnectionIceEvent(_type string, eventInitDict *PeerConnectionIceEventInit) (_result *PeerConnectionIceEvent)
func PeerConnectionIceEventFromJS ¶
func PeerConnectionIceEventFromJS(value js.Wrapper) *PeerConnectionIceEvent
PeerConnectionIceEventFromJS is casting a js.Wrapper into PeerConnectionIceEvent.
func (*PeerConnectionIceEvent) Candidate ¶
func (_this *PeerConnectionIceEvent) Candidate() *IceCandidate
Candidate returning attribute 'candidate' with type IceCandidate (idl: RTCIceCandidate).
func (*PeerConnectionIceEvent) Url ¶
func (_this *PeerConnectionIceEvent) Url() *string
Url returning attribute 'url' with type string (idl: DOMString).
type PeerConnectionIceEventInit ¶
type PeerConnectionIceEventInit struct { Bubbles bool Cancelable bool Composed bool Candidate *IceCandidate Url *string }
dictionary: RTCPeerConnectionIceEventInit
func PeerConnectionIceEventInitFromJS ¶
func PeerConnectionIceEventInitFromJS(value js.Wrapper) *PeerConnectionIceEventInit
PeerConnectionIceEventInitFromJS is allocating a new PeerConnectionIceEventInit object and copy all values from input javascript object
func (*PeerConnectionIceEventInit) JSValue ¶
func (_this *PeerConnectionIceEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type PeerConnectionState ¶
type PeerConnectionState int
enum: RTCPeerConnectionState
const ( ClosedRTCPeerConnectionState PeerConnectionState = iota FailedRTCPeerConnectionState DisconnectedRTCPeerConnectionState NewRTCPeerConnectionState ConnectingRTCPeerConnectionState ConnectedRTCPeerConnectionState )
func PeerConnectionStateFromJS ¶
func PeerConnectionStateFromJS(value js.Value) PeerConnectionState
PeerConnectionStateFromJS is converting a javascript value into a PeerConnectionState enum value.
func (*PeerConnectionState) JSValue ¶
func (this *PeerConnectionState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PeerConnectionState) Value ¶
func (this PeerConnectionState) Value() string
Value is converting this into javascript defined string value
type PriorityType ¶
type PriorityType int
enum: RTCPriorityType
const ( VeryLowRTCPriorityType PriorityType = iota LowRTCPriorityType MediumRTCPriorityType HighRTCPriorityType )
func PriorityTypeFromJS ¶
func PriorityTypeFromJS(value js.Value) PriorityType
PriorityTypeFromJS is converting a javascript value into a PriorityType enum value.
func (*PriorityType) JSValue ¶
func (this *PriorityType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (PriorityType) Value ¶
func (this PriorityType) Value() string
Value is converting this into javascript defined string value
type PromiseCertificate ¶
type PromiseCertificate struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func GenerateCertificate ¶
func GenerateCertificate(keygenAlgorithm *Union) (_result *PromiseCertificate)
func PromiseCertificateFromJS ¶
func PromiseCertificateFromJS(value js.Wrapper) *PromiseCertificate
PromiseCertificateFromJS is casting a js.Wrapper into PromiseCertificate.
func (*PromiseCertificate) Catch ¶
func (_this *PromiseCertificate) Catch(onRejected *PromiseCertificateOnRejected) (_result *PromiseCertificate)
func (*PromiseCertificate) Finally ¶
func (_this *PromiseCertificate) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseCertificate)
func (*PromiseCertificate) JSValue ¶
func (_this *PromiseCertificate) JSValue() js.Value
func (*PromiseCertificate) Then ¶
func (_this *PromiseCertificate) Then(onFulfilled *PromiseCertificateOnFulfilled, onRejected *PromiseCertificateOnRejected) (_result *PromiseCertificate)
type PromiseCertificateOnFulfilled ¶
PromiseCertificateOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCertificateOnFulfilledToJS ¶
func PromiseCertificateOnFulfilledToJS(callback PromiseCertificateOnFulfilledFunc) *PromiseCertificateOnFulfilled
type PromiseCertificateOnFulfilledFunc ¶
type PromiseCertificateOnFulfilledFunc func(value *Certificate)
callback: PromiseTemplateOnFulfilled
func PromiseCertificateOnFulfilledFromJS ¶
func PromiseCertificateOnFulfilledFromJS(_value js.Value) PromiseCertificateOnFulfilledFunc
type PromiseCertificateOnRejected ¶
PromiseCertificateOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseCertificateOnRejectedToJS ¶
func PromiseCertificateOnRejectedToJS(callback PromiseCertificateOnRejectedFunc) *PromiseCertificateOnRejected
type PromiseCertificateOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseCertificateOnRejectedFromJS ¶
func PromiseCertificateOnRejectedFromJS(_value js.Value) PromiseCertificateOnRejectedFunc
type PromiseSessionDescriptionInit ¶
type PromiseSessionDescriptionInit struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseSessionDescriptionInitFromJS ¶
func PromiseSessionDescriptionInitFromJS(value js.Wrapper) *PromiseSessionDescriptionInit
PromiseSessionDescriptionInitFromJS is casting a js.Wrapper into PromiseSessionDescriptionInit.
func (*PromiseSessionDescriptionInit) Catch ¶
func (_this *PromiseSessionDescriptionInit) Catch(onRejected *PromiseSessionDescriptionInitOnRejected) (_result *PromiseSessionDescriptionInit)
func (*PromiseSessionDescriptionInit) Finally ¶
func (_this *PromiseSessionDescriptionInit) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSessionDescriptionInit)
func (*PromiseSessionDescriptionInit) JSValue ¶
func (_this *PromiseSessionDescriptionInit) JSValue() js.Value
func (*PromiseSessionDescriptionInit) Then ¶
func (_this *PromiseSessionDescriptionInit) Then(onFulfilled *PromiseSessionDescriptionInitOnFulfilled, onRejected *PromiseSessionDescriptionInitOnRejected) (_result *PromiseSessionDescriptionInit)
type PromiseSessionDescriptionInitOnFulfilled ¶
PromiseSessionDescriptionInitOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSessionDescriptionInitOnFulfilledToJS ¶
func PromiseSessionDescriptionInitOnFulfilledToJS(callback PromiseSessionDescriptionInitOnFulfilledFunc) *PromiseSessionDescriptionInitOnFulfilled
type PromiseSessionDescriptionInitOnFulfilledFunc ¶
type PromiseSessionDescriptionInitOnFulfilledFunc func(value *SessionDescriptionInit)
callback: PromiseTemplateOnFulfilled
func PromiseSessionDescriptionInitOnFulfilledFromJS ¶
func PromiseSessionDescriptionInitOnFulfilledFromJS(_value js.Value) PromiseSessionDescriptionInitOnFulfilledFunc
type PromiseSessionDescriptionInitOnRejected ¶
PromiseSessionDescriptionInitOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseSessionDescriptionInitOnRejectedToJS ¶
func PromiseSessionDescriptionInitOnRejectedToJS(callback PromiseSessionDescriptionInitOnRejectedFunc) *PromiseSessionDescriptionInitOnRejected
type PromiseSessionDescriptionInitOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseSessionDescriptionInitOnRejectedFromJS ¶
func PromiseSessionDescriptionInitOnRejectedFromJS(_value js.Value) PromiseSessionDescriptionInitOnRejectedFunc
type PromiseStatsReport ¶
type PromiseStatsReport struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: Promise
func PromiseStatsReportFromJS ¶
func PromiseStatsReportFromJS(value js.Wrapper) *PromiseStatsReport
PromiseStatsReportFromJS is casting a js.Wrapper into PromiseStatsReport.
func (*PromiseStatsReport) Catch ¶
func (_this *PromiseStatsReport) Catch(onRejected *PromiseStatsReportOnRejected) (_result *PromiseStatsReport)
func (*PromiseStatsReport) Finally ¶
func (_this *PromiseStatsReport) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseStatsReport)
func (*PromiseStatsReport) JSValue ¶
func (_this *PromiseStatsReport) JSValue() js.Value
func (*PromiseStatsReport) Then ¶
func (_this *PromiseStatsReport) Then(onFulfilled *PromiseStatsReportOnFulfilled, onRejected *PromiseStatsReportOnRejected) (_result *PromiseStatsReport)
type PromiseStatsReportOnFulfilled ¶
PromiseStatsReportOnFulfilled is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseStatsReportOnFulfilledToJS ¶
func PromiseStatsReportOnFulfilledToJS(callback PromiseStatsReportOnFulfilledFunc) *PromiseStatsReportOnFulfilled
type PromiseStatsReportOnFulfilledFunc ¶
type PromiseStatsReportOnFulfilledFunc func(value *StatsReport)
callback: PromiseTemplateOnFulfilled
func PromiseStatsReportOnFulfilledFromJS ¶
func PromiseStatsReportOnFulfilledFromJS(_value js.Value) PromiseStatsReportOnFulfilledFunc
type PromiseStatsReportOnRejected ¶
PromiseStatsReportOnRejected is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func PromiseStatsReportOnRejectedToJS ¶
func PromiseStatsReportOnRejectedToJS(callback PromiseStatsReportOnRejectedFunc) *PromiseStatsReportOnRejected
type PromiseStatsReportOnRejectedFunc ¶
callback: PromiseTemplateOnRejected
func PromiseStatsReportOnRejectedFromJS ¶
func PromiseStatsReportOnRejectedFromJS(_value js.Value) PromiseStatsReportOnRejectedFunc
type RtcpMuxPolicy ¶
type RtcpMuxPolicy int
enum: RTCRtcpMuxPolicy
const ( NegotiateRTCRtcpMuxPolicy RtcpMuxPolicy = iota RequireRTCRtcpMuxPolicy )
func RtcpMuxPolicyFromJS ¶
func RtcpMuxPolicyFromJS(value js.Value) RtcpMuxPolicy
RtcpMuxPolicyFromJS is converting a javascript value into a RtcpMuxPolicy enum value.
func (*RtcpMuxPolicy) JSValue ¶
func (this *RtcpMuxPolicy) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (RtcpMuxPolicy) Value ¶
func (this RtcpMuxPolicy) Value() string
Value is converting this into javascript defined string value
type RtcpParameters ¶
dictionary: RTCRtcpParameters
func RtcpParametersFromJS ¶
func RtcpParametersFromJS(value js.Wrapper) *RtcpParameters
RtcpParametersFromJS is allocating a new RtcpParameters object and copy all values from input javascript object
func (*RtcpParameters) JSValue ¶
func (_this *RtcpParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpCapabilities ¶
type RtpCapabilities struct { Codecs []*RtpCodecCapability HeaderExtensions []*RtpHeaderExtensionCapability }
dictionary: RTCRtpCapabilities
func GetCapabilities ¶
func GetCapabilities(kind string) (_result *RtpCapabilities)
func GetCapabilities2 ¶
func GetCapabilities2(kind string) (_result *RtpCapabilities)
func RtpCapabilitiesFromJS ¶
func RtpCapabilitiesFromJS(value js.Wrapper) *RtpCapabilities
RtpCapabilitiesFromJS is allocating a new RtpCapabilities object and copy all values from input javascript object
func (*RtpCapabilities) JSValue ¶
func (_this *RtpCapabilities) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpCodecCapability ¶
dictionary: RTCRtpCodecCapability
func RtpCodecCapabilityFromJS ¶
func RtpCodecCapabilityFromJS(value js.Wrapper) *RtpCodecCapability
RtpCodecCapabilityFromJS is allocating a new RtpCodecCapability object and copy all values from input javascript object
func (*RtpCodecCapability) JSValue ¶
func (_this *RtpCodecCapability) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpCodecParameters ¶
type RtpCodecParameters struct { PayloadType int MimeType string ClockRate uint Channels int SdpFmtpLine string }
dictionary: RTCRtpCodecParameters
func RtpCodecParametersFromJS ¶
func RtpCodecParametersFromJS(value js.Wrapper) *RtpCodecParameters
RtpCodecParametersFromJS is allocating a new RtpCodecParameters object and copy all values from input javascript object
func (*RtpCodecParameters) JSValue ¶
func (_this *RtpCodecParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpCodingParameters ¶
type RtpCodingParameters struct {
Rid string
}
dictionary: RTCRtpCodingParameters
func RtpCodingParametersFromJS ¶
func RtpCodingParametersFromJS(value js.Wrapper) *RtpCodingParameters
RtpCodingParametersFromJS is allocating a new RtpCodingParameters object and copy all values from input javascript object
func (*RtpCodingParameters) JSValue ¶
func (_this *RtpCodingParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpContributingSource ¶
dictionary: RTCRtpContributingSource
func RtpContributingSourceFromJS ¶
func RtpContributingSourceFromJS(value js.Wrapper) *RtpContributingSource
RtpContributingSourceFromJS is allocating a new RtpContributingSource object and copy all values from input javascript object
func (*RtpContributingSource) JSValue ¶
func (_this *RtpContributingSource) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpDecodingParameters ¶
type RtpDecodingParameters struct {
Rid string
}
dictionary: RTCRtpDecodingParameters
func RtpDecodingParametersFromJS ¶
func RtpDecodingParametersFromJS(value js.Wrapper) *RtpDecodingParameters
RtpDecodingParametersFromJS is allocating a new RtpDecodingParameters object and copy all values from input javascript object
func (*RtpDecodingParameters) JSValue ¶
func (_this *RtpDecodingParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpEncodingParameters ¶
type RtpEncodingParameters struct { Rid string CodecPayloadType int Dtx DtxStatus Active bool Ptime uint MaxBitrate uint MaxFramerate float64 ScaleResolutionDownBy float64 NetworkPriority PriorityType }
dictionary: RTCRtpEncodingParameters
func RtpEncodingParametersFromJS ¶
func RtpEncodingParametersFromJS(value js.Wrapper) *RtpEncodingParameters
RtpEncodingParametersFromJS is allocating a new RtpEncodingParameters object and copy all values from input javascript object
func (*RtpEncodingParameters) JSValue ¶
func (_this *RtpEncodingParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpHeaderExtensionCapability ¶
type RtpHeaderExtensionCapability struct {
Uri string
}
dictionary: RTCRtpHeaderExtensionCapability
func RtpHeaderExtensionCapabilityFromJS ¶
func RtpHeaderExtensionCapabilityFromJS(value js.Wrapper) *RtpHeaderExtensionCapability
RtpHeaderExtensionCapabilityFromJS is allocating a new RtpHeaderExtensionCapability object and copy all values from input javascript object
func (*RtpHeaderExtensionCapability) JSValue ¶
func (_this *RtpHeaderExtensionCapability) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpHeaderExtensionParameters ¶
dictionary: RTCRtpHeaderExtensionParameters
func RtpHeaderExtensionParametersFromJS ¶
func RtpHeaderExtensionParametersFromJS(value js.Wrapper) *RtpHeaderExtensionParameters
RtpHeaderExtensionParametersFromJS is allocating a new RtpHeaderExtensionParameters object and copy all values from input javascript object
func (*RtpHeaderExtensionParameters) JSValue ¶
func (_this *RtpHeaderExtensionParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpParameters ¶
type RtpParameters struct { HeaderExtensions []*RtpHeaderExtensionParameters Rtcp *RtcpParameters Codecs []*RtpCodecParameters }
dictionary: RTCRtpParameters
func RtpParametersFromJS ¶
func RtpParametersFromJS(value js.Wrapper) *RtpParameters
RtpParametersFromJS is allocating a new RtpParameters object and copy all values from input javascript object
func (*RtpParameters) JSValue ¶
func (_this *RtpParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpReceiveParameters ¶
type RtpReceiveParameters struct { HeaderExtensions []*RtpHeaderExtensionParameters Rtcp *RtcpParameters Codecs []*RtpCodecParameters Encodings []*RtpDecodingParameters }
dictionary: RTCRtpReceiveParameters
func RtpReceiveParametersFromJS ¶
func RtpReceiveParametersFromJS(value js.Wrapper) *RtpReceiveParameters
RtpReceiveParametersFromJS is allocating a new RtpReceiveParameters object and copy all values from input javascript object
func (*RtpReceiveParameters) JSValue ¶
func (_this *RtpReceiveParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpReceiver ¶
class: RTCRtpReceiver
func RtpReceiverFromJS ¶
func RtpReceiverFromJS(value js.Wrapper) *RtpReceiver
RtpReceiverFromJS is casting a js.Wrapper into RtpReceiver.
func (*RtpReceiver) GetContributingSources ¶
func (_this *RtpReceiver) GetContributingSources() (_result []*RtpContributingSource)
func (*RtpReceiver) GetParameters ¶
func (_this *RtpReceiver) GetParameters() (_result *RtpReceiveParameters)
func (*RtpReceiver) GetStats ¶
func (_this *RtpReceiver) GetStats() (_result *PromiseStatsReport)
func (*RtpReceiver) GetSynchronizationSources ¶
func (_this *RtpReceiver) GetSynchronizationSources() (_result []*RtpSynchronizationSource)
func (*RtpReceiver) JSValue ¶
func (_this *RtpReceiver) JSValue() js.Value
func (*RtpReceiver) RtcpTransport ¶
func (_this *RtpReceiver) RtcpTransport() *DtlsTransport
RtcpTransport returning attribute 'rtcpTransport' with type DtlsTransport (idl: RTCDtlsTransport).
func (*RtpReceiver) Track ¶
func (_this *RtpReceiver) Track() *local.MediaStreamTrack
Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).
func (*RtpReceiver) Transport ¶
func (_this *RtpReceiver) Transport() *DtlsTransport
Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).
type RtpSendParameters ¶
type RtpSendParameters struct { HeaderExtensions []*RtpHeaderExtensionParameters Rtcp *RtcpParameters Codecs []*RtpCodecParameters TransactionId string Encodings []*RtpEncodingParameters DegradationPreference DegradationPreference Priority PriorityType }
dictionary: RTCRtpSendParameters
func RtpSendParametersFromJS ¶
func RtpSendParametersFromJS(value js.Wrapper) *RtpSendParameters
RtpSendParametersFromJS is allocating a new RtpSendParameters object and copy all values from input javascript object
func (*RtpSendParameters) JSValue ¶
func (_this *RtpSendParameters) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpSender ¶
class: RTCRtpSender
func RtpSenderFromJS ¶
RtpSenderFromJS is casting a js.Wrapper into RtpSender.
func (*RtpSender) Dtmf ¶
func (_this *RtpSender) Dtmf() *DTMFSender
Dtmf returning attribute 'dtmf' with type DTMFSender (idl: RTCDTMFSender).
func (*RtpSender) GetParameters ¶
func (_this *RtpSender) GetParameters() (_result *RtpSendParameters)
func (*RtpSender) GetStats ¶
func (_this *RtpSender) GetStats() (_result *PromiseStatsReport)
func (*RtpSender) ReplaceTrack ¶
func (_this *RtpSender) ReplaceTrack(withTrack *local.MediaStreamTrack) (_result *javascript.PromiseVoid)
func (*RtpSender) RtcpTransport ¶
func (_this *RtpSender) RtcpTransport() *DtlsTransport
RtcpTransport returning attribute 'rtcpTransport' with type DtlsTransport (idl: RTCDtlsTransport).
func (*RtpSender) SetParameters ¶
func (_this *RtpSender) SetParameters(parameters *RtpSendParameters) (_result *javascript.PromiseVoid)
func (*RtpSender) SetStreams ¶
func (_this *RtpSender) SetStreams(streams ...*local.MediaStream)
func (*RtpSender) Track ¶
func (_this *RtpSender) Track() *local.MediaStreamTrack
Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).
func (*RtpSender) Transport ¶
func (_this *RtpSender) Transport() *DtlsTransport
Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).
type RtpSynchronizationSource ¶
type RtpSynchronizationSource struct { Timestamp float64 Source uint AudioLevel float64 VoiceActivityFlag bool }
dictionary: RTCRtpSynchronizationSource
func RtpSynchronizationSourceFromJS ¶
func RtpSynchronizationSourceFromJS(value js.Wrapper) *RtpSynchronizationSource
RtpSynchronizationSourceFromJS is allocating a new RtpSynchronizationSource object and copy all values from input javascript object
func (*RtpSynchronizationSource) JSValue ¶
func (_this *RtpSynchronizationSource) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type RtpTransceiver ¶
type RtpTransceiver struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: RTCRtpTransceiver
func RtpTransceiverFromJS ¶
func RtpTransceiverFromJS(value js.Wrapper) *RtpTransceiver
RtpTransceiverFromJS is casting a js.Wrapper into RtpTransceiver.
func (*RtpTransceiver) CurrentDirection ¶
func (_this *RtpTransceiver) CurrentDirection() *RtpTransceiverDirection
CurrentDirection returning attribute 'currentDirection' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).
func (*RtpTransceiver) Direction ¶
func (_this *RtpTransceiver) Direction() RtpTransceiverDirection
Direction returning attribute 'direction' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).
func (*RtpTransceiver) JSValue ¶
func (_this *RtpTransceiver) JSValue() js.Value
func (*RtpTransceiver) Mid ¶
func (_this *RtpTransceiver) Mid() *string
Mid returning attribute 'mid' with type string (idl: DOMString).
func (*RtpTransceiver) Receiver ¶
func (_this *RtpTransceiver) Receiver() *RtpReceiver
Receiver returning attribute 'receiver' with type RtpReceiver (idl: RTCRtpReceiver).
func (*RtpTransceiver) Sender ¶
func (_this *RtpTransceiver) Sender() *RtpSender
Sender returning attribute 'sender' with type RtpSender (idl: RTCRtpSender).
func (*RtpTransceiver) SetCodecPreferences ¶
func (_this *RtpTransceiver) SetCodecPreferences(codecs []*RtpCodecCapability)
func (*RtpTransceiver) SetDirection ¶
func (_this *RtpTransceiver) SetDirection(value RtpTransceiverDirection)
SetDirection setting attribute 'direction' with type RtpTransceiverDirection (idl: RTCRtpTransceiverDirection).
func (*RtpTransceiver) Stop ¶
func (_this *RtpTransceiver) Stop()
func (*RtpTransceiver) Stopped ¶
func (_this *RtpTransceiver) Stopped() bool
Stopped returning attribute 'stopped' with type bool (idl: boolean).
type RtpTransceiverDirection ¶
type RtpTransceiverDirection int
enum: RTCRtpTransceiverDirection
const ( SendrecvRTCRtpTransceiverDirection RtpTransceiverDirection = iota SendonlyRTCRtpTransceiverDirection RecvonlyRTCRtpTransceiverDirection InactiveRTCRtpTransceiverDirection )
func RtpTransceiverDirectionFromJS ¶
func RtpTransceiverDirectionFromJS(value js.Value) RtpTransceiverDirection
RtpTransceiverDirectionFromJS is converting a javascript value into a RtpTransceiverDirection enum value.
func (*RtpTransceiverDirection) JSValue ¶
func (this *RtpTransceiverDirection) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (RtpTransceiverDirection) Value ¶
func (this RtpTransceiverDirection) Value() string
Value is converting this into javascript defined string value
type RtpTransceiverInit ¶
type RtpTransceiverInit struct { Direction RtpTransceiverDirection Streams []*local.MediaStream SendEncodings []*RtpEncodingParameters }
dictionary: RTCRtpTransceiverInit
func RtpTransceiverInitFromJS ¶
func RtpTransceiverInitFromJS(value js.Wrapper) *RtpTransceiverInit
RtpTransceiverInitFromJS is allocating a new RtpTransceiverInit object and copy all values from input javascript object
func (*RtpTransceiverInit) JSValue ¶
func (_this *RtpTransceiverInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type SctpTransport ¶
class: RTCSctpTransport
func SctpTransportFromJS ¶
func SctpTransportFromJS(value js.Wrapper) *SctpTransport
SctpTransportFromJS is casting a js.Wrapper into SctpTransport.
func (*SctpTransport) AddEventStateChange ¶
func (_this *SctpTransport) AddEventStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func
AddStateChange is adding doing AddEventListener for 'StateChange' on target. This method is returning allocated javascript function that need to be released.
func (*SctpTransport) JSValue ¶
func (_this *SctpTransport) JSValue() js.Value
func (*SctpTransport) MaxChannels ¶
func (_this *SctpTransport) MaxChannels() *int
MaxChannels returning attribute 'maxChannels' with type int (idl: unsigned short).
func (*SctpTransport) MaxMessageSize ¶
func (_this *SctpTransport) MaxMessageSize() float64
MaxMessageSize returning attribute 'maxMessageSize' with type float64 (idl: unrestricted double).
func (*SctpTransport) OnStateChange ¶
func (_this *SctpTransport) OnStateChange() domcore.EventHandlerFunc
OnStateChange returning attribute 'onstatechange' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*SctpTransport) SetOnStateChange ¶
func (_this *SctpTransport) SetOnStateChange(listener func(event *domcore.Event, currentTarget *SctpTransport)) js.Func
SetOnStateChange is assigning a function to 'onstatechange'. This This method is returning allocated javascript function that need to be released.
func (*SctpTransport) State ¶
func (_this *SctpTransport) State() SctpTransportState
State returning attribute 'state' with type SctpTransportState (idl: RTCSctpTransportState).
func (*SctpTransport) Transport ¶
func (_this *SctpTransport) Transport() *DtlsTransport
Transport returning attribute 'transport' with type DtlsTransport (idl: RTCDtlsTransport).
type SctpTransportState ¶
type SctpTransportState int
enum: RTCSctpTransportState
const ( ConnectingRTCSctpTransportState SctpTransportState = iota ConnectedRTCSctpTransportState ClosedRTCSctpTransportState )
func SctpTransportStateFromJS ¶
func SctpTransportStateFromJS(value js.Value) SctpTransportState
SctpTransportStateFromJS is converting a javascript value into a SctpTransportState enum value.
func (*SctpTransportState) JSValue ¶
func (this *SctpTransportState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (SctpTransportState) Value ¶
func (this SctpTransportState) Value() string
Value is converting this into javascript defined string value
type SdpType ¶
type SdpType int
enum: RTCSdpType
func SdpTypeFromJS ¶
SdpTypeFromJS is converting a javascript value into a SdpType enum value.
type SessionDescription ¶
type SessionDescription struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: RTCSessionDescription
func NewRTCSessionDescription ¶
func NewRTCSessionDescription(descriptionInitDict *SessionDescriptionInit) (_result *SessionDescription)
func SessionDescriptionFromJS ¶
func SessionDescriptionFromJS(value js.Wrapper) *SessionDescription
SessionDescriptionFromJS is casting a js.Wrapper into SessionDescription.
func (*SessionDescription) JSValue ¶
func (_this *SessionDescription) JSValue() js.Value
func (*SessionDescription) Sdp ¶
func (_this *SessionDescription) Sdp() string
Sdp returning attribute 'sdp' with type string (idl: DOMString).
func (*SessionDescription) ToJSON ¶
func (_this *SessionDescription) ToJSON() (_result *javascript.Object)
func (*SessionDescription) Type ¶
func (_this *SessionDescription) Type() SdpType
Type returning attribute 'type' with type SdpType (idl: RTCSdpType).
type SessionDescriptionCallback ¶
SessionDescriptionCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func SessionDescriptionCallbackToJS ¶
func SessionDescriptionCallbackToJS(callback SessionDescriptionCallbackFunc) *SessionDescriptionCallback
type SessionDescriptionCallbackFunc ¶
type SessionDescriptionCallbackFunc func(description *SessionDescriptionInit)
callback: RTCSessionDescriptionCallback
func SessionDescriptionCallbackFromJS ¶
func SessionDescriptionCallbackFromJS(_value js.Value) SessionDescriptionCallbackFunc
type SessionDescriptionInit ¶
dictionary: RTCSessionDescriptionInit
func SessionDescriptionInitFromJS ¶
func SessionDescriptionInitFromJS(value js.Wrapper) *SessionDescriptionInit
SessionDescriptionInitFromJS is allocating a new SessionDescriptionInit object and copy all values from input javascript object
func (*SessionDescriptionInit) JSValue ¶
func (_this *SessionDescriptionInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type SignalingState ¶
type SignalingState int
enum: RTCSignalingState
const ( StableRTCSignalingState SignalingState = iota HaveLocalOfferRTCSignalingState HaveRemoteOfferRTCSignalingState HaveLocalPranswerRTCSignalingState HaveRemotePranswerRTCSignalingState ClosedRTCSignalingState )
func SignalingStateFromJS ¶
func SignalingStateFromJS(value js.Value) SignalingState
SignalingStateFromJS is converting a javascript value into a SignalingState enum value.
func (*SignalingState) JSValue ¶
func (this *SignalingState) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (SignalingState) Value ¶
func (this SignalingState) Value() string
Value is converting this into javascript defined string value
type Stats ¶
dictionary: RTCStats
func StatsFromJS ¶
StatsFromJS is allocating a new Stats object and copy all values from input javascript object
type StatsEvent ¶
class: RTCStatsEvent
func NewRTCStatsEvent ¶
func NewRTCStatsEvent(_type string, eventInitDict *StatsEventInit) (_result *StatsEvent)
func StatsEventFromJS ¶
func StatsEventFromJS(value js.Wrapper) *StatsEvent
StatsEventFromJS is casting a js.Wrapper into StatsEvent.
func (*StatsEvent) Report ¶
func (_this *StatsEvent) Report() *StatsReport
Report returning attribute 'report' with type StatsReport (idl: RTCStatsReport).
type StatsEventInit ¶
type StatsEventInit struct { Bubbles bool Cancelable bool Composed bool Report *StatsReport }
dictionary: RTCStatsEventInit
func StatsEventInitFromJS ¶
func StatsEventInitFromJS(value js.Wrapper) *StatsEventInit
StatsEventInitFromJS is allocating a new StatsEventInit object and copy all values from input javascript object
func (*StatsEventInit) JSValue ¶
func (_this *StatsEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type StatsReport ¶
class: RTCStatsReport
func StatsReportFromJS ¶
func StatsReportFromJS(value js.Wrapper) *StatsReport
StatsReportFromJS is casting a js.Wrapper into StatsReport.
func (*StatsReport) Entries ¶
func (_this *StatsReport) Entries() (_result *StatsReportEntryIterator)
func (*StatsReport) ForEach ¶
func (_this *StatsReport) ForEach(callback *StatsReportForEach, optionalThisForCallbackArgument interface{})
func (*StatsReport) Get ¶
func (_this *StatsReport) Get(key string) (_result *javascript.Object)
func (*StatsReport) Has ¶
func (_this *StatsReport) Has(key string) (_result bool)
func (*StatsReport) JSValue ¶
func (_this *StatsReport) JSValue() js.Value
func (*StatsReport) Keys ¶
func (_this *StatsReport) Keys() (_result *StatsReportKeyIterator)
func (*StatsReport) Size ¶
func (_this *StatsReport) Size() int
Size returning attribute 'size' with type int (idl: long).
func (*StatsReport) Values ¶
func (_this *StatsReport) Values() (_result *StatsReportValueIterator)
type StatsReportEntryIterator ¶
type StatsReportEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: RTCStatsReportEntryIterator
func StatsReportEntryIteratorFromJS ¶
func StatsReportEntryIteratorFromJS(value js.Wrapper) *StatsReportEntryIterator
StatsReportEntryIteratorFromJS is casting a js.Wrapper into StatsReportEntryIterator.
func (*StatsReportEntryIterator) JSValue ¶
func (_this *StatsReportEntryIterator) JSValue() js.Value
func (*StatsReportEntryIterator) Next ¶
func (_this *StatsReportEntryIterator) Next() (_result *StatsReportEntryIteratorValue)
type StatsReportEntryIteratorValue ¶
dictionary: RTCStatsReportEntryIteratorValue
func StatsReportEntryIteratorValueFromJS ¶
func StatsReportEntryIteratorValueFromJS(value js.Wrapper) *StatsReportEntryIteratorValue
StatsReportEntryIteratorValueFromJS is allocating a new StatsReportEntryIteratorValue object and copy all values from input javascript object
func (*StatsReportEntryIteratorValue) JSValue ¶
func (_this *StatsReportEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type StatsReportForEach ¶
StatsReportForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func StatsReportForEachToJS ¶
func StatsReportForEachToJS(callback StatsReportForEachFunc) *StatsReportForEach
type StatsReportForEachFunc ¶
type StatsReportForEachFunc func(currentValue *javascript.Object, currentKey string, listObj *StatsReport)
callback: RTCStatsReportForEach
func StatsReportForEachFromJS ¶
func StatsReportForEachFromJS(_value js.Value) StatsReportForEachFunc
type StatsReportKeyIterator ¶
type StatsReportKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: RTCStatsReportKeyIterator
func StatsReportKeyIteratorFromJS ¶
func StatsReportKeyIteratorFromJS(value js.Wrapper) *StatsReportKeyIterator
StatsReportKeyIteratorFromJS is casting a js.Wrapper into StatsReportKeyIterator.
func (*StatsReportKeyIterator) JSValue ¶
func (_this *StatsReportKeyIterator) JSValue() js.Value
func (*StatsReportKeyIterator) Next ¶
func (_this *StatsReportKeyIterator) Next() (_result *StatsReportKeyIteratorValue)
type StatsReportKeyIteratorValue ¶
dictionary: RTCStatsReportKeyIteratorValue
func StatsReportKeyIteratorValueFromJS ¶
func StatsReportKeyIteratorValueFromJS(value js.Wrapper) *StatsReportKeyIteratorValue
StatsReportKeyIteratorValueFromJS is allocating a new StatsReportKeyIteratorValue object and copy all values from input javascript object
func (*StatsReportKeyIteratorValue) JSValue ¶
func (_this *StatsReportKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type StatsReportValueIterator ¶
type StatsReportValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: RTCStatsReportValueIterator
func StatsReportValueIteratorFromJS ¶
func StatsReportValueIteratorFromJS(value js.Wrapper) *StatsReportValueIterator
StatsReportValueIteratorFromJS is casting a js.Wrapper into StatsReportValueIterator.
func (*StatsReportValueIterator) JSValue ¶
func (_this *StatsReportValueIterator) JSValue() js.Value
func (*StatsReportValueIterator) Next ¶
func (_this *StatsReportValueIterator) Next() (_result *StatsReportValueIteratorValue)
type StatsReportValueIteratorValue ¶
type StatsReportValueIteratorValue struct { Value *javascript.Object Done bool }
dictionary: RTCStatsReportValueIteratorValue
func StatsReportValueIteratorValueFromJS ¶
func StatsReportValueIteratorValueFromJS(value js.Wrapper) *StatsReportValueIteratorValue
StatsReportValueIteratorValueFromJS is allocating a new StatsReportValueIteratorValue object and copy all values from input javascript object
func (*StatsReportValueIteratorValue) JSValue ¶
func (_this *StatsReportValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values
type StatsType ¶
type StatsType int
enum: RTCStatsType
const ( CodecRTCStatsType StatsType = iota InboundRtpRTCStatsType OutboundRtpRTCStatsType RemoteInboundRtpRTCStatsType RemoteOutboundRtpRTCStatsType CsrcRTCStatsType PeerConnectionRTCStatsType DataChannelRTCStatsType StreamRTCStatsType TrackRTCStatsType SenderRTCStatsType ReceiverRTCStatsType TransportRTCStatsType CandidatePairRTCStatsType LocalCandidateRTCStatsType RemoteCandidateRTCStatsType CertificateRTCStatsType )
func StatsTypeFromJS ¶
StatsTypeFromJS is converting a javascript value into a StatsType enum value.
type TrackEvent ¶
class: RTCTrackEvent
func NewRTCTrackEvent ¶
func NewRTCTrackEvent(_type string, eventInitDict *TrackEventInit) (_result *TrackEvent)
func TrackEventFromJS ¶
func TrackEventFromJS(value js.Wrapper) *TrackEvent
TrackEventFromJS is casting a js.Wrapper into TrackEvent.
func (*TrackEvent) Receiver ¶
func (_this *TrackEvent) Receiver() *RtpReceiver
Receiver returning attribute 'receiver' with type RtpReceiver (idl: RTCRtpReceiver).
func (*TrackEvent) Streams ¶
func (_this *TrackEvent) Streams() *javascript.FrozenArray
Streams returning attribute 'streams' with type javascript.FrozenArray (idl: FrozenArray).
func (*TrackEvent) Track ¶
func (_this *TrackEvent) Track() *local.MediaStreamTrack
Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).
func (*TrackEvent) Transceiver ¶
func (_this *TrackEvent) Transceiver() *RtpTransceiver
Transceiver returning attribute 'transceiver' with type RtpTransceiver (idl: RTCRtpTransceiver).
type TrackEventInit ¶
type TrackEventInit struct { Bubbles bool Cancelable bool Composed bool Receiver *RtpReceiver Track *local.MediaStreamTrack Streams []*local.MediaStream Transceiver *RtpTransceiver }
dictionary: RTCTrackEventInit
func TrackEventInitFromJS ¶
func TrackEventInitFromJS(value js.Wrapper) *TrackEventInit
TrackEventInitFromJS is allocating a new TrackEventInit object and copy all values from input javascript object
func (*TrackEventInit) JSValue ¶
func (_this *TrackEventInit) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values