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

List:       amarok-devel
Subject:    Re: Review Request: [GSoC] Amarok integration with gpodder.net
From:       Lucas Lira Gomes <x8lucas8x () gmail ! com>
Date:       2011-10-16 21:25:59
Message-ID: CAH50j24UU+HKYDRsJ++gZuYKF0qXqy4kFWgc64te0Nb7FjXjnQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Stefan,

Fixed some Stuff (use of #DEFINES instead of constants & creation of
> own nam), but found some serious Problems:


Good, but you can't use The::networkAccessManager() as the nam or KDE will
keep asking if you authorize amarok to login in gpodder-net. So, the
solution is to use or own nam ^^.

It uploads an EpisodeAction::PLAY every minute, which is not correct.
>
Play should only be sent once to the Webservice, when I
>
stop/pause/seek (not sure about seek, @stefankoegl can you clarify?)
>
and not every minute.
>
Please change this asap, cause if more users start using the gpodder
>
service in Amarok the gpodder Server will receive too many requests.


I'm trying to put the status sync to work only when the user stop/pause
amarok.
The problem is that if the user closes Amarok, then we have no guarantee
that the status data will be received by the server.
Any failure will make us loose our status data and since the server is a bit
unresponsive this problem may happen frequently.
So we must create, at least, something similar to the actual send-by-minute
approach or the GPodder Service may not work correctly.

Also after restarting amarok and starting a podcast episode again from
>
the start, the time in the EpisodeActions seem to be counted from the
>
last point where I stopped it and not from the beginning (also try to
>
find a way to set the start always to 00:00, it is always 00:01).


And what the problem in counting time from the last point where we stopped?
I use this info to set an auto-bookmark in the seek bar, so the user can
know where he stopped to listen.
Also, every time I set the start point to 00:00, then gpodder.net doesn't
save the last point where I stopped.

Regards, Lucas Lira Gomes.


On 15 October 2011 19:20, Stefan Derkits <stefan@derkits.at> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Lucas,
>
> tried the PodcastProvider now that it is in Master.
>
> Fixed some Stuff (use of #DEFINES instead of constants & creation of
> own nam), but found some serious Problems:
>
> It uploads an EpisodeAction::PLAY every minute, which is not correct.
> Play should only be sent once to the Webservice, when I
> stop/pause/seek (not sure about seek, @stefankoegl can you clarify?)
> and not every minute.
> Please change this asap, cause if more users start using the gpodder
> service in Amarok the gpodder Server will receive too many requests.
>
> Also after restarting amarok and starting a podcast episode again from
> the start, the time in the EpisodeActions seem to be counted from the
> last point where I stopped it and not from the beginning (also try to
> find a way to set the start always to 00:00, it is always 00:01).
>
> Stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iEYEARECAAYFAk6aByMACgkQlZvAMV/NgGLjcgCgkIAsUvT9IXWvp0b0qO8lnT2u
> P14AoJmnL4cDmuTKTMFGleIpzapj1B29
> =Kux6
> -----END PGP SIGNATURE-----
>

[Attachment #5 (text/html)]

<div>Hi Stefan,<br clear="all"></div><div><br></div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Fixed some \
Stuff (use of #DEFINES instead of constants &amp; creation of<br>

own nam), but found some serious Problems:</blockquote><div><br></div><div>Good, but \
you can&#39;t use The::networkAccessManager() as the nam or KDE will keep asking if \
you authorize amarok to login in gpodder-net. So, the solution is to use or own nam \
^^.</div> <div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;">It uploads an EpisodeAction::PLAY \
every minute, which is not correct.<br></blockquote><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Play should only be sent once to the Webservice, when I<br></blockquote><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"> stop/pause/seek (not sure about seek, @stefankoegl can you \
clarify?)<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;"> and not every \
minute.<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;"> Please change this asap, cause if \
more users start using the gpodder<br></blockquote><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> service in \
Amarok the gpodder Server will receive too many \
requests.</blockquote><div><br></div><div>I&#39;m trying to put the status sync to \
work only when the user stop/pause amarok.  </div><div>The problem is that if the \
user closes Amarok, then we have no guarantee that the status data will be received \
by the server.</div> <div>Any failure will make us loose our status data and since \
the server is a bit unresponsive this problem may happen frequently.  </div><div>So \
we must create, at least, something similar to the actual send-by-minute approach or \
the GPodder Service may not work correctly.</div> <div><br></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;">Also after restarting amarok and starting a podcast episode \
again from<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;">

the start, the time in the EpisodeActions seem to be counted from \
the<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex;"> last point where I stopped it and \
not from the beginning (also try to<br></blockquote><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> find a way to \
set the start always to 00:00, it is always \
00:01).</blockquote><div><br></div><div>And what the problem in counting time from \
the last point where we stopped?  </div><div>I use this info to set an auto-bookmark \
in the seek bar, so the user can know where he stopped to listen.  </div> <div>Also, \
every time I set the start point to  00:00, then <a \
href="http://gpodder.net">gpodder.net</a> doesn&#39;t save the last point where I \
stopped.</div><div><br></div><div>Regards, Lucas Lira Gomes.</div><div><br></div> \
<br><div class="gmail_quote">On 15 October 2011 19:20, Stefan Derkits <span \
dir="ltr">&lt;<a href="mailto:stefan@derkits.at">stefan@derkits.at</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
                #ccc solid;padding-left:1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Lucas,<br>
<br>
tried the PodcastProvider now that it is in Master.<br>
<br>
Fixed some Stuff (use of #DEFINES instead of constants &amp; creation of<br>
own nam), but found some serious Problems:<br>
<br>
It uploads an EpisodeAction::PLAY every minute, which is not correct.<br>
Play should only be sent once to the Webservice, when I<br>
stop/pause/seek (not sure about seek, @stefankoegl can you clarify?)<br>
and not every minute.<br>
Please change this asap, cause if more users start using the gpodder<br>
service in Amarok the gpodder Server will receive too many requests.<br>
<br>
Also after restarting amarok and starting a podcast episode again from<br>
the start, the time in the EpisodeActions seem to be counted from the<br>
last point where I stopped it and not from the beginning (also try to<br>
find a way to set the start always to 00:00, it is always 00:01).<br>
<br>
Stefan<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk6aByMACgkQlZvAMV/NgGLjcgCgkIAsUvT9IXWvp0b0qO8lnT2u<br>
P14AoJmnL4cDmuTKTMFGleIpzapj1B29<br>
=Kux6<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>



_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel


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

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