Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

4.3 startStreamingOut failed

yt__xia
Beginner
284 Views

4.3  vs     4.1    (new add   protocol,parameters )   how to use it?

I‘m  try

url = 'rtmp://127.0.0.1/live/ttttt'  (rtmp service is ok)

stream = roomId + '-common'

 media = { audio: { from: stream }, video: { from: stream, parameters: { keyFrameInterval: 2 } } }

protocol = 'rtmp'

parameters = {method: 'PUT'}

 error : startStreamingOut  failed  (startStreamingOut  : {"error":{"code":2001,"message":"Error RPC:addServerSideS
ubscription failed"}}

Do you have an example?

Thank you!

0 Kudos
3 Replies
Li_C_Intel
Employee
284 Views

Hi,

The detail format can be found in REST API document.

POST ${host}/v1/rooms/{roomId}/streaming-outs

 {

      protocol: "rtmp" | "rtsp" | "hls" | "dash",

      url: "your url"

      media: { audio: { from: "xxx" }, video: {from: "xxx"}}

    }

yt__xia
Beginner
284 Views

@

Li C. (Intel)

 

V4.3 

 

REST API   var startStreamingOut = function(room, protocol, url, parameters, media, callback, callbackError) {}

send format :

 var protocol = 'rtmp' var parameters = {method: 'put'}

icsREST.API.startStreamingOut(

     room,

      protocol,

      url,

      parameters ,

     media: { audio: { from: "xxx" }, video: {from: "xxx"}}

result:"{"error":{"code":2001,"message":"Error RPC:addServerSideSubscription failed"}}"
 

 

yt__xia
Beginner
284 Views

sorry,my audio_agent  not supporting fdk_aac。

Reply