Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
63 Views

4.3 startStreamingOut failed

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!

Tags (2)
0 Kudos
3 Replies
Highlighted
Employee
63 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
Highlighted
Beginner
63 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
Highlighted
Beginner
63 Views

sorry,my audio_agent  not supporting fdk_aac。

0 Kudos