FMLiveSwitchMedia Class Reference

A collection of audio/video tracks. More...

Instance Methods

(void) - addAudioTrack:
 Adds an audio track. More...
 
(void) - addOnAudioDestroyed:
 Adds a handler that is raised when the first audio track is destroyed. More...
 
(void) - addOnAudioLevel:
 Adds a handler that is raised whenever the level of the first audio track is calculated. More...
 
(double) - addOnAudioLevelWithBlock
 Adds a handler that is raised whenever the level of the first audio track is calculated. More...
 
(void) - addOnAudioLevelWithBlock:
 Adds a handler that is raised whenever the level of the first audio track is calculated. More...
 
(void) - addOnVideoDestroyed:
 Adds a handler that is raised when the first video track is destroyed. More...
 
(void) - addOnVideoSize:
 Adds a handler that is raised whenever the size of the first video track is calculated. More...
 
(FMLiveSwitchSize *) - addOnVideoSizeWithBlock
 Adds a handler that is raised whenever the size of the first video track is calculated. More...
 
(void) - addOnVideoSizeWithBlock:
 Adds a handler that is raised whenever the size of the first video track is calculated. More...
 
(void) - addVideoTrack:
 Adds a video track. More...
 
(NSMutableArray *) - arrayFromAudioTracks:
 Creates an array of tracks from a list of audio tracks. More...
 
(NSMutableArray *) - arrayFromVideoTracks:
 Creates an array of tracks from a list of video tracks. More...
 
(NSMutableArray *) - audioTracks
 Gets the audio tracks. More...
 
(NSMutableArray< TAudioTrack > *) - createAudioTrackCollection
 Creates an audio track collection. More...
 
(NSMutableArray< TVideoTrack > *) - createVideoTrackCollection
 Creates a video track collection. More...
 
(void) - destroy
 Destroys this media. More...
 
(FMLiveSwitchFuture< FMLiveSwitchVideoBuffer * > *) - grabVideoFrame
 Grabs the next frame from the first video track, once it's rendered. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchMedia`2 class. More...
 
(bool) - isRecordingAudio
 Gets a value indicating whether audio is being recorded. More...
 
(bool) - isRecordingVideo
 Gets a value indicating whether video is being recorded. More...
 
(bool) - removeAudioTrack:
 Removes an audio track. More...
 
(void) - removeOnAudioDestroyed:
 Removes a handler that is raised when the first audio track is destroyed. More...
 
(void) - removeOnAudioLevel:
 Removes a handler that is raised whenever the level of the first audio track is calculated. More...
 
(void) - removeOnVideoDestroyed:
 Removes a handler that is raised when the first video track is destroyed. More...
 
(void) - removeOnVideoSize:
 Removes a handler that is raised whenever the size of the first video track is calculated. More...
 
(bool) - removeVideoTrack:
 Removes a video track. More...
 
(void) - setIsRecordingAudio:
 Sets a value indicating whether audio is being recorded. More...
 
(void) - setIsRecordingVideo:
 Sets a value indicating whether video is being recorded. More...
 
(FMLiveSwitchSize *) - videoSize
 Gets the size of the first video track. More...
 
(NSMutableArray *) - videoTracks
 Gets the video tracks. More...
 

Class Methods

(FMLiveSwitchMedia *) + media
 Initializes a new instance of the FMLiveSwitchMedia`2 class. More...
 

Protected Attributes

 __pad0__: FMLiveSwitchMediaBase<TAudioTrack
 

Detailed Description

A collection of audio/video tracks.

Method Documentation

◆ addAudioTrack:

- (void) addAudioTrack: (TAudioTrack)  audioTrack

Adds an audio track.

Parameters
audioTrackThe audio track.

◆ addOnAudioDestroyed:

- (void) addOnAudioDestroyed: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the first audio track is destroyed.

◆ addOnAudioLevel:

- (void) addOnAudioLevel: (FMLiveSwitchAction1< id > *)  value

Adds a handler that is raised whenever the level of the first audio track is calculated.

◆ addOnAudioLevelWithBlock

- (double) addOnAudioLevelWithBlock

Adds a handler that is raised whenever the level of the first audio track is calculated.

◆ addOnAudioLevelWithBlock:

- (void) addOnAudioLevelWithBlock: (void(^)(double))  valueBlock

Adds a handler that is raised whenever the level of the first audio track is calculated.

◆ addOnVideoDestroyed:

- (void) addOnVideoDestroyed: (FMLiveSwitchAction0 *)  value

Adds a handler that is raised when the first video track is destroyed.

◆ addOnVideoSize:

- (void) addOnVideoSize: (FMLiveSwitchAction1< FMLiveSwitchSize * > *)  value

Adds a handler that is raised whenever the size of the first video track is calculated.

◆ addOnVideoSizeWithBlock

- (FMLiveSwitchSize*) addOnVideoSizeWithBlock

Adds a handler that is raised whenever the size of the first video track is calculated.

◆ addOnVideoSizeWithBlock:

- (void) addOnVideoSizeWithBlock: (void(^)(FMLiveSwitchSize *))  valueBlock

Adds a handler that is raised whenever the size of the first video track is calculated.

◆ addVideoTrack:

- (void) addVideoTrack: (TVideoTrack)  videoTrack

Adds a video track.

Parameters
videoTrackThe video track.

◆ arrayFromAudioTracks:

- (NSMutableArray*) arrayFromAudioTracks: (NSMutableArray< TAudioTrack > *)  tracks

Creates an array of tracks from a list of audio tracks.

Parameters
tracksThe list of tracks.

◆ arrayFromVideoTracks:

- (NSMutableArray*) arrayFromVideoTracks: (NSMutableArray< TVideoTrack > *)  tracks

Creates an array of tracks from a list of video tracks.

Parameters
tracksThe list of tracks.

◆ audioTracks

- (NSMutableArray*) audioTracks

Gets the audio tracks.

◆ createAudioTrackCollection

- (NSMutableArray<TAudioTrack>*) createAudioTrackCollection

Creates an audio track collection.

Implemented in FMLiveSwitchRemoteMedia.

◆ createVideoTrackCollection

- (NSMutableArray<TVideoTrack>*) createVideoTrackCollection

Creates a video track collection.

Implemented in FMLiveSwitchRemoteMedia.

◆ destroy

- (void) destroy

Destroys this media.

◆ grabVideoFrame

Grabs the next frame from the first video track, once it's rendered.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchMedia`2 class.

Implemented in FMLiveSwitchRemoteMedia.

◆ isRecordingAudio

- (bool) isRecordingAudio

Gets a value indicating whether audio is being recorded.

◆ isRecordingVideo

- (bool) isRecordingVideo

Gets a value indicating whether video is being recorded.

◆ media

+ (FMLiveSwitchMedia*) media

Initializes a new instance of the FMLiveSwitchMedia`2 class.

◆ removeAudioTrack:

- (bool) removeAudioTrack: (TAudioTrack)  audioTrack

Removes an audio track.

Parameters
audioTrackThe audio track.

◆ removeOnAudioDestroyed:

- (void) removeOnAudioDestroyed: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the first audio track is destroyed.

◆ removeOnAudioLevel:

- (void) removeOnAudioLevel: (FMLiveSwitchAction1< id > *)  value

Removes a handler that is raised whenever the level of the first audio track is calculated.

◆ removeOnVideoDestroyed:

- (void) removeOnVideoDestroyed: (FMLiveSwitchAction0 *)  value

Removes a handler that is raised when the first video track is destroyed.

◆ removeOnVideoSize:

- (void) removeOnVideoSize: (FMLiveSwitchAction1< FMLiveSwitchSize * > *)  value

Removes a handler that is raised whenever the size of the first video track is calculated.

◆ removeVideoTrack:

- (bool) removeVideoTrack: (TVideoTrack)  videoTrack

Removes a video track.

Parameters
videoTrackThe video track.

◆ setIsRecordingAudio:

- (void) setIsRecordingAudio: (bool)  value

Sets a value indicating whether audio is being recorded.

◆ setIsRecordingVideo:

- (void) setIsRecordingVideo: (bool)  value

Sets a value indicating whether video is being recorded.

◆ videoSize

- (FMLiveSwitchSize*) videoSize

Gets the size of the first video track.

◆ videoTracks

- (NSMutableArray*) videoTracks

Gets the video tracks.

Member Data Documentation

◆ __pad0__

- __pad0__
protected