Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QMedialPlayer on Android in service playing audio streaming.
Forum Updated to NodeBB v4.3 + New Features

QMedialPlayer on Android in service playing audio streaming.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidqmediaplayerqt5.7
3 Posts 2 Posters 1.8k Views 2 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.
  • christophorusC Offline
    christophorusC Offline
    christophorus
    wrote on last edited by christophorus
    #1

    Hi,

    I'm trying to use QMediaPlayer to play audio stream on Android using qt5.7.

    When the QMediaPlayer is used in the activity part the playback is working as expected.

    But when the QMediaPlayer is used in service the playback is not working, neither there is no any event from the object. When QMediaPlayer is used to play local files in the service part the playback is working fine having proper messages.

    Checking the status I'v got: Media Status: QMediaPlayer::InvalidMedia.

    Does it mean that in the background(service) the stream can't be processed by design?

    Permissions seems to be properly set.

    I would appreciate very much any hints how to solve this issue and it could important for other users as well.

    regards,

    Krzys

    1 Reply Last reply
    0
    • christophorusC Offline
      christophorusC Offline
      christophorus
      wrote on last edited by
      #2

      Solution I hope is here. https://bugreports.qt.io/browse/QTBUG-54506 bug :).

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet !

        Thanks for sharing the report link !

        It has been marked as solved for Qt 5.7.1. So please mark this thread as solved using the "Topic Tools" button so other forum users may know a solution has been found :)

        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
        0

        • Login

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