Move ActiveCallBar Qml to separate file

This commit is contained in:
trilene 2020-09-25 10:26:36 -04:00
parent 44cfc8d22a
commit 3f73853e4b
10 changed files with 166 additions and 147 deletions

View file

@ -636,7 +636,20 @@ WebRTCSession::createPipeline(int opusPayloadType)
}
bool
WebRTCSession::toggleMuteAudioSource()
WebRTCSession::isMicMuted() const
{
if (state_ < State::INITIATED)
return false;
GstElement *srclevel = gst_bin_get_by_name(GST_BIN(pipe_), "srclevel");
gboolean muted;
g_object_get(srclevel, "mute", &muted, nullptr);
gst_object_unref(srclevel);
return muted;
}
bool
WebRTCSession::toggleMicMute()
{
if (state_ < State::INITIATED)
return false;