semantic-sdp

3.23.0

CandidateInfo

ICE candidate information

CandidateInfo
Parameters
foundation (String)
componentId (Number)
transport (String)
priority (Number)
address (String)
port (Number)
type (String)
relAddr (String)
relPort (String)
Static Members
expand(plain)
Instance Members
equals(candidate)
clone()
plain()
getFoundation()
getComponentId()
getTransport()
getPriority()
getAddress()
getPort()
getType()
getRelAddr()
getRelPort()

CryptoInfo

SDES peer info

CryptoInfo
Parameters
tag (Number)
suite (String)
keyParams (String)
sessionParams (String)
Static Members
expand(plain)
Instance Members
clone()
plain()
getSessionParams()
getKeyParams()
getSuite()
getTag()

RTCPFeedbackInfo

RTCP Feedback parameter

RTCPFeedbackInfo
Parameters
id (String) RTCP feedback id
params (Array<String>) RTCP feedback params
Static Members
expand(plain)
Instance Members
clone()
plain()
getId()
getParams()

SourceInfo

Strem Source information

SourceInfo
Parameters
ssrc (Number)
Static Members
expand(plain)
Instance Members
clone()
plain()
getCName()
setCName(cname)
getStreamId()
setStreamId(streamId)
getTrackId()
setTrackId(trackId)
getSSRC()

CodecInfo

Codec information extracted for RTP payloads

CodecInfo
Parameters
codec (String) Codec name
type (Number) the payload type number
params (Object) Format params for codec
Static Members
expand(plain)
MapFromNames(names, rtx, rtcpfbs, params)
Instance Members
clone()
plain()
setRTX(rtx)
getType()
setType(type)
getCodec()
getParams()
addParam(key, value)
hasParam(key)
getParam(key, defaultValue)
hasRTX()
getRTX()
hasChannels()
getChannels()
setChannels(channels)
addRTCPFeedback(rtcpfb)
getRTCPFeedbacks()

SimulcastStreamInfo

Simulcast streams info

SimulcastStreamInfo
Parameters
id (String) rid for this simulcast stream
paused (Boolean) If this stream is initially paused
Static Members
expand(plain)
Instance Members
clone()
plain()
isPaused()
getId()

SourceGroupInfo

Group of SSRCS info

SourceGroupInfo
Parameters
semantics (String) Group semantics
ssrcs (Array<Number>) SSRC list
Static Members
expand(plain)
Instance Members
clone()
plain()
getSemantics()
getSSRCs()

StreamInfo

Media Stream information

StreamInfo
Parameters
id (String)
Static Members
expand(plain)
Instance Members
clone()
plain()
getId()
addTrack(track)
getFirstTrack(media)
getTracks()
removeAllTracks()
getTrack(trackId)

TrackEncodingInfo

Simulcast encoding layer information for track

TrackEncodingInfo
Parameters
id (String) rid value
paused (any)
Static Members
expand(plain)
Instance Members
clone()
plain()
getId()
getCodecs()
addCodec(codec)
getParams()
setParams(params)
addParam(id, param)
isPaused()

DTLSInfo

DTLS peer info

DTLSInfo
Parameters
setup (Setup) Setup type
hash (String) Hash function
fingerprint (String) Peer fingerprint
Static Members
expand(plain)
Instance Members
clone()
plain()
getFingerprint()
getHash()
getSetup()
setSetup(setup)

Direction

Enum for Direction values.

Direction

Type: number

Static Members
byValue(direction)
toString(direction)
reverse(direction)

DirectionWay

Enum for DirectionWay Way values.

DirectionWay

Type: number

Static Members
byValue(direction)
toString(direction)
reverse(direction)

ICEInfo

ICE information for a peer

ICEInfo
Parameters
ufrag (String) Peer ICE username framgent
pwd (String) Peer ICE password
Static Members
generate(lite)
expand(plain)
Instance Members
clone()
plain()
getUfrag()
getPwd()
isLite()
setLite(lite)

RIDInfo

RID info

RIDInfo
Parameters
id (String) rid value
direction (DirectionWay) direction
Static Members
expand(plain)
Instance Members
clone()
plain()
getId()
getDirection()
getDirection()
setDirection(direction)
setDirection(direction)
getFormats()
setFormats(formats)
getParams()
setParams(params)
addParam(id, param)

Setup

Enum for Setup values.

Setup

Type: number

Static Members
byValue(setup)
toString(setup)
reverse(setup)

SimulcastInfo

Simulcast information

SimulcastInfo
Static Members
expand(plain)
Instance Members
clone()
plain()
addSimulcastAlternativeStreams(direction, streams)
addSimulcastStream(direction, stream)
getSimulcastStreams(direction)

TrackInfo

Media Track information

TrackInfo
Parameters
media (String) Media type "audio"|"video"
id (String) Track id
Static Members
expand(plain)
Instance Members
clone()
plain()
getMedia()
setMediaId(mediaId)
getMediaId()
getId()
addSSRC(ssrc)
getSSRCs()
addSourceGroup(group)
getSourceGroup(schematics)
getSourceGroups()
hasSourceGroup(schematics)
getEncodings()
addEncoding(encoding)
addAlternativeEncodings(alternatives)
setEncodings(encodings)

MediaInfo

Media information (relates to a m-line in SDP)

MediaInfo
Parameters
id (String) Media id
type (String) Media type "audio"|"video"
Static Members
create(type, supported, null-null, rtx, rtcpbfs)
expand(plain)
Instance Members
clone()
plain()
getType()
getId()
setId(id)
addExtension(id, name)
addRID(ridInfo)
addCodec(codecInfo)
setCodecs(codecs)
getCodecForType(type)
getCodec(codec)
hasCodec(codec)
getCodecs()
hasRTX()
getExtensions()
getRIDs()
getRID(id)
getBitrate()
setBitrate(bitrate)
getDirection()
setDirection(direction)
hasControl()
getControl()
setControl(control)
answer(supported)
getSimulcast()
setSimulcast(simulcast)

SDPInfo

SDP semantic info object This object represent the minimal information of an WebRTC SDP in a semantic hierarchy

SDPInfo
Parameters
version (Number) SDP version attribute
Static Members
create(params)
expand(plain)
process(string)
parse(string)
Instance Members
clone()
plain()
unify()
setVersion(version)
addMedia(media)
getMedia(type)
getMediasByType(type)
getMediaById(msid)
replaceMedia(media)
getMedias()
getVersion()
getDTLS()
setDTLS(dtlsInfo)
hasCrypto()
getCrypto()
setCrypto(cryptoInfo)
hasICE()
getICE()
setICE(iceInfo)
addCandidate(candidate)
addCandidates(candidates)
getCandidates()
getStream(id)
getStreams()
getFirstStream()
addStream(stream)
removeStream(stream)
removeAllStreams()
getTrackByMediaId(mid)
getStreamByMediaId(mid)
answer(params)
toString()
toIceFragmentString()