Class: MediaStreamTrack
#
Hierarchy↳ MediaStreamTrack
#
Constructors#
constructor• new MediaStreamTrack(props
)
#
ParametersName | Type |
---|---|
props | Partial <MediaStreamTrack> & Pick <MediaStreamTrack, "kind" > |
#
Overrides#
Defined inpackages/webrtc/src/media/track.ts:25
#
Properties#
codec• Optional
codec: RTCRtpCodecParameters
#
Defined inpackages/webrtc/src/media/track.ts:18
#
enabled• enabled: boolean
= true
todo impl
#
Defined inpackages/webrtc/src/media/track.ts:20
#
header• Optional
header: RtpHeader
#
Defined inpackages/webrtc/src/media/track.ts:17
#
id• Optional
id: string
#
Defined inpackages/webrtc/src/media/track.ts:14
#
kind• kind: Kind
#
Defined inpackages/webrtc/src/media/track.ts:13
#
label• label: string
#
Defined inpackages/webrtc/src/media/track.ts:12
#
muted• muted: boolean
= true
#
Defined inpackages/webrtc/src/media/track.ts:25
#
onReceiveRtp• Readonly
onReceiveRtp: default
<[RtpPacket]>
#
Defined inpackages/webrtc/src/media/track.ts:22
#
remote• remote: boolean
= false
#
Defined inpackages/webrtc/src/media/track.ts:11
#
rid• Optional
rid: string
#
Defined inpackages/webrtc/src/media/track.ts:16
#
ssrc• Optional
ssrc: number
#
Defined inpackages/webrtc/src/media/track.ts:15
#
stopped• stopped: boolean
= false
#
Defined inpackages/webrtc/src/media/track.ts:24
#
uuid• Readonly
uuid: string
#
Defined inpackages/webrtc/src/media/track.ts:10
#
captureRejectionSymbol▪ Static
Readonly
captureRejectionSymbol: typeof captureRejectionSymbol
#
Inherited fromEventTarget.captureRejectionSymbol
#
Defined innode_modules/@types/node/events.d.ts:43
#
captureRejections▪ Static
captureRejections: boolean
Sets or gets the default captureRejection value for all emitters.
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:49
#
defaultMaxListeners▪ Static
defaultMaxListeners: number
#
Inherited fromEventTarget.defaultMaxListeners
#
Defined innode_modules/@types/node/events.d.ts:50
#
errorMonitor▪ Static
Readonly
errorMonitor: typeof errorMonitor
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:42
#
Methods#
addEventListener▸ addEventListener(type
, listener
): void
#
ParametersName | Type |
---|---|
type | string |
listener | (...args : any []) => void |
#
Returnsvoid
#
Inherited from#
Defined inpackages/webrtc/src/helper.ts:37
#
addListener▸ addListener(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:62
#
emit▸ emit(event
, ...args
): boolean
#
ParametersName | Type |
---|---|
event | string | symbol |
...args | any [] |
#
Returnsboolean
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:72
#
eventNames▸ eventNames(): (string
| symbol
)[]
#
Returns(string
| symbol
)[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:77
#
getMaxListeners▸ getMaxListeners(): number
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:69
#
listenerCount▸ listenerCount(event
): number
#
ParametersName | Type |
---|---|
event | string | symbol |
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:73
#
listeners▸ listeners(event
): Function
[]
#
ParametersName | Type |
---|---|
event | string | symbol |
#
ReturnsFunction
[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:70
#
off▸ off(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:66
#
on▸ on(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:63
#
once▸ once(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:64
#
prependListener▸ prependListener(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:75
#
prependOnceListener▸ prependOnceListener(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited fromEventTarget.prependOnceListener
#
Defined innode_modules/@types/node/events.d.ts:76
#
rawListeners▸ rawListeners(event
): Function
[]
#
ParametersName | Type |
---|---|
event | string | symbol |
#
ReturnsFunction
[]
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:71
#
removeAllListeners▸ removeAllListeners(event?
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event? | string | symbol |
#
Returns#
Inherited fromEventTarget.removeAllListeners
#
Defined innode_modules/@types/node/events.d.ts:67
#
removeEventListener▸ removeEventListener(type
, listener
): void
#
ParametersName | Type |
---|---|
type | string |
listener | (...args : any []) => void |
#
Returnsvoid
#
Inherited fromEventTarget.removeEventListener
#
Defined inpackages/webrtc/src/helper.ts:41
#
removeListener▸ removeListener(event
, listener
): MediaStreamTrack
#
ParametersName | Type |
---|---|
event | string | symbol |
listener | (...args : any []) => void |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:65
#
setMaxListeners▸ setMaxListeners(n
): MediaStreamTrack
#
ParametersName | Type |
---|---|
n | number |
#
Returns#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:68
#
stop▸ stop(): void
#
Returnsvoid
#
Defined inpackages/webrtc/src/media/track.ts:41
#
writeRtp▸ writeRtp(rtp
): void
#
ParametersName | Type |
---|---|
rtp | Buffer | RtpPacket |
#
Returnsvoid
#
Defined inpackages/webrtc/src/media/track.ts:47
#
listenerCount▸ Static
listenerCount(emitter
, event
): number
deprecated
since v4.0.0
#
ParametersName | Type |
---|---|
emitter | EventEmitter |
event | string | symbol |
#
Returnsnumber
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:31
#
on▸ Static
on(emitter
, event
): AsyncIterableIterator
<any>
#
ParametersName | Type |
---|---|
emitter | EventEmitter |
event | string |
#
ReturnsAsyncIterableIterator
<any>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:28
#
once▸ Static
once(emitter
, event
): Promise
<any[]>
#
ParametersName | Type |
---|---|
emitter | NodeEventTarget |
event | string | symbol |
#
ReturnsPromise
<any[]>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:26
▸ Static
once(emitter
, event
): Promise
<any[]>
#
ParametersName | Type |
---|---|
emitter | DOMEventTarget |
event | string |
#
ReturnsPromise
<any[]>
#
Inherited from#
Defined innode_modules/@types/node/events.d.ts:27