no message

master
DESKTOP-4RNDQIC\29019 2020-06-06 23:22:37 +08:00
parent 342db31865
commit 2658ac8426
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void MainWindow::on_pushButton_2_clicked()
mCamera->SetObserver(mVideoCoder); mCamera->SetObserver(mVideoCoder);
// todo 根据返回结果判断是否推流 // todo 根据返回结果判断是否推流
qDebug()<<"已经连上RTMP服务器"<<ui->lineEdit->text(); qDebug()<<"连接RTMP服务器"<<ui->lineEdit->text();
if (!mPusher->IfConnect()) { if (!mPusher->IfConnect()) {
const char* address = ui->lineEdit->text().toLocal8Bit().data(); const char* address = ui->lineEdit->text().toLocal8Bit().data();
if (0 == mPusher->RTMP264_Connect("rtmp://127.0.0.1:1935/live/1")) { if (0 == mPusher->RTMP264_Connect("rtmp://127.0.0.1:1935/live/1")) {