Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    QMP Widget fails to load video in Qt5.3

    General and Desktop
    1
    1
    629
    Loading More Posts
    • 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
      ion_knight last edited by

      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 Reply Quote 0
      • First post
        Last post