Swift

Create the Custom Audio Driver Class

First copy the file OTDefaultAudioDevice.switf to your project. This class handles the heavy lifting of audio routing.

Then, create a new Swift file named AudioDeviceRingtone.swift. We will add logic to manage an AVAudioPlayer.

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