Hi Venkat! > I couldn't find any documentation on Murphy policy manager and how it is > used in Tizen with pulse-audio. > > 1) Can I get highlevel overview on murphy, and how it is used with > pulse-audio?
You can find an overview and tutorials at Murphy web page: https://01.org/murphy/ PulseAudio is a "domain controller" in Murphy terminology. A PulseAudio module (pulseaudio-module-murphy-ivi) handles the policy enforcement in PulseAudio. > 2) I want to run my own EFL native app that needs to use pulse-audio for > audio playback. From the application what murphy apis need to be called? If you use the native libmm-* libraries, everything should just work out of box, since Murphy supports Audio Session Manager interfaces (that the libmm-* libraries use). You can do some more complex use cases by using Murphy resource library directly. Note that by default Murphy is configured to work with the ICO home screen. I gather from your earlier email that you are trying to run without the ICO home screen. In this case you also need to change Murphy configuration at /etc/murphy/murphy.lua to not load ICO-specific configurations. Another way to do that is running this command in the device: mv /usr/lib/murphy/plugins/plugin-ivi-resource-manager.so /usr/lib/murphy/plugins/plugin-ivi-resource-manager.so.disabled > Also I see that pulse-audio daemon gets started by the app, how to start it? Log in as user 'app'. Set the environment variable XDG_RUNTIME_DIR to value "/run/user/5000". Run 'pulseaudio'. > 3) To run my app, how to define a new murphy role and use it with my > app? Can i use existing role "music". If MediaPlayer is playing music in > the background, what happens when I start my app? Yes, use "music" or the ASM equivalent to that. Murphy should automatically preempt MediaPlayer when you request the resource. -- Ismo Puustinen <[email protected]> _______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
