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

paplay will play music without requiring any privilege in Cynara

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      tested on Intel with Master.

      Description

      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 

        /var/local/lib/afm/applications/navigation/0.1/flite

      ------------------------------------------------------------------------------------

      I have replaced in the shell file
      /var/local/lib/afm/applications/navigation/0.1/flite

      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
      

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jobol-iot josé bollo
              Reporter:
              dominig Dominig ar Foll
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: