Swift

Implement the "Play Ringtone" Logic

We need a method that pauses the Vonage audio stream and starts the standard iOS audio player.

Because the iPhone audio system is a global singleton, we cannot play a ringtone and the Vonage stream simultaneously without audio artifacts. Therefore, we stop capturing/rendering Vonage audio before playing the ringtone.

Add this method to your AudioDeviceRingtone class:

Custom audio driver

Learn how to use a custom audio driver to customize publisher and subscriber stream audio. You will use the custom audio driver when you want to start and stop the audio play your own audio file, and do anything outside the default behavior of live video chat provided by the SDK.

以下の言語で利用可能:
Kotlin Swift
手順
1
Introduction
2
Getting Started
3
Creating a New Project
4
Adding the Vonage Video SDK
5
Setting Up Authentication
6
Overview
7
Create the Custom Audio Driver Class
8
Implement the "Play Ringtone" Logic
9
Implement the "Stop Ringtone" Logic
10
Integrate with Vonage Video Manager
11
Control audio via Session Events
12
How It Works
13
Conclusion