Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved Help in creating custom MediaPlayer component

    Mobile and Embedded
    qml objective-c cpp mediaplayer ios
    2
    12
    1568
    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.
    • W
      Wiru @SGaist last edited by

      @SGaist
      For the most part it would function same as the MediaPlayer, but I require additional functionality for widevine drm, so that would be the custom part.

      Even getting the original MediaPlayer as a separate component for my project would greatly help.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        At what level is that technology integrated ? Shouldn't that be through the OS frameworks ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • W
          Wiru last edited by

          It's on lower lvl, requiring a localhost to run which transforms mpd streams to hls because native iOS does not support mpd format, which is then sent to the player.

          But that's not the issue here, just getting a separate component like MediaPlayer would solve all integration problems.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            In that case, you should take a look at the plugins in QtMultimedia's sources, you have several implementations that you can take inspiration from thus integrating directly in the pipeline rather that having a custom item.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • W
              Wiru last edited by

              I assume with integration into the pipeline you mean to compile it with the changes?
              If that's the case, then it's out of question due to complexity of the integration itself.
              I managed to get native iOS player in a custom component so I'll continue with that.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                No, I mean to make it a plugin so it can be loaded to play your custom type.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • W
                  Wiru last edited by

                  How would such an approach look like? So far I haven't done anything with plugins.
                  If it's possible to modify avplayer asset and delegate from original MediaPlayer I'd like to try it, but I would need some guide on how to do it.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Did you take a look at the QtMultimedia media player plugins ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    W 1 Reply Last reply Reply Quote 0
                    • W
                      Wiru @SGaist last edited by

                      Yes I did, but I never made anything like this, so not much that i understand from there.

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        Then study the gstreamer implementation for example and start from there.

                        The pattern is to have a "session class" that does the work and then provide all the interfaces you support that will be using said session class.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post