while screen sharing audio is not coming
-
hi guys,
im using ffmpeg for screen capturing but audio is not coming,this is code
else if(m_typeStream == TS_SCREENSHARE)
{
#ifdef _WIN32
strCommands += "desktop";
#else
strCommands += QString::number(availableCameras.size()).toUtf8().constData();
#endif
if(availableAudios.size() == 0)
{
Q_EMIT reportStatus("No detected audio device...");
}
else
{
#ifdef _WIN32
strCommands += ":audio=";
strCommands += availableAudios[0].deviceName().toUtf8().constData();
#else
strCommands += ":";
strCommands += QString::number(0).toUtf8().constData();
#endif
}
} -
The code you shared is pretty much meaningless. What do you mean by "screen sharing"? Whether you have any audio sharing between shared desktops depends very much upon what sharing desktop technology you are using.