Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-1226

paplay will play music without requiring any privilege in Cynara


    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • tested on Intel with Master.

      The navigation application (and I guess the other Apps using pulse) do not require any privilege to play audio.

      Access to gst-launch is protected.

      see call in 



      I have replaced in the shell file

      the call for paplay by gst-launch

      paplay --property='media.role=Navi' $TMP /usr/bin/gst-launch-1.0 filesrc location=$TMP ! decodebin ! audioconvert ! audio/x-raw,channels=2 ! alsasink device=Warning
      rm -f $TMP

      I keep the file to test in command line.
      In command line is works (obviously I have corrected the pulse config file to leave Navigation to Alsa /etc/pulse/default.d/90-4a-modules.pa)

      But when used from the Navigation App it fails due to a "Not Authorised"

      cynara[272]: User::App::navigation;0;urn:AGL:permission:audio:public:audiostream => DENY


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

            jobol-iot jose bollo
            dominig Dominig ar Foll
            0 Vote for this issue
            3 Start watching this issue