UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Media player control not working while playing music in morph Browser or web container

    Scheduled Pinned Locked Moved Support
    2 Posts 1 Posters 46 Views 1 Watching
    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.
      • S Offline
        Shapa
        last edited by

        Hey Everyone

        I need some help , I am playing music in morph browser

        the issue is when I lock screen (using UB tweak keep it running background) music plays but if want click pause play next on music player it wont work

        When looked the DBUS using following command

        dbus-monitor --session "type='signal',interface='org.freedesktop.DBus.Properties'"

        I can some how guess the audio is paused using mpris mediaplyer

        signal time=1764878914.894754 sender=:1.27 -> destination=(null destination) serial=201 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
        string "org.mpris.MediaPlayer2.Player"
        array [
        dict entry(
        string "PlaybackStatus"
        variant string "Playing"
        )
        ]
        array [
        ]

        signal time=1764878916.305535 sender=:1.27 -> destination=(null destination) serial=214 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
        string "org.mpris.MediaPlayer2.Player"
        array [
        dict entry(
        string "PlaybackStatus"
        variant string "Paused"
        )
        ]
        array [
        ]

        Is there any way we can pass the music controls to media player from website so it will be more easy to contol them without unlocking the phone

        If anyone have any workround let me know

        1 Reply Last reply Reply Quote 0
        • LakotaubpL Lakotaubp moved this topic from General
        • S Offline
          Shapa
          last edited by

          For further digging I found An appArmor policy prevents from webapp-container expose MPRIS

          signal time=1764940153.079286 sender=:1.134 -> destination=(null destination) serial=19 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
             string "org.mpris.MediaPlayer2.Player"
             array [
                dict entry(
                   string "PlaybackStatus"
                   variant             string "Paused"
                )
             ]
             array [
             ]
          error time=1764940153.079343 sender=org.freedesktop.DBus -> destination=:1.134 error_name=org.freedesktop.DBus.Error.AccessDenied reply_serial=19
             string "An AppArmor policy prevents this sender from sending this message to this recipient; type="signal", sender=":1.134" (uid=32011 pid=19620 comm="youtube-web" label="youtube-web.mateo-salta_youtube-web_7 (enforce)") interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (uid=32011 pid=15732 comm="/usr/bin/mpris-proxy" label="unconfined")"
          method call time=1764940153.084393 sender=:1.141 -> destination=org.freedesktop.DBus serial=8 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=RemoveMatch
             string "type='signal', path='/org/freedesktop/DBus/Local',interface='org.freedesktop.DBus.Local', member='Disconnected'"
          method return time=1764940153.084439 sender=org.freedesktop.DBus -> destination=:1.141 serial=9 reply_serial=8
          

          is there any way we can configure app mirror policy ?

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