Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

4.3 startStreamingOut failed

yt__xia
Beginner
847 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
847 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"}}

    }

0 Kudos
yt__xia
Beginner
847 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"}}"
 

 

0 Kudos
yt__xia
Beginner
847 Views

sorry,my audio_agent  not supporting fdk_aac。

0 Kudos
Reply