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. MultiMedia - C++ or QML
QtWS25 Last Chance

MultiMedia - C++ or QML

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views
  • 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.
  • J Offline
    J Offline
    jech
    wrote on last edited by
    #1

    Hi,

    I'm working on a player with QML UI and C++ backend. Now I've implemented most of the UI and start to work on the actual media playback. I would like to support following features: ReplayGain, Gapless playback and video. My target platforms are Windows, Android and other mobile Linux distributions (Ubuntu Touch, Sailfish etc.)

    My first idea was to use QML "MediaPlayer":http://qt-project.org/doc/qt-5.0/qtmultimedia/qml-qtmultimedia5-mediaplayer.html object. But I'm afraid I won't be able to support RG and gapless with it. But it should be possible with "QMediaGaplessPlaybackControl":http://qt-project.org/search?search=QMediaGaplessPlaybackControl.

    My current idea is to use "QMediaPlayer":http://qt-project.org/doc/qt-5.0/qtmultimedia/qmediaplayer.html from C++ and if the next track should be a video file, then I forward it to the QML part. Is it a good idea? I can see a lot of complications there, but it should be possible. Or is there a better solution?

    Thank you!

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wspilot
      wrote on last edited by
      #2

      With Ubuntu and Sailfish the GUI has to be in QML. So, you need to set up communication between QML and C++.
      e.g. http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-topic.html.
      If OpenGL is involved things get really complicated and it depends on the QtQuick version.
      Good luck!

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jech
        wrote on last edited by
        #3

        wspilot> That's no problem, I already have everything working: QML UI, SQLite database and tag reading in C++ and the communication between the two parts. The only thing I'm missing is the actual playback.

        I was also thinking about GStreamer since QtMultimedia uses by default DirectShow on Windows, which is a terrible backend. Any opinions on it?

        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