mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-29 17:59:21 +00:00
Videoconference : Fix blinking on active speaker.
This commit is contained in:
parent
a04337c31e
commit
a76695cb97
5 changed files with 5 additions and 6 deletions
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue