Ejemplo n.º 1
0
void AVForm::hideEvent(QHideEvent *)
{
    if (CamVideoSurface)
    {
        CamVideoSurface->setSource(nullptr);
        killVideoSurface();
    }
}
Ejemplo n.º 2
0
void AVForm::hideEvent(QHideEvent *)
{
    if (camVideoSurface)
    {
        camVideoSurface->setSource(nullptr);
        killVideoSurface();
    }
    videoDeviceList.clear();
    Audio::getInstance().unsubscribeInput();
}
Ejemplo n.º 3
0
void AVForm::hideEvent(QHideEvent* event)
{
    if (subscribedToAudioIn) {
        // TODO: this should not be done in show/hide events
        Audio::getInstance().unsubscribeInput();
        subscribedToAudioIn = false;
    }

    if (camVideoSurface)
    {
        camVideoSurface->setSource(nullptr);
        killVideoSurface();
    }
    videoDeviceList.clear();

    GenericForm::hideEvent(event);
}
Ejemplo n.º 4
0
AVForm::~AVForm()
{
    killVideoSurface();
    Translator::unregister(this);
    delete bodyUI;
}