Lines Matching refs:label
244 std::shared_ptr<VideoSink> Streamer::AddDisplay(const std::string& label, in AddDisplay() argument
249 [this, &label, width, height, dpi, in AddDisplay()
251 if (impl_->displays_.count(label)) { in AddDisplay()
252 LOG(ERROR) << "Display with same label already exists: " << label; in AddDisplay()
257 impl_->displays_[label] = {width, height, dpi, touch_enabled, source}; in AddDisplay()
260 label, source.get()); in AddDisplay()
263 client->AddDisplay(video_track, label); in AddDisplay()
274 impl_->recording_manager_->AddSource(width, height, source_shared, label); in AddDisplay()
282 bool Streamer::RemoveDisplay(const std::string& label) { in RemoveDisplay() argument
285 [this, &label]() -> bool { in RemoveDisplay()
287 impl_->recording_manager_->RemoveSource(label); in RemoveDisplay()
291 client->RemoveDisplay(label); in RemoveDisplay()
294 impl_->displays_.erase(label); in RemoveDisplay()
299 bool Streamer::AddTouchpad(const std::string& label, int width, int height) { in AddTouchpad() argument
302 [this, &label, width, height]() -> bool { in AddTouchpad()
303 if (impl_->touchpads_.count(label)) { in AddTouchpad()
304 LOG(ERROR) << "Touchpad with same label already exists: " << label; in AddTouchpad()
307 impl_->touchpads_[label] = {width, height}; in AddTouchpad()
313 std::shared_ptr<AudioSink> Streamer::AddAudioStream(const std::string& label) { in AddAudioStream() argument
316 [this, &label]() -> std::shared_ptr<AudioSink> { in AddAudioStream()
317 if (impl_->audio_sources_.count(label)) { in AddAudioStream()
319 << label; in AddAudioStream()
324 impl_->audio_sources_[label] = source; in AddAudioStream()
433 for (const auto& [label, touchpad_desc] : touchpads_) { in OnOpen()
437 touchpad[kLabelField] = label; in OnOpen()
652 auto& label = entry.first; in CreateClientHandler() local
656 peer_connection_factory_->CreateVideoTrack(label, video_source.get()); in CreateClientHandler()
657 client_handler->AddDisplay(video_track, label); in CreateClientHandler()
661 auto& label = entry.first; in CreateClientHandler() local
664 peer_connection_factory_->CreateAudioTrack(label, audio_stream.get()); in CreateClientHandler()
665 client_handler->AddAudio(audio_track, label); in CreateClientHandler()