Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMP Widget fails to load video in Qt5.3
Qt 6.11 is out! See what's new in the release blog

QMP Widget fails to load video in Qt5.3

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 796 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ion_knight
    wrote on last edited by
    #1

    Below is the code I'm using to display the video however when the program starts all that is seen is a black screen. Hopefully someone on stackies has used GMP Widget before, as completely lost what to do now

    @#include "mainwindow.h"
    #include <QApplication>
    #include "qmpwidget.h"

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QMPwidget widget;
    widget.setMPlayerPath("C:/MPlayer/Mplayer.exe");
    widget.show();
    widget.start(QStringList("-benchmark"));
    widget.load("BigBuckBunny_320x180.mp4");

    return a.exec();
    }@

    I have also linked the repo for this module as the two files are too large.

    "Link to qmpwidget repo":https://github.com/jgehring/qmpwidget

    if anyone has an idea how to solve this that would be great, currently running in windows but want to make it as cross platform as I can.

    Also if anyone has any better solution to creating an RTSP client I am all ears as really struggling to find a decent method of producing this RTSP client.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved