stats

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

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

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

Documentation

Overview

Package stats contains WebRTC statistic data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioHandlerStats

type AudioHandlerStats struct {
	Timestamp            float64
	Type                 webrtc.StatsType
	Id                   string
	TrackIdentifier      string
	RemoteSource         bool
	Ended                bool
	Kind                 string
	Priority             webrtc.PriorityType
	AudioLevel           float64
	TotalAudioEnergy     float64
	VoiceActivityFlag    bool
	TotalSamplesDuration float64
}

dictionary: RTCAudioHandlerStats

func AudioHandlerStatsFromJS

func AudioHandlerStatsFromJS(value js.Value) *AudioHandlerStats

AudioHandlerStatsFromJS is allocating a new AudioHandlerStats object and copy all values in the value javascript object.

func (*AudioHandlerStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AudioReceiverStats

type AudioReceiverStats struct {
	Timestamp                 float64
	Type                      webrtc.StatsType
	Id                        string
	TrackIdentifier           string
	RemoteSource              bool
	Ended                     bool
	Kind                      string
	Priority                  webrtc.PriorityType
	AudioLevel                float64
	TotalAudioEnergy          float64
	VoiceActivityFlag         bool
	TotalSamplesDuration      float64
	EstimatedPlayoutTimestamp float64
	JitterBufferDelay         float64
	JitterBufferEmittedCount  int
	TotalSamplesReceived      int
	ConcealedSamples          int
	ConcealmentEvents         int
}

dictionary: RTCAudioReceiverStats

func AudioReceiverStatsFromJS

func AudioReceiverStatsFromJS(value js.Value) *AudioReceiverStats

AudioReceiverStatsFromJS is allocating a new AudioReceiverStats object and copy all values in the value javascript object.

func (*AudioReceiverStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type AudioSenderStats

type AudioSenderStats struct {
	Timestamp                 float64
	Type                      webrtc.StatsType
	Id                        string
	TrackIdentifier           string
	RemoteSource              bool
	Ended                     bool
	Kind                      string
	Priority                  webrtc.PriorityType
	AudioLevel                float64
	TotalAudioEnergy          float64
	VoiceActivityFlag         bool
	TotalSamplesDuration      float64
	EchoReturnLoss            float64
	EchoReturnLossEnhancement float64
	TotalSamplesSent          int
}

dictionary: RTCAudioSenderStats

func AudioSenderStatsFromJS

func AudioSenderStatsFromJS(value js.Value) *AudioSenderStats

AudioSenderStatsFromJS is allocating a new AudioSenderStats object and copy all values in the value javascript object.

func (*AudioSenderStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CertificateStats

type CertificateStats struct {
	Timestamp            float64
	Type                 webrtc.StatsType
	Id                   string
	Fingerprint          string
	FingerprintAlgorithm string
	Base64Certificate    string
	IssuerCertificateId  string
}

dictionary: RTCCertificateStats

func CertificateStatsFromJS

func CertificateStatsFromJS(value js.Value) *CertificateStats

CertificateStatsFromJS is allocating a new CertificateStats object and copy all values in the value javascript object.

func (*CertificateStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CodecStats

type CodecStats struct {
	Timestamp      float64
	Type           webrtc.StatsType
	Id             string
	PayloadType    uint
	CodecType      CodecType
	TransportId    string
	MimeType       string
	ClockRate      uint
	Channels       uint
	SdpFmtpLine    string
	Implementation string
}

dictionary: RTCCodecStats

func CodecStatsFromJS

func CodecStatsFromJS(value js.Value) *CodecStats

CodecStatsFromJS is allocating a new CodecStats object and copy all values in the value javascript object.

func (*CodecStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type CodecType

type CodecType int

enum: RTCCodecType

const (
	EncodeRTCCodecType CodecType = iota
	DecodeRTCCodecType
)

func CodecTypeFromJS

func CodecTypeFromJS(value js.Value) CodecType

CodecTypeFromJS is converting a javascript value into a CodecType enum value.

func (*CodecType) JSValue

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

JSValue is converting this enum into a javascript object

func (CodecType) Value

func (this CodecType) Value() string

Value is converting this into javascript defined string value

type DataChannelStats

type DataChannelStats struct {
	Timestamp             float64
	Type                  webrtc.StatsType
	Id                    string
	Label                 string
	Protocol              string
	DataChannelIdentifier int
	TransportId           string
	State                 webrtc.DataChannelState
	MessagesSent          uint
	BytesSent             int
	MessagesReceived      uint
	BytesReceived         int
}

dictionary: RTCDataChannelStats

func DataChannelStatsFromJS

func DataChannelStatsFromJS(value js.Value) *DataChannelStats

DataChannelStatsFromJS is allocating a new DataChannelStats object and copy all values in the value javascript object.

func (*DataChannelStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceCandidatePairStats

type IceCandidatePairStats struct {
	Timestamp                   float64
	Type                        webrtc.StatsType
	Id                          string
	TransportId                 string
	LocalCandidateId            string
	RemoteCandidateId           string
	State                       StatsIceCandidatePairState
	Nominated                   bool
	PacketsSent                 uint
	PacketsReceived             uint
	BytesSent                   int
	BytesReceived               int
	LastPacketSentTimestamp     float64
	LastPacketReceivedTimestamp float64
	FirstRequestTimestamp       float64
	LastRequestTimestamp        float64
	LastResponseTimestamp       float64
	TotalRoundTripTime          float64
	CurrentRoundTripTime        float64
	AvailableOutgoingBitrate    float64
	AvailableIncomingBitrate    float64
	CircuitBreakerTriggerCount  uint
	RequestsReceived            int
	RequestsSent                int
	ResponsesReceived           int
	ResponsesSent               int
	RetransmissionsReceived     int
	RetransmissionsSent         int
	ConsentRequestsSent         int
	ConsentExpiredTimestamp     float64
	TotalRtt                    float64
	CurrentRtt                  float64
	Priority                    int
}

dictionary: RTCIceCandidatePairStats

func IceCandidatePairStatsFromJS

func IceCandidatePairStatsFromJS(value js.Value) *IceCandidatePairStats

IceCandidatePairStatsFromJS is allocating a new IceCandidatePairStats object and copy all values in the value javascript object.

func (*IceCandidatePairStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type IceCandidateStats

type IceCandidateStats struct {
	Timestamp     float64
	Type          webrtc.StatsType
	Id            string
	TransportId   string
	NetworkType   NetworkType
	Address       *string
	Port          int
	Protocol      string
	CandidateType webrtc.IceCandidateType
	Priority      int
	Url           string
	RelayProtocol string
	Deleted       bool
	IsRemote      bool
}

dictionary: RTCIceCandidateStats

func IceCandidateStatsFromJS

func IceCandidateStatsFromJS(value js.Value) *IceCandidateStats

IceCandidateStatsFromJS is allocating a new IceCandidateStats object and copy all values in the value javascript object.

func (*IceCandidateStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type InboundRtpStreamStats

type InboundRtpStreamStats struct {
	Timestamp                   float64
	Type                        webrtc.StatsType
	Id                          string
	Ssrc                        uint
	Kind                        string
	TransportId                 string
	CodecId                     string
	FirCount                    uint
	PliCount                    uint
	NackCount                   uint
	SliCount                    uint
	QpSum                       int
	MediaType                   string
	AverageRTCPInterval         float64
	PacketsReceived             uint
	PacketsLost                 int
	Jitter                      float64
	PacketsDiscarded            uint
	PacketsRepaired             uint
	BurstPacketsLost            uint
	BurstPacketsDiscarded       uint
	BurstLossCount              uint
	BurstDiscardCount           uint
	BurstLossRate               float64
	BurstDiscardRate            float64
	GapLossRate                 float64
	GapDiscardRate              float64
	TrackId                     string
	ReceiverId                  string
	RemoteId                    string
	FramesDecoded               uint
	LastPacketReceivedTimestamp float64
	AverageRtcpInterval         float64
	FecPacketsReceived          uint
	BytesReceived               int
	PacketsFailedDecryption     uint
	PacketsDuplicated           uint
}

dictionary: RTCInboundRtpStreamStats

func InboundRtpStreamStatsFromJS

func InboundRtpStreamStatsFromJS(value js.Value) *InboundRtpStreamStats

InboundRtpStreamStatsFromJS is allocating a new InboundRtpStreamStats object and copy all values in the value javascript object.

func (*InboundRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaHandlerStats

type MediaHandlerStats struct {
	Timestamp       float64
	Type            webrtc.StatsType
	Id              string
	TrackIdentifier string
	RemoteSource    bool
	Ended           bool
	Kind            string
	Priority        webrtc.PriorityType
}

dictionary: RTCMediaHandlerStats

func MediaHandlerStatsFromJS

func MediaHandlerStatsFromJS(value js.Value) *MediaHandlerStats

MediaHandlerStatsFromJS is allocating a new MediaHandlerStats object and copy all values in the value javascript object.

func (*MediaHandlerStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type MediaStreamStats

type MediaStreamStats struct {
	Timestamp        float64
	Type             webrtc.StatsType
	Id               string
	StreamIdentifier string
	TrackIds         []string
}

dictionary: RTCMediaStreamStats

func MediaStreamStatsFromJS

func MediaStreamStatsFromJS(value js.Value) *MediaStreamStats

MediaStreamStatsFromJS is allocating a new MediaStreamStats object and copy all values in the value javascript object.

func (*MediaStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type NetworkType

type NetworkType int

enum: RTCNetworkType

const (
	BluetoothRTCNetworkType NetworkType = iota
	CellularRTCNetworkType
	EthernetRTCNetworkType
	WifiRTCNetworkType
	WimaxRTCNetworkType
	VpnRTCNetworkType
	UnknownRTCNetworkType
)

func NetworkTypeFromJS

func NetworkTypeFromJS(value js.Value) NetworkType

NetworkTypeFromJS is converting a javascript value into a NetworkType enum value.

func (*NetworkType) JSValue

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

JSValue is converting this enum into a javascript object

func (NetworkType) Value

func (this NetworkType) Value() string

Value is converting this into javascript defined string value

type OutboundRtpStreamStats

type OutboundRtpStreamStats struct {
	Timestamp               float64
	Type                    webrtc.StatsType
	Id                      string
	Ssrc                    uint
	Kind                    string
	TransportId             string
	CodecId                 string
	FirCount                uint
	PliCount                uint
	NackCount               uint
	SliCount                uint
	QpSum                   int
	MediaType               string
	AverageRTCPInterval     float64
	PacketsSent             uint
	PacketsDiscardedOnSend  uint
	FecPacketsSent          uint
	BytesSent               int
	BytesDiscardedOnSend    int
	TrackId                 string
	SenderId                string
	RemoteId                string
	LastPacketSentTimestamp float64
	TargetBitrate           float64
	FramesEncoded           uint
	TotalEncodeTime         float64
	AverageRtcpInterval     float64
	QualityLimitationReason QualityLimitationReason
}

dictionary: RTCOutboundRtpStreamStats

func OutboundRtpStreamStatsFromJS

func OutboundRtpStreamStatsFromJS(value js.Value) *OutboundRtpStreamStats

OutboundRtpStreamStatsFromJS is allocating a new OutboundRtpStreamStats object and copy all values in the value javascript object.

func (*OutboundRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type PeerConnectionStats

type PeerConnectionStats struct {
	Timestamp             float64
	Type                  webrtc.StatsType
	Id                    string
	DataChannelsOpened    uint
	DataChannelsClosed    uint
	DataChannelsRequested uint
	DataChannelsAccepted  uint
}

dictionary: RTCPeerConnectionStats

func PeerConnectionStatsFromJS

func PeerConnectionStatsFromJS(value js.Value) *PeerConnectionStats

PeerConnectionStatsFromJS is allocating a new PeerConnectionStats object and copy all values in the value javascript object.

func (*PeerConnectionStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type QualityLimitationReason

type QualityLimitationReason int

enum: RTCQualityLimitationReason

const (
	NoneRTCQualityLimitationReason QualityLimitationReason = iota
	CpuRTCQualityLimitationReason
	BandwidthRTCQualityLimitationReason
	OtherRTCQualityLimitationReason
)

func QualityLimitationReasonFromJS

func QualityLimitationReasonFromJS(value js.Value) QualityLimitationReason

QualityLimitationReasonFromJS is converting a javascript value into a QualityLimitationReason enum value.

func (*QualityLimitationReason) JSValue

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

JSValue is converting this enum into a javascript object

func (QualityLimitationReason) Value

func (this QualityLimitationReason) Value() string

Value is converting this into javascript defined string value

type ReceivedRtpStreamStats

type ReceivedRtpStreamStats struct {
	Timestamp             float64
	Type                  webrtc.StatsType
	Id                    string
	Ssrc                  uint
	Kind                  string
	TransportId           string
	CodecId               string
	FirCount              uint
	PliCount              uint
	NackCount             uint
	SliCount              uint
	QpSum                 int
	MediaType             string
	AverageRTCPInterval   float64
	PacketsReceived       uint
	PacketsLost           int
	Jitter                float64
	PacketsDiscarded      uint
	PacketsRepaired       uint
	BurstPacketsLost      uint
	BurstPacketsDiscarded uint
	BurstLossCount        uint
	BurstDiscardCount     uint
	BurstLossRate         float64
	BurstDiscardRate      float64
	GapLossRate           float64
	GapDiscardRate        float64
}

dictionary: RTCReceivedRtpStreamStats

func ReceivedRtpStreamStatsFromJS

func ReceivedRtpStreamStatsFromJS(value js.Value) *ReceivedRtpStreamStats

ReceivedRtpStreamStatsFromJS is allocating a new ReceivedRtpStreamStats object and copy all values in the value javascript object.

func (*ReceivedRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RemoteInboundRtpStreamStats

type RemoteInboundRtpStreamStats struct {
	Timestamp             float64
	Type                  webrtc.StatsType
	Id                    string
	Ssrc                  uint
	Kind                  string
	TransportId           string
	CodecId               string
	FirCount              uint
	PliCount              uint
	NackCount             uint
	SliCount              uint
	QpSum                 int
	MediaType             string
	AverageRTCPInterval   float64
	PacketsReceived       uint
	PacketsLost           int
	Jitter                float64
	PacketsDiscarded      uint
	PacketsRepaired       uint
	BurstPacketsLost      uint
	BurstPacketsDiscarded uint
	BurstLossCount        uint
	BurstDiscardCount     uint
	BurstLossRate         float64
	BurstDiscardRate      float64
	GapLossRate           float64
	GapDiscardRate        float64
	LocalId               string
	RoundTripTime         float64
	FractionLost          float64
}

dictionary: RTCRemoteInboundRtpStreamStats

func RemoteInboundRtpStreamStatsFromJS

func RemoteInboundRtpStreamStatsFromJS(value js.Value) *RemoteInboundRtpStreamStats

RemoteInboundRtpStreamStatsFromJS is allocating a new RemoteInboundRtpStreamStats object and copy all values in the value javascript object.

func (*RemoteInboundRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RemoteOutboundRtpStreamStats

type RemoteOutboundRtpStreamStats struct {
	Timestamp              float64
	Type                   webrtc.StatsType
	Id                     string
	Ssrc                   uint
	Kind                   string
	TransportId            string
	CodecId                string
	FirCount               uint
	PliCount               uint
	NackCount              uint
	SliCount               uint
	QpSum                  int
	MediaType              string
	AverageRTCPInterval    float64
	PacketsSent            uint
	PacketsDiscardedOnSend uint
	FecPacketsSent         uint
	BytesSent              int
	BytesDiscardedOnSend   int
	LocalId                string
	RemoteTimestamp        float64
}

dictionary: RTCRemoteOutboundRtpStreamStats

func RemoteOutboundRtpStreamStatsFromJS

func RemoteOutboundRtpStreamStatsFromJS(value js.Value) *RemoteOutboundRtpStreamStats

RemoteOutboundRtpStreamStatsFromJS is allocating a new RemoteOutboundRtpStreamStats object and copy all values in the value javascript object.

func (*RemoteOutboundRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpContributingSourceStats

type RtpContributingSourceStats struct {
	Timestamp            float64
	Type                 webrtc.StatsType
	Id                   string
	ContributorSsrc      uint
	InboundRtpStreamId   string
	PacketsContributedTo uint
	AudioLevel           float64
}

dictionary: RTCRtpContributingSourceStats

func RtpContributingSourceStatsFromJS

func RtpContributingSourceStatsFromJS(value js.Value) *RtpContributingSourceStats

RtpContributingSourceStatsFromJS is allocating a new RtpContributingSourceStats object and copy all values in the value javascript object.

func (*RtpContributingSourceStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type RtpStreamStats

type RtpStreamStats struct {
	Timestamp           float64
	Type                webrtc.StatsType
	Id                  string
	Ssrc                uint
	Kind                string
	TransportId         string
	CodecId             string
	FirCount            uint
	PliCount            uint
	NackCount           uint
	SliCount            uint
	QpSum               int
	MediaType           string
	AverageRTCPInterval float64
}

dictionary: RTCRtpStreamStats

func RtpStreamStatsFromJS

func RtpStreamStatsFromJS(value js.Value) *RtpStreamStats

RtpStreamStatsFromJS is allocating a new RtpStreamStats object and copy all values in the value javascript object.

func (*RtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SenderAudioTrackAttachmentStats

type SenderAudioTrackAttachmentStats struct {
	Timestamp                 float64
	Type                      webrtc.StatsType
	Id                        string
	TrackIdentifier           string
	RemoteSource              bool
	Ended                     bool
	Kind                      string
	Priority                  webrtc.PriorityType
	AudioLevel                float64
	TotalAudioEnergy          float64
	VoiceActivityFlag         bool
	TotalSamplesDuration      float64
	EchoReturnLoss            float64
	EchoReturnLossEnhancement float64
	TotalSamplesSent          int
}

dictionary: RTCSenderAudioTrackAttachmentStats

func SenderAudioTrackAttachmentStatsFromJS

func SenderAudioTrackAttachmentStatsFromJS(value js.Value) *SenderAudioTrackAttachmentStats

SenderAudioTrackAttachmentStatsFromJS is allocating a new SenderAudioTrackAttachmentStats object and copy all values in the value javascript object.

func (*SenderAudioTrackAttachmentStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SenderVideoTrackAttachmentStats

type SenderVideoTrackAttachmentStats struct {
	Timestamp       float64
	Type            webrtc.StatsType
	Id              string
	TrackIdentifier string
	RemoteSource    bool
	Ended           bool
	Kind            string
	Priority        webrtc.PriorityType
	FrameWidth      uint
	FrameHeight     uint
	FramesPerSecond float64
	FramesCaptured  uint
	FramesSent      uint
	HugeFramesSent  uint
	KeyFramesSent   uint
}

dictionary: RTCSenderVideoTrackAttachmentStats

func SenderVideoTrackAttachmentStatsFromJS

func SenderVideoTrackAttachmentStatsFromJS(value js.Value) *SenderVideoTrackAttachmentStats

SenderVideoTrackAttachmentStatsFromJS is allocating a new SenderVideoTrackAttachmentStats object and copy all values in the value javascript object.

func (*SenderVideoTrackAttachmentStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type SentRtpStreamStats

type SentRtpStreamStats struct {
	Timestamp              float64
	Type                   webrtc.StatsType
	Id                     string
	Ssrc                   uint
	Kind                   string
	TransportId            string
	CodecId                string
	FirCount               uint
	PliCount               uint
	NackCount              uint
	SliCount               uint
	QpSum                  int
	MediaType              string
	AverageRTCPInterval    float64
	PacketsSent            uint
	PacketsDiscardedOnSend uint
	FecPacketsSent         uint
	BytesSent              int
	BytesDiscardedOnSend   int
}

dictionary: RTCSentRtpStreamStats

func SentRtpStreamStatsFromJS

func SentRtpStreamStatsFromJS(value js.Value) *SentRtpStreamStats

SentRtpStreamStatsFromJS is allocating a new SentRtpStreamStats object and copy all values in the value javascript object.

func (*SentRtpStreamStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type StatsIceCandidatePairState

type StatsIceCandidatePairState int

enum: RTCStatsIceCandidatePairState

const (
	FrozenRTCStatsIceCandidatePairState StatsIceCandidatePairState = iota
	WaitingRTCStatsIceCandidatePairState
	InProgressRTCStatsIceCandidatePairState
	FailedRTCStatsIceCandidatePairState
	SucceededRTCStatsIceCandidatePairState
)

func StatsIceCandidatePairStateFromJS

func StatsIceCandidatePairStateFromJS(value js.Value) StatsIceCandidatePairState

StatsIceCandidatePairStateFromJS is converting a javascript value into a StatsIceCandidatePairState enum value.

func (*StatsIceCandidatePairState) JSValue

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

JSValue is converting this enum into a javascript object

func (StatsIceCandidatePairState) Value

func (this StatsIceCandidatePairState) Value() string

Value is converting this into javascript defined string value

type TransportStats

type TransportStats struct {
	Timestamp               float64
	Type                    webrtc.StatsType
	Id                      string
	PacketsSent             uint
	PacketsReceived         uint
	BytesSent               int
	BytesReceived           int
	RtcpTransportStatsId    string
	IceRole                 webrtc.IceRole
	DtlsState               webrtc.DtlsTransportState
	SelectedCandidatePairId string
	LocalCertificateId      string
	RemoteCertificateId     string
	TlsVersion              string
	DtlsCipher              string
	SrtpCipher              string
	TlsGroup                string
}

dictionary: RTCTransportStats

func TransportStatsFromJS

func TransportStatsFromJS(value js.Value) *TransportStats

TransportStatsFromJS is allocating a new TransportStats object and copy all values in the value javascript object.

func (*TransportStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

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

type VideoHandlerStats

type VideoHandlerStats struct {
	Timestamp       float64
	Type            webrtc.StatsType
	Id              string
	TrackIdentifier string
	RemoteSource    bool
	Ended           bool
	Kind            string
	Priority        webrtc.PriorityType
	FrameWidth      uint
	FrameHeight     uint
	FramesPerSecond float64
}

dictionary: RTCVideoHandlerStats

func VideoHandlerStatsFromJS

func VideoHandlerStatsFromJS(value js.Value) *VideoHandlerStats

VideoHandlerStatsFromJS is allocating a new VideoHandlerStats object and copy all values in the value javascript object.

func (*VideoHandlerStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type VideoReceiverStats

type VideoReceiverStats struct {
	Timestamp                 float64
	Type                      webrtc.StatsType
	Id                        string
	TrackIdentifier           string
	RemoteSource              bool
	Ended                     bool
	Kind                      string
	Priority                  webrtc.PriorityType
	FrameWidth                uint
	FrameHeight               uint
	FramesPerSecond           float64
	EstimatedPlayoutTimestamp float64
	JitterBufferDelay         float64
	JitterBufferEmittedCount  int
	FramesReceived            uint
	KeyFramesReceived         uint
	FramesDecoded             uint
	FramesDropped             uint
	PartialFramesLost         uint
	FullFramesLost            uint
}

dictionary: RTCVideoReceiverStats

func VideoReceiverStatsFromJS

func VideoReceiverStatsFromJS(value js.Value) *VideoReceiverStats

VideoReceiverStatsFromJS is allocating a new VideoReceiverStats object and copy all values in the value javascript object.

func (*VideoReceiverStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

type VideoSenderStats

type VideoSenderStats struct {
	Timestamp       float64
	Type            webrtc.StatsType
	Id              string
	TrackIdentifier string
	RemoteSource    bool
	Ended           bool
	Kind            string
	Priority        webrtc.PriorityType
	FrameWidth      uint
	FrameHeight     uint
	FramesPerSecond float64
	FramesCaptured  uint
	FramesSent      uint
	HugeFramesSent  uint
	KeyFramesSent   uint
}

dictionary: RTCVideoSenderStats

func VideoSenderStatsFromJS

func VideoSenderStatsFromJS(value js.Value) *VideoSenderStats

VideoSenderStatsFromJS is allocating a new VideoSenderStats object and copy all values in the value javascript object.

func (*VideoSenderStats) JSValue

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

JSValue is allocating a new javascript object and copy all values

Jump to

Keyboard shortcuts

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