Qt World Summit: Submit your Presentation

FFPLAY in Qmainwindow

  • Hi friends,

    I am trying to embed ffplay in Qmainwindow but it displaying outside Qmainwindow can anybody help how to embed inside Qmainwindow.

    QString source ("E:\Yazmi_Multicast_Player_Source\ffmpeg-20170718-012620a-win64-static\ffmpeg-20180412-a26c9fd-win64-static\bin\JanathaGarage720P.ts");

    QProcess *mInputPlayProcess = new QProcess(this);
    QString program = "E:/Yazmi_Multicast_Player_Source/ffmpeg-20170718-012620a-win64-static/ffmpeg-20180412-a26c9fd-win64-static/bin/ffplay.exe";
    QStringList arguments;
    arguments << source;

    mInputPlayProcess->start(program, arguments);

    I am using vlc activex control to embed vlc player in widget i have wrote following code but file is not playing can anybody give solution
    // //string is class ID for VLC Media Player

     ui->axWidget->setControl( "{9BE31822-FDAD-461B-AD51-BE1D1C159921}");
    ui->axWidget->setProperty("mrl", source);
    ui->axWidget->setProperty("autoplay", true);
     ui->axWidget->setProperty("autoloop", true);
    ui->axWidget->setProperty("visible", true);

  • Lifetime Qt Champion

    Did you escape the source ?
    you have to have 2 \ pr part.
    also, its not possible to embed anything you call with QProcess inside mainwindow.
    ( there are exceptions on linux but..)

    Also this thread might be interessting

Log in to reply