| 298 | } |
| 299 | |
| 300 | void WsPluginServer::NotifyMediaClientConnected(const std::string& conn_id, const std::string& stream_id, const std::string& visitor_device_id) { |
| 301 | auto event = std::make_shared<GrPluginClientConnectedEvent>(); |
| 302 | event->conn_id_ = conn_id; |
| 303 | event->stream_id_ = stream_id; |
| 304 | event->conn_type_ = "Direct"; |
| 305 | event->visitor_device_id_ = visitor_device_id; |
| 306 | event->begin_timestamp_ = (int64_t)TimeUtil::GetCurrentTimestamp(); |
| 307 | this->plugin_->CallbackEvent(event); |
| 308 | LOGI("Conn id: {}, device id: {}", stream_id, visitor_device_id); |
| 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>(); |
nothing calls this directly
no test coverage detected