@@ -367,8 +367,7 @@ func TestAPIProtocolListGet(t *testing.T) {
367367
368368 switch ca {
369369 case "rtsps conns" , "rtsps sessions" :
370- conf += "rtspTransports: [tcp]\n " +
371- "rtspEncryption: strict\n " +
370+ conf += "rtspEncryption: strict\n " +
372371 "rtspServerCert: " + serverCertFpath + "\n " +
373372 "rtspServerKey: " + serverKeyFpath + "\n "
374373
@@ -621,6 +620,7 @@ func TestAPIProtocolListGet(t *testing.T) {
621620 "id" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["id" ],
622621 "remoteAddr" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["remoteAddr" ],
623622 "session" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["session" ],
623+ "tunnel" : "none" ,
624624 },
625625 },
626626 }, out1 )
@@ -640,6 +640,7 @@ func TestAPIProtocolListGet(t *testing.T) {
640640 "remoteAddr" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["remoteAddr" ],
641641 "state" : "publish" ,
642642 "transport" : "UDP" ,
643+ "profile" : "AVP" ,
643644 "rtpPacketsReceived" : float64 (0 ),
644645 "rtpPacketsSent" : float64 (0 ),
645646 "rtpPacketsLost" : float64 (0 ),
@@ -664,6 +665,7 @@ func TestAPIProtocolListGet(t *testing.T) {
664665 "id" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["id" ],
665666 "remoteAddr" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["remoteAddr" ],
666667 "session" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["session" ],
668+ "tunnel" : "none" ,
667669 },
668670 },
669671 }, out1 )
@@ -682,7 +684,8 @@ func TestAPIProtocolListGet(t *testing.T) {
682684 "query" : "key=val" ,
683685 "remoteAddr" : out1 .(map [string ]interface {})["items" ].([]interface {})[0 ].(map [string ]interface {})["remoteAddr" ],
684686 "state" : "publish" ,
685- "transport" : "TCP" ,
687+ "transport" : "UDP" ,
688+ "profile" : "SAVP" ,
686689 "rtpPacketsReceived" : float64 (0 ),
687690 "rtpPacketsSent" : float64 (0 ),
688691 "rtpPacketsLost" : float64 (0 ),
0 commit comments