[pulseaudio-discuss] How to set media role variable ??

sathishkumar sivagurunathan sathish1000 at gmail.com
Tue Nov 19 01:27:34 PST 2013

Thanks Tanu,

What I want to do is something like this.

1) The task is very similar to the module-role-cork.. Ex:- when a call
comes from skype, if I am playing rhythmbox, it should pause and after I
finish the call, it should restart. The skype and rhythmbox are managed by
a Audio Manager.

2) The applications that I use (like skype and rhythmbox) might not have
the media role property.

3) In such a case, how to assign media roles to them..

4) The Audio Manager or routing engine has the information about the media
role variable..

The above points are the things I want to acheive..

*" Essentially, if I write a module, it should take the media role
information from Audio Manager and set the media role variable in pulse

Is this what you implied when you replied you have to write a module
(written within quotes and faced in bold)?? Are there any other ways to do
it ??


On 19 November 2013 13:58, Tanu Kaskinen <tanu.kaskinen at linux.intel.com>wrote:

> On Tue, 2013-11-19 at 13:00 +0530, sathishkumar sivagurunathan wrote:
> > Hi,
> >
> >    I have a set of media streams running. For example; a vlc player and
> > mplayer.
> >
> >    Assuming both the player dont have the media.role variable set, are
> > these steps the way to go ??
> No. It's not possible to update other clients' properties from another
> client. What problem are you trying to solve? If you just want vlc and
> mplayer to set their media role, you can set environment variable
> PULSE_PROP_media.role=foo when running them. If you want to write
> software for controlling the media role of arbitrary streams, that
> software needs to run in the PulseAudio server, so it needs to be
> written as a PulseAudio module.
> --
> Tanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20131119/a3c36b59/attachment.html>

More information about the pulseaudio-discuss mailing list