This repository contains an example of how to use the AuviousSDK in an Android project.
To use the AuviousSDK in your project, follow these steps:
-
Add
https://nexus.auvious.com/repository/maven-releases
as a Nexus repository. If you're using Gradle, add this to yourbuild.gradle
repositories section:repositories { mavenCentral() // ... other repositories // Auvious SDK Repo maven { url "https://nexus.auvious.com/repository/maven-releases" } }
-
Include the Auvious SDK dependency. Add this line to your
build.gradle
dependencies section:dependencies { //... other dependencies // Auvious SDK implementation 'com.auvious.android:sdk:1.1.3' }
To start a conference, use the AuviousSimpleConferenceActivity
with configurable call options, such as microphone, camera, and speaker settings:
private fun startSimpleConferenceActivity(
enableMic: Boolean = true,
enableCam: Boolean = true,
enableEarPieceSpeaker: Boolean = false,
availableMicButton: Boolean = true,
availableCamButton: Boolean = true,
availableSpeakerButton: Boolean = true,
customConferenceBackgroundColor: Boolean = false
) {
val callOptions = AuviousSimpleConferenceOptions(
"customer",
"https://auvious.video",
"wss://auvious.video/ws",
mapOf(
"ticket" to binding.ticketText.text.toString(),
"grant_type" to "password",
AuviousSimpleConferenceOptions.speakerOption to (!enableEarPieceSpeaker).toString(),
AuviousSimpleConferenceOptions.microphoneOption to enableMic.toString(),
AuviousSimpleConferenceOptions.cameraOption to enableCam.toString(),
AuviousSimpleConferenceOptions.cameraAvailable to availableCamButton.toString(),
AuviousSimpleConferenceOptions.microphoneAvailable to availableMicButton.toString(),
AuviousSimpleConferenceOptions.speakerAvailable to availableSpeakerButton.toString(),
AuviousSimpleConferenceOptions.conferenceBackgroundColor to if (customConferenceBackgroundColor) Color.parseColor("#3366ff").toString() else Color.BLACK.toString()
)
)
activityForResult.launch(AuviousSimpleConferenceActivity.getIntent(this, callOptions))
}
-
Microphone Configuration
- Key:
mic
- Value:
true
orfalse
true
: Enables the microphone.false
: Disables the microphone.
- Key:
-
Camera Configuration
- Key:
camera
- Value:
true
orfalse
true
: Enables the camera.false
: Disables the camera.
- Key:
-
Speaker Configuration
- Key:
speaker
- Value:
true
orfalse
true
: Enables the speaker.false
: Enables only the earpiece.
- Key:
-
Microphone Button Availability
- Key:
mic_available
- Value:
true
orfalse
true
: The microphone button will be available for toggling on/off.false
: The microphone button will be hidden.
- Key:
-
Camera Button Availability
- Key:
camera_available
- Value:
true
orfalse
true
: The camera button will be available for toggling on/off.false
: The camera button will be hidden.
- Key:
-
Speaker Button Availability
- Key:
speaker_available
- Value:
true
orfalse
true
: The speaker button will be available for toggling on/off.false
: The speaker button will be hidden.
- Key:
-
Custom Conference Background Color
- Key:
conference_background_color
- Value: Color object or a hex color by using the Color.parseColor() method
- Set a custom color in conference background. Otherwise, the default background color will be black.
- Key:
With these additional configurations, you have greater control over the UI and functionality within the Auvious conference experience, allowing you to fine-tune the behavior and appearance for your users.