This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ListenType enum for RN and android. Extend ConferenceListenOption for RN to use ListenType enum * Add documentation for listen type * Add missing stream mapping on RN Participant model when get current conference and getParticipant methods was called
- Loading branch information
Showing
9 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
android/src/main/java/io/dolby/sdk/comms/reactnative/mapper/ListenTypeMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.dolby.sdk.comms.reactnative.mapper | ||
|
||
import com.voxeet.sdk.models.ListenType | ||
import java.security.InvalidParameterException | ||
|
||
object ListenTypeMapper { | ||
fun convertToRN(listenType: ListenType) = when(listenType) { | ||
ListenType.REGULAR -> "REGULAR" | ||
ListenType.MIXED -> "MIXED" | ||
} | ||
|
||
fun convertToModel(listenRNType: String) = when(listenRNType) { | ||
REGULAR -> ListenType.REGULAR | ||
MIXED -> ListenType.MIXED | ||
else -> throw InvalidParameterException("Invalid value for listen type") | ||
} | ||
|
||
private const val REGULAR = "REGULAR" | ||
private const val MIXED = "MIXED" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Enumeration: ListenType | ||
|
||
[internal](../modules/internal.md).ListenType | ||
|
||
The ListenType model gathers the possible types of listeners. This model is available in SDK 3.11 and later. | ||
|
||
## Table of contents | ||
|
||
### Enumeration Members | ||
|
||
- [REGULAR](internal.ListenType.md#regular) | ||
- [MIXED](internal.ListenType.md#mixed) | ||
|
||
## Enumeration Members | ||
|
||
### REGULAR | ||
|
||
• **REGULAR** = ``"REGULAR"`` | ||
|
||
A regular listener who receives one mixed audio stream from a conference and one video stream from each participant who sends video to a conference. | ||
|
||
___ | ||
|
||
### MIXED | ||
|
||
• **MIXED** = ``"MIXED"`` | ||
|
||
A participant who receives one mixed audio stream and one mixed video stream from a conference, which increases the conference capacity. The platform can support up to 60,000 mixed listeners while maintaining under half a second of latency. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters