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
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
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.
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
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
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
Download OBS studio.
Click on Setting .
Click on start streaming ....
Last updated