/ fm / liveswitch / WssLocalMediaStreamer
Class: WssLocalMediaStreamer
fm.liveswitch.WssLocalMediaStreamer
Table of contents
Constructors
Properties
Methods
- canStreamAudio
- canStreamVideo
- canUseImageCapture
- fps
- getVideoTimestamp
- handleAudioTrackStarted
- handleAudioTrackStopped
- handleVideoTrackStarted
- handleVideoTrackStopped
- isStreamingAudio
- isStreamingVideo
- start
- stop
- subscribeAudioTrackChange
- subscribeVideoTrackChange
- unsubscribeAudioTrackChange
- unsubscribeVideoTrackChange
- videoHeight
- videoWidth
- getProcessorURL
Constructors
constructor
+ new WssLocalMediaStreamer(localMediaForAudio
: LocalMedia, localMediaForVideo
: LocalMedia): WssLocalMediaStreamer
Parameters:
Name | Type |
---|---|
localMediaForAudio |
LocalMedia |
localMediaForVideo |
LocalMedia |
Returns: WssLocalMediaStreamer
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:50
Properties
_processorURL
▪ Private
Static
_processorURL: string
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:468
Methods
canStreamAudio
▸ canStreamAudio(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:82
canStreamVideo
▸ canStreamVideo(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:69
canUseImageCapture
▸ Private
canUseImageCapture(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:215
fps
▸ fps(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:65
getVideoTimestamp
▸ Private
getVideoTimestamp(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:278
handleAudioTrackStarted
▸ Private
handleAudioTrackStarted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:430
handleAudioTrackStopped
▸ Private
handleAudioTrackStopped(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:426
handleVideoTrackStarted
▸ Private
handleVideoTrackStarted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:324
handleVideoTrackStopped
▸ Private
handleVideoTrackStopped(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:320
isStreamingAudio
▸ isStreamingAudio(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:86
isStreamingVideo
▸ isStreamingVideo(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:73
start
▸ start(onVideoFrame
: IAction2<ImageData | ImageBitmap, number>, onAudioFrame
: IAction2<Float32Array, number>): void
Start streaming the local media.
For video: this will set up a canvas to draw the video on and capture. For audio: TODO
Parameters:
Name | Type |
---|---|
onVideoFrame |
IAction2<ImageData | ImageBitmap, number> |
onAudioFrame |
IAction2<Float32Array, number> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:104
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:128
subscribeAudioTrackChange
▸ Private
subscribeAudioTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:407
subscribeVideoTrackChange
▸ Private
subscribeVideoTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:301
unsubscribeAudioTrackChange
▸ Private
unsubscribeAudioTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:418
unsubscribeVideoTrackChange
▸ Private
unsubscribeVideoTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:312
videoHeight
▸ videoHeight(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:61
videoWidth
▸ videoWidth(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:57
getProcessorURL
▸ Private
Static
getProcessorURL(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:469