| | |
| | | //ID |
| | | String name = item.getName(); |
| | | info.setName(name); |
| | | |
| | | Conf conf = mediaClient.getPathInfo(name); |
| | | |
| | | //RTMP播放地址 |
| | | String rtmpUrl = "rtmp://" + mediamtxHost + ":1935/" + name; |
| | | info.setRtmpUrl(rtmpUrl); |
| | |
| | | if (source == null || source.getId().equals("")) { |
| | | //会话ID |
| | | info.setId("0"); |
| | | //上行流量 |
| | | //下行流量 |
| | | long bytesReceived = item.getBytesReceived(); |
| | | String formatReceivedSize = ArdTool.formatFileSize(bytesReceived); |
| | | info.setUpTraffic(formatReceivedSize); |
| | | info.setDownTraffic(formatReceivedSize); |
| | | //上行流量 |
| | | long bytesSent = item.getBytesSent(); |
| | | String formatSentdSize = ArdTool.formatFileSize(bytesSent); |
| | | info.setUpTraffic(formatSentdSize); |
| | | info.setBeginTime(item.getReadyTime()); |
| | | } else { |
| | | RtspSession rtspSession = getRtspSessionById(source.getId()); |