Videoconference : Fix blinking on active speaker.

This commit is contained in:
Julien Wadel 2022-06-09 14:17:13 +02:00
parent a04337c31e
commit a76695cb97
5 changed files with 5 additions and 6 deletions

View file

@ -82,7 +82,7 @@ void ConferenceListener::onParticipantDeviceMediaAvailabilityChanged(const std::
emit participantDeviceMediaAvailabilityChanged(participantDevice);
}
void ConferenceListener::onParticipantDeviceIsSpeakingChanged(const std::shared_ptr<linphone::Conference> & conference, const std::shared_ptr<const linphone::ParticipantDevice> & participantDevice, bool isSpeaking) {
qDebug() << "onParticipantDeviceIsSpeakingChanged: " << participantDevice->getAddress()->asString().c_str() << ". Speaking:" << isSpeaking;
//qDebug() << "onParticipantDeviceIsSpeakingChanged: " << participantDevice->getAddress()->asString().c_str() << ". Speaking:" << isSpeaking;
emit participantDeviceIsSpeakingChanged(participantDevice, isSpeaking);
}
void ConferenceListener::onStateChanged(const std::shared_ptr<linphone::Conference> & conference, linphone::Conference::State newState){

View file

@ -29,7 +29,6 @@ ParticipantDeviceListener::ParticipantDeviceListener(QObject *parent) : QObject(
//--------------------------------------------------------------------
void ParticipantDeviceListener::onIsSpeakingChanged(const std::shared_ptr<linphone::ParticipantDevice> & participantDevice, bool isSpeaking) {
qDebug() << "onIsSpeakingChanged " << isSpeaking;
emit isSpeakingChanged(participantDevice, isSpeaking);
}

View file

@ -33,7 +33,7 @@ Item {
property bool d : callModel && callModel.cameraEnabled
property bool isReady: cameraLoader.item && cameraLoader.item.isReady
onCurrentDeviceChanged: resetActive()
onCurrentDeviceChanged: {if(container.isCameraFromDevice) resetActive()}
function resetActive(){
resetTimer.resetActive()
}

View file

@ -21,7 +21,7 @@ Item{
property alias isFullscreen: camera.isFullscreen
property alias isCameraFromDevice: camera.isCameraFromDevice
property bool showCloseButton: true
property bool showActiveSpeaker: true
property bool showActiveSpeakerOverlay: true
property color color : CameraViewStyle.outBackgroundColor
signal closeRequested()
@ -36,7 +36,7 @@ Item{
spread: 0.9
color: CameraViewStyle.border.color
cornerRadius: backgroundArea.radius + glowRadius
visible: mainItem.showActiveSpeaker && mainItem.currentDevice && mainItem.currentDevice.isSpeaking
visible: mainItem.showActiveSpeakerOverlay && mainItem.currentDevice && mainItem.currentDevice.isSpeaking
}
Rectangle {
id: backgroundArea

View file

@ -46,7 +46,7 @@ Item {
anchors.rightMargin: isRightReducedLayout ? 10 : 140
isPaused: (callModel && callModel.pausedByUser) || (currentDevice && currentDevice.isPaused) //callModel.pausedByUser
showCloseButton: false
showActiveSpeaker: false // This is an active speaker. We don't need to show the indicator.
showActiveSpeakerOverlay: false // This is an active speaker. We don't need to show the indicator.
color: 'black'
}
ScrollableListView{