Discussion:
accurate (progress bar and time)
dean blackketter
2002-01-29 03:09:18 UTC
Permalink
How do you get it to the point where you can do 'cvs update'? I've got
cvs's utils installed, but have never used it before, either.
Check out the instructions on the sourceforge site for the SliMP3 project:

<http://sourceforge.net/cvs/?group_id=34726>

Once you've got cvs installed, this is what you need.

-dean
/Chris
Hi Nicholas,
Dean - I have to admit I have absolutely no idea how to use CVS. I will do
some reading-up, but currently I can't create a diff file. Sorry
about that.
I'll figure it out soon :)
Ok. It's really not that hard. Once you've gotten to where you can do a
cvs update
you should be able to do a
cvs diff -upB
Take the output of that command and send it as an attached text file
to the list so we can check out your good work.
-dean
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/iWSNbC/VdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:06:33 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] Re: accurate (progress bar and
time)</title></head><body>
<blockquote type="cite" cite>How do you get it to the point where you
can do 'cvs update'?&nbsp; I've got<br>
cvs's utils installed, but have never used it before,
either.</blockquote>
<div><br></div>
<div>Check out the instructions on the sourceforge site for the SliMP3
project:</div> <div><br></div> <div>&lt;http://sourceforge.net/cvs/?group_id=34726&gt;</div>
<div><br></div>
<div>Once you've got cvs installed, this is what you need.</div>
<div><br></div>
<div>-dean</div>
<div><br></div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>/Chris<br>
<br>
On Sat, 26 Jan 2002, dean blackketter wrote:<br>
<br>
&gt; Hi Nicholas,<br>
&gt;<br>
&gt; &gt;Dean - I have to admit I have absolutely no idea how to use
CVS. I will do<br>
&gt; &gt;some reading-up, but currently I can't create a diff file.
Sorry about that.<br>
&gt; &gt;I'll figure it out soon :)<br>
&gt;<br>
&gt; Ok.&nbsp; It's really not that hard.&nbsp; Once you've gotten to
where you can do a<br>
&gt;<br>
&gt; cvs update<br>
&gt;<br>
&gt; you should be able to do a<br>
&gt;<br>
&gt; cvs diff -upB<br>
&gt;<br>
&gt; Take the output of that command and send it as an attached text
file<br>
&gt; to the list so we can check out your good work.<br>
&gt;<br>
&gt;<br>
&gt; -dean<br>
&gt;<br>
&gt;<br>
&gt; To unsubscribe from this group, send an email to:<br>
&gt; slimp3-dev-unsubscribe-***@public.gmane.org<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/<br>
&gt;<br>
&gt;<br>
<br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--&gt;<br>
Sponsored by VeriSign - The Value of Trust<br>
Pinpoint the right security solution for your company - FREE<br>
Guide from industry leader VeriSign gives you all the facts.<br>
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/rIp0lB/TM<br>
---------------------------------------------------------------------<span </span>~-&gt;<br>
<br>
To unsubscribe from this group, send an email to:<br>
slimp3-dev-unsubscribe-***@public.gmane.org</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ </blockquote>
<div><br></div>
</body>
</html>
Jordan Share
2002-01-28 01:28:31 UTC
Permalink
How do you get it to the point where you can do 'cvs update'? I've got
cvs's utils installed, but have never used it before, either.
cvs -d:pserver:anonymous-d6Wnq0YjlhfDbRF6Jby/***@public.gmane.org:/cvsroot/slimp3 login
(hit enter at the password prompt)

cvs -z3 -d:pserver:anonymous-d6Wnq0YjlhfDbRF6Jby/***@public.gmane.org:/cvsroot/slimp3 co
slimp3

After you have checked out the source, you can just do "cvs update" within
the slimp3 directory (i.e., you don't have to enter the rest of the stuff).

Jordan


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Chris Hemmerly
2002-01-28 01:13:18 UTC
Permalink
How do you get it to the point where you can do 'cvs update'? I've got
cvs's utils installed, but have never used it before, either.
/Chris
Hi Nicholas,
Dean - I have to admit I have absolutely no idea how to use CVS. I will do
some reading-up, but currently I can't create a diff file. Sorry about that.
I'll figure it out soon :)
Ok. It's really not that hard. Once you've gotten to where you can do a
cvs update
you should be able to do a
cvs diff -upB
Take the output of that command and send it as an attached text file
to the list so we can check out your good work.
-dean
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Pinpoint the right security solution for your company - FREE
Guide from industry leader VeriSign gives you all the facts.
http://us.click.yahoo.com/pCuuSA/WdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2002-01-27 06:44:03 UTC
Permalink
Hi Nicholas,
Dean - I have to admit I have absolutely no idea how to use CVS. I will do
some reading-up, but currently I can't create a diff file. Sorry about that.
I'll figure it out soon :)
Ok. It's really not that hard. Once you've gotten to where you can do a

cvs update

you should be able to do a

cvs diff -upB

Take the output of that command and send it as an attached text file
to the list so we can check out your good work.


-dean

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:07:06 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] Re: accurate (progress bar and
time)</title></head><body>
<div>Hi Nicholas,</div>
<div><br></div>
<blockquote type="cite" cite>Dean - I have to admit I have absolutely
no idea how to use CVS. I will do<br>
some reading-up, but currently I can't create a diff file. Sorry about
that.</blockquote>
<blockquote type="cite" cite>I'll figure it out soon :)</blockquote>
<div><br></div>
<div>Ok.&nbsp; It's really not that hard.&nbsp; Once you've gotten to
where you can do a </div>
<div><br></div>
<div>cvs update</div>
<div><br></div>
<div>you should be able to do a </div>
<div><br></div>
<div>cvs diff -upB</div>
<div><br></div>
<div>Take the output of that command and send it as an attached text
file to the list so we can check out your good work.</div>
<div><br></div>
<div><br></div>
<div>-dean</div>
</body>
</html>
Nicholas Clark
2002-01-27 02:38:37 UTC
Permalink
Dean - I have to admit I have absolutely no idea how to use CVS. I will do
some reading-up, but currently I can't create a diff file. Sorry about that.
I'll figure it out soon :)

Sam - I really like the idea of being able to fast forward and I can see how
that really makes it hard to display the time correctly.

The reason I was using the time and length of the song in seconds rather
than the number of packets sent was because I thought that would be more
accurate, but I don't know if that is true nor the easiest way to determine
the progress of the song.

I think both displaying accurate time and being able to fast forward are
important so this may warrant some debate on how to do this. I don't know if
any firmware support would be necessary, etc.

I'll keep playing with the code and see what I can come up with...if I can
make the time even more accurate and reliable, etc.

----- Original Message -----
From: "sam_saffron" <sam_saffron-/***@public.gmane.org>
To: <slimp3-dev-***@public.gmane.org>
Sent: Saturday, January 26, 2002 8:57 PM
Subject: [slimp3-dev] Re: accurate (progress bar and time)
Dean/Nicholas
I got this working on my SlimVB, and got the fast forward and rewind
working as well.
Here is how I did the accurate time
I added a client var that counts the number of packets that were sent
in the stream. The actual position in the song is the file pos minus
the number of packets sent in the stream times chunksize or
BUFFERSIZE - whatever is smaller. (this is slightly innacurate as
network latency and packet loss should be taken into account but
seems to work fine for me, to take these two into account without
changing the slim firmware would be complex)
Private Function estimatedBuffer() As Long
estimatedBuffer = lPacketsSent * CHUNKSIZE
If SLIMP3_BUFFER_SIZE < estimatedBuffer Then estimatedBuffer =
SLIMP3_BUFFER_SIZE
End Function
Storing packets sent are very important if you want to get fast
forward working as the buffer is usually mostly empty while the fast
forward is going. So its a bit difficult to get the time on display
to sync with the time on the song.
The last change which was most complicated for fast forward was
detecting onbuttonup events as the fast forward button has two
functions, if pressed shortly it will skip a song and if pressed a
long time it will fast forward the song. My client object has a proc
called ISchedulable_RefreshDevice that is called every 50MS so this
allows me to detect inactivity on the remote...
Cheers
Sam
Nicholas,
Can you post a diff? This stuff is very interesting...
Thanks,
dean
I have managed to make the progress bar and time quite accurate
(at least on
my machine over my network.) Unfortunately I had to make quite a
few changes
here and there, so this is really for those who are interested.
The progress bar goes all the way from start to finish and the
time goes
from 00:00 to the total length of the song without jumping to
00:00 before
the song is over.
http://clarkni5.user.msu.edu
Go to my web page and look at Section "V. accurate + dean
modification,
includes my short descriptions time display" under "Progress Bar".
There are
four files you need to download and two of them are named
playlist.pm, so
make sure they make it to the proper directory. (I think I put
everything
online, but please let me know if it does not work.)
I can explain more in depth what I did if people are
interested...in short I
added two variables to the client structure containing the length
of the
song in seconds and a boolean 'is this a new song' variable. --
because
songs start streaming before the player has finished playing the
previous
song I had to add these variables, I could not use the cache in
SliMP3::Misc -- anyway, I won't bore you with the details.
In server.pl on line 537, I used this calculation (122 * 1024),
not (128 *
1024) This was to make the time say 00:00 when the next song
started
playing. You may have to adjust this for your network
environment...I don't
know.
Play a song that scrolls the text at the bottom and watch the
time, I
thought it was funny.
When you reach the end of the playlist...the progress bar goes
blank just
before the end of the last song.
These files also include all the chages I emailed the list about
last night,
for those interested.
Why are my emails always so long...sorry about that. Please give
me your
feedback.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
sam_saffron
2002-01-27 01:57:01 UTC
Permalink
Dean/Nicholas

I got this working on my SlimVB, and got the fast forward and rewind
working as well.

Here is how I did the accurate time

I added a client var that counts the number of packets that were sent
in the stream. The actual position in the song is the file pos minus
the number of packets sent in the stream times chunksize or
BUFFERSIZE - whatever is smaller. (this is slightly innacurate as
network latency and packet loss should be taken into account but
seems to work fine for me, to take these two into account without
changing the slim firmware would be complex)

Private Function estimatedBuffer() As Long
estimatedBuffer = lPacketsSent * CHUNKSIZE
If SLIMP3_BUFFER_SIZE < estimatedBuffer Then estimatedBuffer =
SLIMP3_BUFFER_SIZE
End Function

Storing packets sent are very important if you want to get fast
forward working as the buffer is usually mostly empty while the fast
forward is going. So its a bit difficult to get the time on display
to sync with the time on the song.


The last change which was most complicated for fast forward was
detecting onbuttonup events as the fast forward button has two
functions, if pressed shortly it will skip a song and if pressed a
long time it will fast forward the song. My client object has a proc
called ISchedulable_RefreshDevice that is called every 50MS so this
allows me to detect inactivity on the remote...

Cheers

Sam
Nicholas,
Can you post a diff? This stuff is very interesting...
Thanks,
dean
I have managed to make the progress bar and time quite accurate
(at least on
my machine over my network.) Unfortunately I had to make quite a
few changes
here and there, so this is really for those who are interested.
The progress bar goes all the way from start to finish and the
time goes
from 00:00 to the total length of the song without jumping to
00:00 before
the song is over.
http://clarkni5.user.msu.edu
Go to my web page and look at Section "V. accurate + dean
modification,
includes my short descriptions time display" under "Progress Bar".
There are
four files you need to download and two of them are named
playlist.pm, so
make sure they make it to the proper directory. (I think I put
everything
online, but please let me know if it does not work.)
I can explain more in depth what I did if people are
interested...in short I
added two variables to the client structure containing the length
of the
song in seconds and a boolean 'is this a new song' variable. --
because
songs start streaming before the player has finished playing the
previous
song I had to add these variables, I could not use the cache in
SliMP3::Misc -- anyway, I won't bore you with the details.
In server.pl on line 537, I used this calculation (122 * 1024),
not (128 *
1024) This was to make the time say 00:00 when the next song
started
playing. You may have to adjust this for your network
environment...I don't
know.
Play a song that scrolls the text at the bottom and watch the
time, I
thought it was funny.
When you reach the end of the playlist...the progress bar goes
blank just
before the end of the last song.
These files also include all the chages I emailed the list about
last night,
for those interested.
Why are my emails always so long...sorry about that. Please give
me your
feedback.
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Do you need to encrypt all your online transactions? Find
the perfect solution in this FREE Guide from VeriSign.
http://us.click.yahoo.com/jWSNbC/UdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2002-01-27 01:04:34 UTC
Permalink
Nicholas,

Can you post a diff? This stuff is very interesting...

Thanks,

dean
I have managed to make the progress bar and time quite accurate (at least on
my machine over my network.) Unfortunately I had to make quite a few changes
here and there, so this is really for those who are interested.
The progress bar goes all the way from start to finish and the time goes
from 00:00 to the total length of the song without jumping to 00:00 before
the song is over.
http://clarkni5.user.msu.edu
Go to my web page and look at Section "V. accurate + dean modification,
includes my short descriptions time display" under "Progress Bar". There are
four files you need to download and two of them are named playlist.pm, so
make sure they make it to the proper directory. (I think I put everything
online, but please let me know if it does not work.)
I can explain more in depth what I did if people are interested...in short I
added two variables to the client structure containing the length of the
song in seconds and a boolean 'is this a new song' variable. -- because
songs start streaming before the player has finished playing the previous
song I had to add these variables, I could not use the cache in
SliMP3::Misc -- anyway, I won't bore you with the details.
In server.pl on line 537, I used this calculation (122 * 1024), not (128 *
1024) This was to make the time say 00:00 when the next song started
playing. You may have to adjust this for your network environment...I don't
know.
Play a song that scrolls the text at the bottom and watch the time, I
thought it was funny.
When you reach the end of the playlist...the progress bar goes blank just
before the end of the last song.
These files also include all the chages I emailed the list about last night,
for those interested.
Why are my emails always so long...sorry about that. Please give me your
feedback.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
Secure all your Web servers now - with a proven 5-part
strategy. The FREE Server Security Guide shows you how.
http://us.click.yahoo.com/iWSNbC/VdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nicholas Clark
2002-01-27 00:38:42 UTC
Permalink
I have managed to make the progress bar and time quite accurate (at least on
my machine over my network.) Unfortunately I had to make quite a few changes
here and there, so this is really for those who are interested.

What this fixes:
The progress bar goes all the way from start to finish and the time goes
from 00:00 to the total length of the song without jumping to 00:00 before
the song is over.

How to get the changes:
http://clarkni5.user.msu.edu
Go to my web page and look at Section "V. accurate + dean modification,
includes my short descriptions time display" under "Progress Bar". There are
four files you need to download and two of them are named playlist.pm, so
make sure they make it to the proper directory. (I think I put everything
online, but please let me know if it does not work.)

Explanation:
I can explain more in depth what I did if people are interested...in short I
added two variables to the client structure containing the length of the
song in seconds and a boolean 'is this a new song' variable. -- because
songs start streaming before the player has finished playing the previous
song I had to add these variables, I could not use the cache in
SliMP3::Misc -- anyway, I won't bore you with the details.

Tweak:
In server.pl on line 537, I used this calculation (122 * 1024), not (128 *
1024) This was to make the time say 00:00 when the next song started
playing. You may have to adjust this for your network environment...I don't
know.

Issues:
Play a song that scrolls the text at the bottom and watch the time, I
thought it was funny.
When you reach the end of the playlist...the progress bar goes blank just
before the end of the last song.

Additional:
These files also include all the chages I emailed the list about last night,
for those interested.

Why are my emails always so long...sorry about that. Please give me your
feedback.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Sponsored by VeriSign - The Value of Trust
When building an e-commerce site, you want to start with a
secure foundation. Learn how with VeriSign's FREE Guide.
http://us.click.yahoo.com/kWSNbC/XdiDAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
slimp3-dev-unsubscribe-***@public.gmane.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
dean blackketter
2003-02-22 13:07:12 UTC
Permalink
<!doctype html public "-//W3C//DTD W3 HTML//EN">
<head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [slimp3-dev] accurate (progress bar and
time)</title></head><body>
<div>Nicholas,</div>
<div><br></div>
<div>Can you post a diff?&nbsp; This stuff is very
interesting...</div>
<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>dean</div>
<div><br></div>
<blockquote type="cite" cite>I have managed to make the progress bar
and time quite accurate (at least on<br>
my machine over my network.) Unfortunately I had to make quite a few
changes<br>
here and there, so this is really for those who are interested.<br>
<br>
What this fixes:<br>
The progress bar goes all the way from start to finish and the time
goes<br>
from 00:00 to the total length of the song without jumping to 00:00
before<br>
the song is over.<br>
<br>
How to get the changes:<br>
http://clarkni5.user.msu.edu<br>
Go to my web page and look at Section &quot;V. accurate + dean
modification,<br>
includes my short descriptions time display&quot; under &quot;Progress
Bar&quot;. There are<br>
four files you need to download and two of them are named playlist.pm,
so<br>
make sure they make it to the proper directory. (I think I put
everything<br>
online, but please let me know if it does not work.)</blockquote>
<blockquote type="cite" cite><br>
Explanation:<br>
I can explain more in depth what I did if people are interested...in
short I<br>
added two variables to the client structure containing the length of
the<br>
song in seconds and a boolean 'is this a new song' variable. --
because<br>
songs start streaming before the player has finished playing the
previous</blockquote>
<blockquote type="cite" cite>song I had to add these variables, I
could not use the cache in<br>
SliMP3::Misc -- anyway, I won't bore you with the
details.</blockquote>
<blockquote type="cite" cite><br>
Tweak:<br>
In server.pl on line 537, I used this calculation (122 * 1024), not
(128 *<br>
1024) This was to make the time say 00:00 when the next song
started<br>
playing. You may have to adjust this for your network environment...I
don't<br>
know.</blockquote>
<blockquote type="cite" cite><br>
Issues:<br>
Play a song that scrolls the text at the bottom and watch the time,
I<br>
thought it was funny.<br>
When you reach the end of the playlist...the progress bar goes blank
just<br>
before the end of the last song.<br>
<br>
Additional:<br>
These files also include all the chages I emailed the list about last
night,<br>
for those interested.<br>
<br>
Why are my emails always so long...sorry about that. Please give me
your<br>
feedback.</blockquote>
<blockquote type="cite" cite><br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--&gt;<br>
Sponsored by VeriSign - The Value of Trust<br>
When building an e-commerce site, you want to start with a<br>
secure foundation. Learn how with VeriSign's FREE Guide.<br>
http://us.click.yahoo.com/kWSNbC/XdiDAA/yigFAA/rIp0lB/TM<br>
---------------------------------------------------------------------<span </span>~-&gt;<br>
<br>
To unsubscribe from this group, send an email to:<br>
slimp3-dev-unsubscribe-***@public.gmane.org<br>
<br>
&nbsp;<br>
<br>
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ </blockquote>
<div><br></div>
</body>
</html>

Continue reading on narkive:
Loading...