/ fm / liveswitch / WssLocalMediaStreamer
Class: WssLocalMediaStreamer
fm.liveswitch.WssLocalMediaStreamer
Table of contents
Constructors
Properties
Methods
- canStreamAudio
- canStreamVideo
- canUseImageCapture
- fps
- getVideoHeight
- getVideoTimestamp
- getVideoWidth
- handleAudioTrackStarted
- handleAudioTrackStopped
- handleVideoTrackStarted
- handleVideoTrackStopped
- isStreamingAudio
- isStreamingVideo
- start
- stop
- subscribeAudioTrackChange
- subscribeVideoTrackChange
- unsubscribeAudioTrackChange
- unsubscribeVideoTrackChange
- 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:52
Properties
_processorURL
▪ Private
Static
_processorURL: string
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:476
Methods
canStreamAudio
▸ canStreamAudio(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:84
canStreamVideo
▸ canStreamVideo(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:71
canUseImageCapture
▸ Private
canUseImageCapture(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:220
fps
▸ fps(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:67
getVideoHeight
▸ getVideoHeight(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:63
getVideoTimestamp
▸ Private
getVideoTimestamp(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:286
getVideoWidth
▸ getVideoWidth(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:59
handleAudioTrackStarted
▸ Private
handleAudioTrackStarted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:438
handleAudioTrackStopped
▸ Private
handleAudioTrackStopped(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:434
handleVideoTrackStarted
▸ Private
handleVideoTrackStarted(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:332
handleVideoTrackStopped
▸ Private
handleVideoTrackStopped(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:328
isStreamingAudio
▸ isStreamingAudio(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:88
isStreamingVideo
▸ isStreamingVideo(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:75
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:106
stop
▸ stop(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:130
subscribeAudioTrackChange
▸ Private
subscribeAudioTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:415
subscribeVideoTrackChange
▸ Private
subscribeVideoTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:309
unsubscribeAudioTrackChange
▸ Private
unsubscribeAudioTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:426
unsubscribeVideoTrackChange
▸ Private
unsubscribeVideoTrackChange(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:320
getProcessorURL
▸ Private
Static
getProcessorURL(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/WssLocalMediaStreamer.ts:477