/ fm / liveswitch / Factory
Class: Factory
fm.liveswitch.Factory
Table of contents
Constructors
Methods
- getTypeString
- createAudioStream
- createConnection
- createDataChannel
- createDataStream
- createDomVideoSink
- createLocalMedia
- createVideoStream
Constructors
constructor
+ new Factory(): Factory
Returns: Factory
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:3
createAudioStream
▸ Static
createAudioStream(localMedia
: LocalMedia): AudioStream
Parameters:
Name | Type |
---|---|
localMedia |
LocalMedia |
Returns: AudioStream
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:13
createConnection
▸ Static
createConnection(streams
: Stream[]): Connection
Parameters:
Name | Type |
---|---|
streams |
Stream[] |
Returns: Connection
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:9
createDataChannel
▸ Static
createDataChannel(label
: string): DataChannel
Parameters:
Name | Type |
---|---|
label |
string |
Returns: DataChannel
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:21
createDataStream
▸ Static
createDataStream(channel
: DataChannel): DataStream
Parameters:
Name | Type |
---|---|
channel |
DataChannel |
Returns: DataStream
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:25
createDomVideoSink
▸ Static
createDomVideoSink(track
: VideoTrack): DomVideoSink
Parameters:
Name | Type |
---|---|
track |
VideoTrack |
Returns: DomVideoSink
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:29
createLocalMedia
▸ Static
createLocalMedia(audio
: any, video
: any, screen?
: boolean): LocalMedia
Parameters:
Name | Type |
---|---|
audio |
any |
video |
any |
screen? |
boolean |
Returns: LocalMedia
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:33
createVideoStream
▸ Static
createVideoStream(localMedia
: LocalMedia): VideoStream
Parameters:
Name | Type |
---|---|
localMedia |
LocalMedia |
Returns: VideoStream
Defined in: Generated/TypeScript/fm.liveswitch/Factory.ts:17