#  | # WebRTC | # PhenixRTC

PCast™

# Backend

Operations require your application's secret. Thus they must be performed on your backend.

# Client

Operations require session-specific tokens.

1

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

2

Pass authenticationToken to client.

2

Connect to PCast™ using the authenticationToken.

3
4

Pass sessionId to server.

4
5

Create a publish streamToken using the sessionId.

6

Pass streamToken to client.

6

Publish stream URI using streamToken.

7
8

Pass streamId to server.

8
9

Create a viewing streamToken using the sessionId and originStreamId.

10

Pass streamToken to client.

10

Subscribe to a stream using the streamToken.

11

# Video Stream

The stream will be terminated automatically after 30 seconds.