Objective-C

Client side code

With your HTTP Server setup out of the way, you can now add the frontend code to start archiving.

Starting an archive

The code below, makes an HTTP request to your server with the session ID as a parameter.

You can pass the session ID of the session that needs to be recorded is passed as a JSON object to the server depending on your setup.

You will have to replace server-url.com/archive/start with the URL and route you set for starting archives on the server side.

Stopping an archive

You will have to replace server-url.com/archive/stop with the URL and route you set to stop archive recording on the server side.

Viewing an archive

The code below makes an HTTP request to the server and should return a JSON Object needed to retrieve the recorded archive.

You will have to replace server-url.com/archive/view with the URL and route you set for viewing archives on the server side.

Notes:

  • In most applications, control of the archive recording would not be granted to every end-user.

  • You can have automatically archived sessions, which are recorded whenever a client starts publishing a stream.

  • You will want to set up an Amazon S3 or Microsoft Azure target for storage of your archive recordings.

For more information on archiving, see the Vonage Video archiving developer guide.

Archiving

Learn how to record and store video streams using the Vonage SDK

以下の言語で利用可能:
JavaScript Java Objective-C
手順
1
Introduction
2
Setting up the server
3
Exploring the code