Esempio n. 1
0
        public AsyncCallbackMsg RefreshLiveStream(List <LiveVideoStream> openedStreamInfos)
        {
            if (LiveId != 0)
            {
                Log.Logger.Debug($"【server refresh live begins】:liveId={LiveId}, videos={openedStreamInfos.Count}");
                for (int i = 0; i < openedStreamInfos.Count; i++)
                {
                    Log.Logger.Debug(
                        $"video{i + 1}:x={openedStreamInfos[i].X}, y={openedStreamInfos[i].Y}, width={openedStreamInfos[i].Width}, height={openedStreamInfos[i].Height}");
                }

                AsyncCallbackMsg updateAsynCallResult = _sdkService.UpdateLiveVideoStreams(LiveId,
                                                                                           openedStreamInfos.ToArray(), openedStreamInfos.Count);
                Log.Logger.Debug(
                    $"【server refresh live result】:result={updateAsynCallResult.Status}, msg={updateAsynCallResult.Message}");
                return(updateAsynCallResult);
            }
            return(AsyncCallbackMsg.GenerateMsg(Messages.WarningNoLiveToRefresh));
        }