- WCS: 5.2.591-54b0ff638d81e3e5350a066f8bf93652816868ac
- wcs-android-sdk-1.1.0.13-10895ac8ee0a1c231a2c4c5e03dab3b3579b223c
I want to publish a stream of only audio in a room.
But I can't make hasVideo false.
Despite specifying Constraints, it sends the following REST request.
- wcs-android-sdk-1.1.0.13-10895ac8ee0a1c231a2c4c5e03dab3b3579b223c
I want to publish a stream of only audio in a room.
But I can't make hasVideo false.
Code:
options.setConstraints(new Constraints(true, false));
room.publish(null, options);
Code:
00:13:54,200 INFO RestClient - API-ASYNC-pool-12-thread-1 SEND REST OBJECT ==>
URL:http://localhost:8081/apps/RoomApp/publishStream
OBJECT:
{
"nodeId" : "DbnxXbU4HjGDDasKOHLUpHEaG895Za1A@127.0.0.1",
"appKey" : "roomApp",
"sessionId" : "/***OMIT***/",
"mediaSessionId" : "c4f68193-8aa9-461c-86bb-75f8925bc660",
"name" : "wcs-3vcetu2t8n8",
"published" : true,
"hasVideo" : true, /***EXPECTED: false***/
"hasAudio" : true,
"status" : "NEW",
"record" : false,
"width" : 0,
"height" : 0,
"bitrate" : 0,
"minBitrate" : 0,
"maxBitrate" : 0,
"quality" : 0,
"history" : false,
"gop" : 0,
"fps" : 0,
"audioBitrate" : 0,
"codecImpl" : "",
"transport" : "UDP",
"cvoExtension" : false,
"mediaProvider" : "WebRTC",
"custom" : {
"name" : "wcs"
},
"origin" : null
}