portaudio库添加
parent
c26d86d244
commit
ff8d5bda20
|
@ -78,6 +78,7 @@ void MainWindow::on_pushButton_2_clicked()
|
|||
ToastWidget::showTip("已经连接上RTMP服务器",this);
|
||||
mVideoCoder->SetOberver(mPusher);
|
||||
mPusher->StartPush();
|
||||
ui->pushButton_2->setText("关闭推流");
|
||||
/*
|
||||
if (nullptr != this->mAudioCoder) {
|
||||
this->mAudioCoder->SetObserver(mPusher);
|
||||
|
@ -87,6 +88,9 @@ void MainWindow::on_pushButton_2_clicked()
|
|||
else {
|
||||
ToastWidget::showTip("连接RTMP服务器失败,请检查服务器地址",this);
|
||||
}
|
||||
}else{
|
||||
ToastWidget::showTip("正在推流,请先关闭",this);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,9 +52,8 @@ FORMS += \
|
|||
INCLUDEPATH += media/ third/ffmpeg/include/ inc/ third/
|
||||
|
||||
LIBS += -L$$PWD/third/libs/
|
||||
LIBS += -lm
|
||||
LIBS += -lavformat -lavdevice -lavcodec -lavutil -lswresample -lswscale -lpthread -lm -lfdk-aac -lx264 -liconv -lucrtbase -lstrmiids
|
||||
LIBS += -lole32 -loleAut32 -lquartz -ldxguid -ldxapi -lwinmm -lbcrypt -lssl -lcrypto -lGdi32 -lws2_32 -lbz2 -lz
|
||||
LIBS += -lm -lavformat -lavdevice -lavcodec -lavutil -lswresample -lswscale -lpthread -lm -lfdk-aac -lx264 -liconv -lucrtbase -lstrmiids
|
||||
LIBS += -lole32 -loleAut32 -lquartz -ldxguid -ldxapi -lwinmm -lbcrypt -lssl -lcrypto -lGdi32 -lws2_32 -lbz2 -lz -lportaudio
|
||||
# Default rules for deployment.
|
||||
QMAKE_CXXFLAGS_RELEASE += -Zi
|
||||
QMAKE_LFLAGS_RELEASE += /DEBUG /OPT:REF
|
||||
|
|
Loading…
Reference in New Issue