diff --git a/src/conference.cpp b/src/conference.cpp index e9549effe73b24e7abeca5b6cc56da90e5f9c8b0..fbd62643c50a12c302ffeea7acd7c4535fda924e 100644 --- a/src/conference.cpp +++ b/src/conference.cpp @@ -44,6 +44,7 @@ Conference::Conference() , confState_(ACTIVE_ATTACHED) , participants_() #ifdef ENABLE_VIDEO + , mediaInput_(Manager::instance().getVideoManager().videoDeviceMonitor.getMRLForDefaultDevice()) , videoMixer_(nullptr) #endif { @@ -159,6 +160,7 @@ void Conference::switchInput(const std::string& input) { #ifdef ENABLE_VIDEO + mediaInput_ = input; getVideoMixer()->switchInput(input); #endif } diff --git a/src/conference.h b/src/conference.h index caebbf7fe56585a981e663e14f897fd1a8288c6a..29c379f7001657ce4987093670c87beb99a9ece5 100644 --- a/src/conference.h +++ b/src/conference.h @@ -110,6 +110,7 @@ class Conference : public Recordable { #ifdef ENABLE_VIDEO std::shared_ptr<video::VideoMixer> getVideoMixer(); + std::string getVideoInput() const { return mediaInput_; } #endif private: @@ -118,6 +119,7 @@ class Conference : public Recordable { ParticipantSet participants_; #ifdef ENABLE_VIDEO + std::string mediaInput_ {}; std::shared_ptr<video::VideoMixer> videoMixer_; #endif }; diff --git a/src/manager.cpp b/src/manager.cpp index 208deb6174032006fc272e9b446b6e90309571c1..76ea63b6a014c7fe9cf040b86d534a8618b056ec 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -2838,6 +2838,7 @@ Manager::getConferenceDetails( if (iter_conf != pimpl_->conferenceMap_.end()) { conf_details["CONFID"] = confID; conf_details["CONF_STATE"] = iter_conf->second->getStateStr(); + conf_details["VIDEO_SOURCE"] = iter_conf->second->getVideoInput(); } return conf_details;