|
@@ -257,19 +257,6 @@ namespace Vinno.vCloud.Common.FIS.Test
|
|
|
try
|
|
|
{
|
|
|
IExtendedData data;
|
|
|
- switch (vCloudServerConfig.Instance.LiveProtocolType)
|
|
|
- {
|
|
|
- case TransactionStatusEnum.TRTC:
|
|
|
- data = new RtcExtendedData(null, null, true);
|
|
|
- break;
|
|
|
-
|
|
|
- case TransactionStatusEnum.VRTC:
|
|
|
- throw new InvalidDataException($"CheckAvailable Fail,VRTC is not support now ");
|
|
|
-
|
|
|
- default:
|
|
|
- data = new RtmpExtendedData(null, null, true);
|
|
|
- break;
|
|
|
- }
|
|
|
var client = VCloudServiceTest.GetJsonRpcClient();
|
|
|
var deviceService = client.CreateProxy<IDeviceService>();
|
|
|
var createLiveRoomInfoRequest = new CreateLiveRoomInfoRequest
|
|
@@ -286,6 +273,19 @@ namespace Vinno.vCloud.Common.FIS.Test
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
+ switch (result.LiveProtocol)
|
|
|
+ {
|
|
|
+ case TransactionStatusEnum.TRTC:
|
|
|
+ data = new RtcExtendedData(null, null, true);
|
|
|
+ break;
|
|
|
+
|
|
|
+ case TransactionStatusEnum.VRTC:
|
|
|
+ throw new InvalidDataException($"CheckAvailable Fail,VRTC is not support now ");
|
|
|
+
|
|
|
+ default:
|
|
|
+ data = new RtmpExtendedData(null, null, true);
|
|
|
+ break;
|
|
|
+ }
|
|
|
if (data is RtcExtendedData rtcExtendedData)
|
|
|
{
|
|
|
rtcExtendedData.RoomId = result.RoomNo;
|