/// <summary> /// 包含子节点时 /// </summary> /// <param name="memberNo"></param> /// <param name="isCamera"></param> /// <param name="subordinateLiveMessage"></param> public void notifyHangupVideoChild(string memberNo, bool isCamera, WatchSubordinateLiveMessageBean subordinateLiveMessage) { Dictionary <string, object> parameter = new Dictionary <string, object>(); parameter.Add("no", memberNo); parameter.Add("type", "stopchild"); parameter.Add("isCamera", isCamera); parameter.Add("watchSubordinateLiveMessageBean", subordinateLiveMessage); string content = JsonConvert.SerializeObject(parameter); sendMessage(content); }
/// <summary> /// 推送 /// </summary> /// <param name="memberNo"></param> public void notifyPush(string memberNo, bool isCamera, string rtsp, string callId, string streamType, WatchSubordinateLiveMessageBean subordinateLiveMessageBean) { Dictionary <string, object> parameter = new Dictionary <string, object>(); parameter.Add("memberNo", memberNo); parameter.Add("videoMessageType", "openPush"); Dictionary <string, object> videoData = new Dictionary <string, object>(); videoData.Add("isCamera", 0); videoData.Add("callId", callId); videoData.Add("streamType", streamType); parameter.Add("videoData", videoData); if (isCamera) { parameter.Add("rtspUrl", rtsp); parameter.Add("callId", callId); } else { parameter.Add("watchSubordinateLiveMessageBean", subordinateLiveMessageBean); } string content = JsonConvert.SerializeObject(parameter); sendMessage(content); }