To Use Live Streaming Services

Below are the API set developer can use our Live Videos Streaming Services.

Type: 1 To create Job (Webrtc)

Below are the API used to create Job to live stream video using webrtc.

Create Livestream Job for Webrtc

POST https://testnet.rtservices.pandoproject.org/apis/liveServer

This case we are streaming through Web(end to end streaming to safeguard the video, voice, & text data transmitted over the internet between peers).

Request Body

NameTypeDescription

purposeCode*

4

Puspose code "4" set for Enterprise services

liveApp*

WEB_RTC

it should be "WEB_RTC" in case of Webrtc streaming

isVOD

true/false

if user wants video on demand then stream save in RTpro

Type: 2 To create Job (RTMP/RTSP)

Step -1: Below are the API used to create Job to live stream video using RTMP/RTSP.

Create Livestream Job for RTMP/RTSP

POST https://testnet.rtservices.pandoproject.org/apis/liveServer

Create job for LiveStream

Request Body

NameTypeDescription

purposeCode*

4

Puspose code "4" set for Enterprise services

liveApp*

RTMP

Type of service user use RTMP/RTSP

liveStream*

true

it should be true in case of LiveStream

ipCamera

false

its mandatory to fill only case when streaming through Camera

streamSource

false

its mandatory to fill only case when streaming through stream url

isVOD

true/false

if user wants video on demand then stream save in RTpro

we will get Url and session key in response.

Response From Step -1
{
    "status": true,
    "url": "live39.pandoprojectlive.org",
    "sessionKey": "b1a23dcd-34cc-475f-8ad4-9d9947f68947" }

Step-2 : To Get RTmp url for Streaming

we used url and session key from step-1 Api

url and session key used from create job api

GET Url/getStreamInfo?sessionKey=

This api provide RTmp url which is needed for OBS streaming

Request Body

NameTypeDescription

sessionKey*

String

Session key which recived from step -1

Positive Response

Step-3 : To Get Token and set expiry date of token and type

To get token

GET Url/getToken?sessionKey=&expiryDate=&type=publish

Request Body

NameTypeDescription

sessionKey

String

Recived from step-1

expiryDate*

1689398242

This field set expiry of token before expiry we can stream videos in epoch time /unix

type*

Publish/Play

Publish for Broadcasting

Play for watching

Step-4 : To Stream video

  1. Download OBS studio.

  2. Click on Setting .

Click on start streaming ....

Last updated

Contact Us:

On Discord

© Copyright 2022 Pandolab Pte Ltd. All rights reserved.