WebRTC

1

Create an AuthToken using the application's applicationId and secret.

2

Pass AuthToken to client.

2

Connect to PCast™ using the AuthToken.

3
4

Pass sessionId to server.

4
A5

Select an available stream.

Get local user media from camera.

B5.1
B5.2

Create a Token (for publishing) using the sessionId.

Choose Quality

B5.3

Pass Token (for publishing) to client.

B5.3

Publish stream from local user media using Token (for publishing).

B5.4
B5.5

Pass streamId to server.

B5.5
6

Create a Token (for viewing) using the sessionId and originStreamId.


Choose DRM modifiers


7

Pass Token (for viewing) to client.

7

Subscribe to a stream using the Token (for viewing).

8

Video Stream