Java

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.

Stopping an archive

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 the serverURL variable with the URL pointing to your server as well as the route for the right action. For example, server-url.com/archive/start to start archiving.

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
Client side code