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

Android AudioManager Stream / QML Audio roles are not supported on Android

    XMLWordPrintable

Details

    • Android

    Description

      I don't know why this was not already done, but the QML Audio element has "roles" and Android's AudioManager has streams, and they match very nicely:

      AudioManager   : QML Audio Role
      STREAM_ACCESSIBILITY	:	AccessibilityRole
      STREAM_ALARM	:	AlarmRole
      STREAM_DTMF	:	**no match**
      STREAM_MUSIC	:	[MusicRole, VideoRole, GameRole]
      STREAM_NOTIFICATION	:	NotificationRole 
      STREAM_RING	:	RingtoneRole
      STREAM_SYSTEM	:	SonificationRole
      STREAM_VOICE_CALL	:	VoiceCommunicationRole
      

      I looked at the Qt source on gitlab and the https://github.com/qt/qtmultimedia/blob/5.12/src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtAndroidMediaPlayer.java

      Makes no mention of streams or roles, and neither does its JNI interface.

      The QML Audio docs say: "The audio role must be set before setting the source property." which is annoying but I can deal with it. But on android this doesn't even work.

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            scorp1us Jason Hihn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes