[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: D5264: Amarok Player Integration For Mycroft
From: Aditya Mehra <noreply () phabricator ! kde ! org>
Date: 2017-03-31 20:33:10
Message-ID: 20170331203309.52662.46632.8E8AB9C3 () phabricator ! kde ! org
[Download RAW message or body]
Aiix added a comment.
In https://phabricator.kde.org/D5264#99248, @graesslin wrote:
> Just wondering: why dedicated to amarok instead of interacting with mpris? That would allow to \
control any media player instead of just amarok
Amarok is the first implementation of interacting over the default mpris dbus interface where other \
players over the mpris dbus interface will be added, The limitation seems to be on the side of how I can \
integrate with Mycroft Skills via Dbus and intent management. There are two points to this. 1. It seems \
currently i cannot implement a blocking dbus loop on a mycroft skill where i cannot directly query the \
media player in use by the system in default this will break user interaction with other skills if i run \
the skill in a dbus main loop so only single method calls work without having the ability to implement \
dbus signals and replies. 2. Intent handling for example user say's simply "Play Music / Pause Music / \
Next Song / Previous Song" how to determine the media player to use by default as every user has an \
individual preference unless it is being defined by the system where there is a dbus method call to a \
default system player available. Here the solution as per my implementation seems to segregate the media \
player the user wants to play his media by where any media player for example "Babe Qt", "Rhythmbox" \
"Deepin Media Player" or "VLC" that makes use of mpris dbus interface will have individual intent calls \
like "Hey Mycroft, Deepin Play Song" or "Hey Mycroft, Rhythmbox Play Song" etc.
REPOSITORY
R846 Mycroft Plasma integration
REVISION DETAIL
https://phabricator.kde.org/D5264
To: Aiix
Cc: graesslin, plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
[Attachment #3 (text/html)]
<table><tr><td style="">Aiix added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; \
font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to \
bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D5264" rel="noreferrer">View Revision</a></tr></table><br \
/><div><div><blockquote style="border-left: 3px solid #8C98B8; color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D5264#99248" \
style="background-color: #e7e7e7; border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: line-through;" rel="noreferrer">D5264#99248</a>, <a \
href="https://phabricator.kde.org/p/graesslin/" style=" border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;" rel="noreferrer">@graesslin</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Just wondering: why dedicated to amarok instead of interacting \
with mpris? That would allow to control any media player instead of just amarok</p></div> </blockquote>
<p>Amarok is the first implementation of interacting over the default mpris dbus interface where other \
players over the mpris dbus interface will be added, The limitation seems to be on the side of how I can \
integrate with Mycroft Skills via Dbus and intent management. There are two points to this. 1. It seems \
currently i cannot implement a blocking dbus loop on a mycroft skill where i cannot directly query the \
media player in use by the system in default this will break user interaction with other skills if i run \
the skill in a dbus main loop so only single method calls work without having the ability to implement \
dbus signals and replies. 2. Intent handling for example user say's simply "Play Music / Pause \
Music / Next Song / Previous Song" how to determine the media player to use by default as every user \
has an individual preference unless it is being defined by the system where there is a dbus method call \
to a default system player available. Here the solution as per my implementation seems to segregate the \
media player the user wants to play his media by where any media player for example "Babe Qt", \
"Rhythmbox" "Deepin Media Player" or "VLC" that makes use of mpris dbus \
interface will have individual intent calls like "Hey Mycroft, Deepin Play Song" or "Hey \
Mycroft, Rhythmbox Play Song" etc.</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R846 Mycroft Plasma integration</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5264" \
rel="noreferrer">https://phabricator.kde.org/D5264</a></div></div><br /><div><strong>To: </strong>Aiix<br \
/><strong>Cc: </strong>graesslin, plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, \
abetts, sebas, apol<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic