You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Media Stats feature object have the following API structure:
26
-
-`OnSampleReportedListener`: Event for listening for periodic reports of the Media Stats.
27
-
-`setSampleIntervalInSeconds(int value)`: Sets the interval in seconds of the Media Stats report generation. If not specified, sdk use defaults.
28
-
- A `MediaStatsReport` object that contains the definition of the Outgoing and Incoming Media Stats categorized by Audio, Video and Screen Share.
29
-
-`getOutgoingMediaStats()`: The list of Media Stats for Outgoing media.
30
-
-`getAudio()`: The list of Media Stats for the Outgoing Audio.
31
-
-`getVideo()`: The list of Media Stats for the Outgoing Video.
32
-
-`getScreenShare()`: The list of Media Stats for the Outgoing Screen Share.
33
-
-`getIncomingStats()`: The list of Media Stats for Incoming media.
34
-
-`getAudio()`: The list of Media Stats for the Incoming Audio.
35
-
-`getVideo()`: The list of Media Stats for the Incoming Video.
36
-
-`getScreenShare()`: The list of Media Stats for the Incoming Screen Share.
23
+
The `MediaStatsCallFeature` object has the following API structure:
24
+
25
+
- The `OnSampleReportedListener` event listens for periodic reports of the media statistics.
26
+
-`setSampleIntervalInSeconds(int value)` sets the interval, in seconds, of the media statistics report generation. If it's not specified, the SDK uses defaults.
27
+
- A `MediaStatsReport` object contains the definition of the outgoing and incoming media statistics, categorized by audio, video, and screen share.
28
+
-`getOutgoingMediaStats()`: The list of media statistics for outgoing media.
29
+
-`getAudio()`: The list of media statistics for outgoing audio.
30
+
-`getVideo()`: The list of media statistics for outgoing video.
31
+
-`getScreenShare()`: The list of media statistics for outgoing screen share.
32
+
-`getIncomingStats()`: The list of media statistics for incoming media.
33
+
-`getAudio()`: The list of media statistics for incoming audio.
34
+
-`getVideo()`: The list of media statistics for the incoming video.
35
+
-`getScreenShare()`: The list of media statistics for incoming screen share.
37
36
-`getGeneratedAt()`: The date when the report was generated.
38
-
-`getIncomingMediaStatsFromParticipant`: Gets the `IncomingMediaStats`for a`RemoteParticipant`.
37
+
-`getIncomingMediaStatsFromParticipant`: Gets the `IncomingMediaStats`value for`RemoteParticipant`.
39
38
40
39
Then, subscribe to the `addOnSampleReportedListener` event to get regular updates about the current media quality statistics:
Media quality statistics is an extended feature of the core `Call` API. You first need to obtain the MediaStats feature API object:
17
+
Media quality statistics is an extended feature of the core `Call` API. You first need to obtain the `mediaStatsCallFeature` API object:
20
18
21
19
```swift
22
20
var mediaStatsCallFeature =self.call?.feature(Features.mediaStats)
23
21
```
24
22
25
-
The Media Stats feature object have the following API structure:
26
-
-`didReceiveSample`: Delegate method for listening for periodic reports of the Media Stats.
27
-
-`sampleIntervalInSeconds`: Gets and sets the interval in seconds of the Media Stats report generation. If not specified, sdk use defaults.
28
-
- A `MediaStatsReport` object that contains the definition of the Outgoing and Incoming Media Stats categorized by Audio, Video and Screen Share.
29
-
-`OutgoingMediaStats`: The list of Media Stats for Outgoing media.
30
-
-`audio`: The list of Media Stats for the Outgoing Audio.
31
-
-`video`: The list of Media Stats for the Outgoing Video.
32
-
-`screenShare`: The list of Media Stats for the Outgoing Screen Share.
33
-
-`OncomingStats`: The list of Media Stats for Incoming media.
34
-
-`audio`: The list of Media Stats for the Incoming Audio.
35
-
-`video`: The list of Media Stats for the Incoming Video.
36
-
-`screenShare`: The list of Media Stats for the Incoming Screen Share.
23
+
The `mediaStatsCallFeature` object has the following API structure:
24
+
25
+
- The `didReceiveSample` delegate method listens for periodic reports of the media statistics.
26
+
-`sampleIntervalInSeconds` gets and sets the interval, in seconds, of the media statistics report generation. If it's not specified, the SDK uses defaults.
27
+
- A `MediaStatsReport` object contains the definition of the outgoing and incoming media statistics, categorized by audio, video, and screen share.
28
+
-`OutgoingMediaStats`: The list of media statistics for outgoing media.
29
+
-`audio`: The list of media statistics for the outgoing audio.
30
+
-`video`: The list of media statistics for the outgoing video.
31
+
-`screenShare`: The list of media statistics for the outgoing screen share.
32
+
-`OncomingStats`: The list of media statistics for incoming media.
33
+
-`audio`: The list of media statistics for the incoming audio.
34
+
-`video`: The list of media statistics for the incoming video.
35
+
-`screenShare`: The list of media statistics for the incoming screen share.
37
36
-`generatedAt`: The date when the report was generated.
38
-
-`incomingMediaStats`: Gets the `IncomingMediaStats`for a`RemoteParticipant`.
37
+
-`incomingMediaStats`: Gets the `IncomingMediaStats`value for`RemoteParticipant`.
39
38
40
39
Then, subscribe to the `SampleReported` event to get regular updates about the current media quality statistics:
41
40
42
41
```swift
43
-
//Optional, set the interval for Media Stats report generation
42
+
//Optionally, set the interval for media statistics report generation
0 commit comments