| 309 | } |
| 310 | |
| 311 | void WsPluginServer::NotifyMediaClientDisConnected(const std::string& conn_id, const std::string& stream_id, const std::string& visitor_device_id, int64_t begin_timestamp) { |
| 312 | auto event = std::make_shared<GrPluginClientDisConnectedEvent>(); |
| 313 | event->conn_id_ = conn_id; |
| 314 | event->stream_id_ = stream_id; |
| 315 | event->visitor_device_id_ = visitor_device_id; |
| 316 | event->end_timestamp_ = (int64_t)TimeUtil::GetCurrentTimestamp(); |
| 317 | event->duration_ = event->end_timestamp_ - begin_timestamp; |
| 318 | this->plugin_->CallbackEvent(event); |
| 319 | } |
| 320 | |
| 321 | int64_t WsPluginServer::GetQueuingMediaMsgCount() { |
| 322 | int64_t count = 0; |
nothing calls this directly
no test coverage detected