畢業設計之Qt播放器

來源:互聯網
上載者:User

一、功能介紹

1、有拖拉功能,將視頻直接拖進,播放器即可播放視頻

2、可以有加密視頻,將放視頻的檔案夾加密

3、有定時開關機的功能

4、有網上直接看視頻的功能

5、有開啟本地視頻的功能

6、可以瀏覽照片

7、可以播放歌曲

8、有最新電影推薦功能

9、播放清單

10、1499小遊戲,線上玩

二、llplayer   以完成功能

1、正常播放ok

2、檔案夾開啟ok,           不能重複開啟

void MainWindow::slotOpenFile()//開啟檔案ok
{
//   mplayerProcess->close();
    currentFileName = QFileDialog::getOpenFileName(this, tr("開啟媒體檔案"), tr("/root/Music"),
                                                   tr("Music file(*.mp3 *.wav) ;; Video files(*.rmvb *.rm *.avi *.wmv *.mkv *.asf *.3gp *.mov *.mp4 *.ogv)" ));
    if( !currentFileName.isEmpty() )
    {
        player->play(currentFileName);
        //this->showFullScreen();
    }
}

3、快進, 快退ok

void MainWindow::slotStep()//快進ok
{
     player->controlCmd("seek 5 0\n");

}

void MainWindow::slotBackward()//快退ok
{
 player->controlCmd("seek -5 0\n");
}

4、靜音ok

static bool status = true;
void MainWindow::slotMute()//靜音ok
{

    if(status){
     player->controlCmd("mute 1\n");
     status= false;
    }
    else{
     player->controlCmd("mute 0\n");
     status= true;
    }

}

5、音量控制

6、停止

void MainWindow::slotStop()
{

    player->controlCmd("pause\n");

}

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.