Hello Jay, > I am trying to implement murphy resource aware application for audio > and video player.
Great! :-) > I initially create resource set and add resources .Then I acquire > resource by default on playing any file audio file or video file and > automatically the resource will be acquired. But I have few doubt > about the same. The automatic allocation of resources is not fully compatible with manual allocation of resources. In particular, if you play audio with gstreamer and do not allocate the resource set manually, PulseAudio (with pulseaudio-module-murphy-ivi plugin) will allocate a default resource set for you if media.role stream property is set to "music". If you do create a resource set manually using the resource API, you have to set the "pid" attribute of the resource set to match the pid of the playing application so that PulseAudio and Murphy understand that you have a manually handled resource set for the media player. You have to do the acquisition/releasing of the resource set by yourself in this case. Just acquire the resource set before you start playing and release after you finish playing. Only play audio when you have the permission to do so from the resource engine. > So, if I play audio file and then I play video file the audio_playback > resource should be used by video file. My question is : Is this taken > care by murphy or it is to be taken care by implementor( since both > have same application class and priorities, so whatever logic mute or > pause needs to be implemented in the logic). So in other words the problem is that you want to have either an "audio_playback" (for audio file case) or both "audio_playback" and "video_playback" (for video file case)? You can have two resource sets -- one for video and one for audio -- and acquire and release them according to the file type you want to play. Ismo Puustinen <[email protected]> _______________________________________________ IVI mailing list [email protected] https://lists.tizen.org/listinfo/ivi
