[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-development
Subject:    [haiku-development] Media services startup notifications
From:       Dario Casalinuovo <b.vitruvio () gmail ! com>
Date:       2015-07-29 10:48:43
Message-ID: CAKk25i7Nw71OuW3XXQeajFN5KA-CTs72hKFA2H=GfacmnW9amg () mail ! gmail ! com
[Download RAW message or body]

Hello,
working on the stippi proposed solution for Media prefs i have come to the
problem that Deskbar notifications are partially handed by the Media
preflet, so in various situations it result in half notifications. I.e.
sometimes the restart or start process end with a 70% notification where
the services are correctly running, this is because launch_media_server
doesn't manage notifications on it's own. This also happens with
MediaPlayer which is using launch_media_server.

My plan is to add two functions complementary to the existing ones :

shutdown_media_server(uint32 flags)

launch_media_server(bigtime_t timeout, bool (*progress)(int stage, const
char* message, void* cookie), void* cookie)

The simple version will just wrap the complex one, by providing
automatically an hook to send notifications to Deskbar. The complex one
will allow to specify a hook client side, so that we have two ways to run
this process. At BeOS time there wasn't notifications so this was not
possible but nowadays i think both existing apps and new ones will benefit
of this change in both senses of customization and avoiding code
duplication/issues due to the incosistency between launch_media_server and
shutdown_media_server right now.

Any comment on this?

-- 
Regards,
Dario

 « Nullius addictus iurare in verba magistri, quo me cumque rapit tempestas,
deferor hospes.  »

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hello,</div><div>working on the stippi proposed solution for \
Media prefs i have come to the problem that Deskbar notifications are partially \
handed by the Media preflet, so in various situations it result in half \
notifications. I.e. sometimes the restart or start process end with a 70% \
notification where the services are correctly running, this is because \
launch_media_server doesn&#39;t manage notifications on it&#39;s own. This also \
happens with MediaPlayer which is using \
launch_media_server.</div><div><br></div><div>My plan is to add two functions \
complementary to the existing ones \
:</div><div><br></div><div>shutdown_media_server(uint32 \
flags)</div><div><br></div><div><div>launch_media_server(bigtime_t timeout, bool \
(*progress)(int stage, const char* message, void* cookie), void* \
cookie)</div></div><div><br></div>The simple version will just wrap the complex one, \
by providing automatically an hook to send notifications to Deskbar. The complex one \
will allow to specify a hook client side, so that we have two ways to run this \
process. At BeOS time there wasn&#39;t notifications so this was not possible but \
nowadays i think both existing apps and new ones will benefit of this change in both \
senses of customization and avoiding code duplication/issues due to the incosistency \
between launch_media_server and shutdown_media_server right \
now.<div><br></div><div>Any comment on this?<br clear="all"><div><br></div>-- \
<br><div class="gmail_signature"><div dir="ltr"><div><div><span \
style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:12.8000001907349px">Regards,</span></div><div><span \
style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:12.8000001907349px">Dario</span></div><div><span \
style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:12.8000001907349px"><br></span></div><div \
dir="ltr"><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:12.8000001907349px"> \
« Nullius addictus iurare in verba magistri, quo me cumque rapit tempestas, deferor \
hospes.  »</span><br></div></div></div></div> </div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic