Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69594

Add session ID return for QMediaPlayer on Android

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Extras: Android
    • None
    • 2024wk06FOQtforAndroid

    Description

      The Visualizer class on Android requires MediaPlayer session ID to display music data from particular player. Without this ID only output mix can be got from Visualizer(0). This ID can be acquired by MediaPlayer.getAudioSessionId() call. But in current Qt implementation it cannot be transmitted from Java code to application. I suggest add this functionality.

      Another possible solution is - set session ID to MediaPlayer while creating or later by call MediaPlayer.setAudioSessionId(int id). In this case first some session ID must be got from AudioManager then used in Visualizer(id) creation. Later it bind Visualizer with MediaPlayer.

      Now there is no way to bind Visualizer and Android MediaPlayer used by QMediaPlayer.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              gourmand64 Gourmet
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes