Cloud App: Music player #1023

Open
opened 2010-04-14 14:18:15 +00:00 by josipl · 20 comments
josipl commented 2010-04-14 14:18:15 +00:00
Owner

This is a ticket related to my GSoC proposition. The plan is to write a fully featured music player which embraces the social components of the web while retaining privacy and security provided by Tahoe-LAFS. This application should be just a glimpse of what can be built on top of Tahoe-LAFS: highly interactive applications providing alternative views to files stored in Tahoe-LAFS.

See full proposal with UI mock-ups and implementation notes.

This is a ticket related to my GSoC proposition. The plan is to write a fully featured music player which embraces the social components of the web while retaining privacy and security provided by Tahoe-LAFS. This application should be just a glimpse of what can be built on top of Tahoe-LAFS: highly interactive applications providing alternative views to files stored in Tahoe-LAFS. [See full proposal with UI mock-ups and implementation notes](http://docs.google.com/Doc?docid=0AYv4KObVHf8OZGZrYmhkd2RfMTQ0aGt4OWZ6eGQ&hl=en_GB).
tahoe-lafs added the
contrib
major
task
1.6.1
labels 2010-04-14 14:18:15 +00:00
tahoe-lafs added this to the 1.8.0 milestone 2010-04-14 14:18:15 +00:00
josipl commented 2010-07-08 22:47:53 +00:00
Author
Owner

Attachment add-music-player.2.dpatch (2913671 bytes) added

Fixed initial scan, which now actually happens.

**Attachment** add-music-player.2.dpatch (2913671 bytes) added Fixed initial scan, which now actually happens.
josipl commented 2010-07-09 22:26:21 +00:00
Author
Owner

Attachment add-music-player-with-core-deps.dpatch (9274320 bytes) added

This file contains two patches, add-music-player and add-music-players-core-deps, where core-deps means that only files needed from dependencies are included (no READMEs, docs, etc.)

**Attachment** add-music-player-with-core-deps.dpatch (9274320 bytes) added This file contains two patches, add-music-player and add-music-players-core-deps, where core-deps means that only files needed from dependencies are included (no READMEs, docs, etc.)
josipl commented 2010-07-09 23:06:50 +00:00
Author
Owner

(regarding add-music-player-with-core-deps.dpatch)

As mentioned, only files that are actually needed are included in the second patch (add-music-players-core-deps), while irrelevant files are available in a third patch which was too big for upload here (18 MB) but can be downloaded from: http://drop.io/aaiodts

(regarding add-music-player-with-core-deps.dpatch) As mentioned, only files that are actually needed are included in the second patch (add-music-players-core-deps), while irrelevant files are available in a third patch which was too big for upload here (18 MB) but can be downloaded from: <http://drop.io/aaiodts>
davidsarah commented 2010-07-09 23:48:36 +00:00
Author
Owner

Review needed for GSoC mid-term evaluations.

Review needed for GSoC mid-term evaluations.
josipl commented 2010-07-10 19:23:33 +00:00
Author
Owner

Attachment add-music-player.dpatch (235537 bytes) added

Only the music player's code.

**Attachment** add-music-player.dpatch (235537 bytes) added Only the music player's code.
zooko commented 2010-07-23 05:42:57 +00:00
Author
Owner

Unsetting review-needed. This patch is not ready to be reviewed as if it were ready to commit. However, it would probably be a good help and encouragement to Josip if anyone would look at his code, docs, or comments and give him your thoughts. :-)

Unsetting review-needed. This patch is not ready to be reviewed as if it were ready to commit. However, it would probably be a good help and encouragement to Josip if anyone would look at his code, docs, or comments and give him your thoughts. :-)
josipl commented 2010-08-01 00:25:13 +00:00
Author
Owner

Attachment updates01082010.dpatch (411379 bytes) added

Adds player's play/pause/next/prev interface, information about currently playing song, access to additional info about the artist, recommendations and music videos.

**Attachment** updates01082010.dpatch (411379 bytes) added Adds player's play/pause/next/prev interface, information about currently playing song, access to additional info about the artist, recommendations and music videos.
josipl commented 2010-08-01 00:26:46 +00:00
Author
Owner

Attachment new-dependencies.dpatch (45658 bytes) added

Includes new dependencies (notifications library and Last.fm API wrapper) and a fix for MooTools' JSON parser.

**Attachment** new-dependencies.dpatch (45658 bytes) added Includes new dependencies (notifications library and Last.fm API wrapper) and a fix for [MooTools](wiki/MooTools)' JSON parser.
josipl commented 2010-08-09 16:46:38 +00:00
Author
Owner

To review the music player's code, following patches have to be applied to Tahoe-LAFS darcs repo:

If you wish to test the player itself, you'll also need to apply following patches (those containing 3rd party code):

Further instructions on testing and installing the player can be found in 'NOTES' and 'INSTALL' files.

To review the music player's code, following patches have to be applied to Tahoe-LAFS darcs repo: * [add-music-player.dpatch](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-1388-25ed-8f41-07e39dac97b5) * [updates01082010.dpatch](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-1388-25ed-8f41-9954f6d62ba6) If you wish to test the player itself, you'll also need to apply following patches (those containing 3rd party code): * download 'add-music-players-deps.dpatch' from <http://drop.io/aaiodts> (16MB) * [new-dependencies.dpatch](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-1388-25ed-8f41-9525647d50e5) Further instructions on testing and installing the player can be found in 'NOTES' and 'INSTALL' files.
davidsarah commented 2010-08-09 18:54:33 +00:00
Author
Owner

Starting review. Everyone, please test!

Starting review. Everyone, please test!
tahoe-lafs modified the milestone from 1.8.0 to 1.9.0 2010-08-09 22:16:20 +00:00
francois commented 2010-08-10 11:41:13 +00:00
Author
Owner

I've just started playing with it and will post comments along the way.

The following command in contrib/musicplayer/INSTALL is not correct.

  $ cp -r build/ ~/.tahoe/public_html/musicplayer

You should add a trailing slash to the destination directory, without it a build directory gets created in ~/.tahoe/public_html/musicplayer/.

  $ cp -r build/ ~/.tahoe/public_html/musicplayer/
I've just started playing with it and will post comments along the way. The following command in *contrib/musicplayer/INSTALL* is not correct. ``` $ cp -r build/ ~/.tahoe/public_html/musicplayer ``` You should add a trailing slash to the destination directory, without it a *build* directory gets created in *~/.tahoe/public_html/musicplayer/*. ``` $ cp -r build/ ~/.tahoe/public_html/musicplayer/ ```
josipl commented 2010-08-10 13:45:15 +00:00
Author
Owner

Replying to francois:

I've just started playing with it and will post comments along the way.
Cool, thanks!

You should add a trailing slash to the destination directory, without it a build directory gets created in ~/.tahoe/public_html/musicplayer/.

  $ cp -r build/ ~/.tahoe/public_html/musicplayer/

I presume you're using *BSD or OS X? I tested it with GNU version of cp (v8.4) and it works as expected with and without the trailing slash.

Replying to [francois](/tahoe-lafs/trac-2024-07-25/issues/1023#issuecomment-118637): > I've just started playing with it and will post comments along the way. Cool, thanks! > You should add a trailing slash to the destination directory, without it a *build* directory gets created in *~/.tahoe/public_html/musicplayer/*. > > ``` > $ cp -r build/ ~/.tahoe/public_html/musicplayer/ > ``` I presume you're using *BSD or OS X? I tested it with GNU version of `cp` (v8.4) and it works as expected with and without the trailing slash.
francois commented 2010-08-10 17:05:10 +00:00
Author
Owner

Replying to [josipl]comment:10:

I presume you're using *BSD or OS X? I tested it with GNU version of cp (v8.4) and it works as expected with and without the trailing slash.

No, I tried that was on Ubuntu 10.04. The command works as expected if directory musicplay does not previsouly exists.

francois@slayer:/tmp$ mkdir test1
francois@slayer:/tmp$ touch test1/file1
francois@slayer:/tmp$ cp -r test1/ blah
francois@slayer:/tmp$ ls blah
file1
francois@slayer:/tmp$ rm -r blah
francois@slayer:/tmp$ mkdir blah
francois@slayer:/tmp$ cp -r test1/ blah
francois@slayer:/tmp$ ls blah
test1
francois@slayer:/tmp$ 
Replying to [josipl]comment:10: > I presume you're using *BSD or OS X? I tested it with GNU version of `cp` (v8.4) and it works as expected with and without the trailing slash. No, I tried that was on Ubuntu 10.04. The command works as expected if directory *musicplay* does not previsouly exists. ``` francois@slayer:/tmp$ mkdir test1 francois@slayer:/tmp$ touch test1/file1 francois@slayer:/tmp$ cp -r test1/ blah francois@slayer:/tmp$ ls blah file1 francois@slayer:/tmp$ rm -r blah francois@slayer:/tmp$ mkdir blah francois@slayer:/tmp$ cp -r test1/ blah francois@slayer:/tmp$ ls blah test1 francois@slayer:/tmp$ ```
josipl commented 2010-08-10 17:15:51 +00:00
Author
Owner

Replying to [francois]comment:11:

Replying to [josipl]comment:10:

I presume you're using *BSD or OS X? I tested it with GNU version of cp (v8.4) and it works as expected with and without the trailing slash.

No, I tried that was on Ubuntu 10.04. The command works as expected if directory musicplay does not previsouly exists.

Indeed, I haven't considered that case, thanks for pointing it out. Have you had any problems with the app itself?

Replying to [francois]comment:11: > Replying to [josipl]comment:10: > > > I presume you're using *BSD or OS X? I tested it with GNU version of `cp` (v8.4) and it works as expected with and without the trailing slash. > > No, I tried that was on Ubuntu 10.04. The command works as expected if directory *musicplay* does not previsouly exists. Indeed, I haven't considered that case, thanks for pointing it out. Have you had any problems with the app itself?
freestorm commented 2010-08-11 21:19:55 +00:00
Author
Owner

I have tested on Windows XP SP3 French with trunk branch.

When I tried to compile I got this error:

D:\tahoe-1023\contrib\musicplayer>python manage.py build
running build
error: error in C:\Python26\lib\distutils\distutils.cfg: command 'Build' has no such option 'compiler'

D:\tahoe-1023\contrib\musicplayer>
I have tested on Windows XP SP3 French with trunk branch.<br> When I tried to compile I got this error: ``` D:\tahoe-1023\contrib\musicplayer>python manage.py build running build error: error in C:\Python26\lib\distutils\distutils.cfg: command 'Build' has no such option 'compiler' D:\tahoe-1023\contrib\musicplayer> ```
josipl commented 2010-08-14 18:12:57 +00:00
Author
Owner

Attachment updates14082010.dpatch (272868 bytes) added

Adds search and playlist editor, numerous improvements to column rendering and slightly improved UI.

**Attachment** updates14082010.dpatch (272868 bytes) added Adds search and playlist editor, numerous improvements to column rendering and slightly improved UI.
josipl commented 2010-08-14 18:45:09 +00:00
Author
Owner

Attachment id3_extractor.py (329 bytes) added

**Attachment** id3_extractor.py (329 bytes) added
josipl commented 2010-08-14 18:53:04 +00:00
Author
Owner

The last patch (attachment:updates14082010.dpatch) adds some useful features and number of improvements to the old ones, so everyone - please test!

If the app will have problems with detection of your files or if songs/artists/albums will have funky characters in their names, please use id3_extractor.py to extract ID3 tags from your troubled files and attach the result here. (note: you will have to easy_install mutagen)

The last patch (attachment:updates14082010.dpatch) adds some useful features and number of improvements to the old ones, so everyone - please test! If the app will have problems with detection of your files or if songs/artists/albums will have funky characters in their names, please use [id3_extractor.py](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-1388-25ed-8f41-253a76e8fb55) to extract ID3 tags from your troubled files and attach the result here. (note: you will have to `easy_install mutagen`)
freestorm commented 2010-08-16 23:17:51 +00:00
Author
Owner

Replying to freestorm:

I have tested on Windows XP SP3 French with trunk branch.

When I tried to compile I got this error:

D:\tahoe-1023\contrib\musicplayer>python manage.py build
running build
error: error in C:\Python26\lib\distutils\distutils.cfg: command 'Build' has no such option 'compiler'

D:\tahoe-1023\contrib\musicplayer>

It works with patch updates14082010.dpatch

Tested with Firefox

Replying to [freestorm](/tahoe-lafs/trac-2024-07-25/issues/1023#issuecomment-118641): > I have tested on Windows XP SP3 French with trunk branch.<br> > When I tried to compile I got this error: > ``` > D:\tahoe-1023\contrib\musicplayer>python manage.py build > running build > error: error in C:\Python26\lib\distutils\distutils.cfg: command 'Build' has no such option 'compiler' > > D:\tahoe-1023\contrib\musicplayer> > ``` > It works with patch [updates14082010.dpatch](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-1388-25ed-8f41-36f89d983b1f) Tested with Firefox
freestorm commented 2010-08-19 16:13:41 +00:00
Author
Owner

I've tested musicplayer on CentOS 5.5
with python 2.4.3

When I try to build I have this error:

python manage.py roll
running roll
error: build/resources: No such file or directory

I have this issue because on manage.py line 161 you delete build directory, and after you copy 'src/resources' to 'build/resources'.

It seems that Python on CentOS don't create the build directory before copy subdir resources

So I've added

os.makedirs('build')

just before:

shutil.copytree('src/resources', 'build/resources')

After that it compile with success

I've tested musicplayer on CentOS 5.5 with python 2.4.3 When I try to build I have this error: ``` python manage.py roll running roll error: build/resources: No such file or directory ``` I have this issue because on manage.py line 161 you delete build directory, and after you copy 'src/resources' to 'build/resources'.<br> It seems that Python on CentOS don't create the build directory before copy subdir resources<br> So I've added ``` os.makedirs('build') ``` just before: ``` shutil.copytree('src/resources', 'build/resources') ``` After that it compile with success
tahoe-lafs modified the milestone from 1.9.0 to soon 2011-04-24 04:05:36 +00:00
tahoe-lafs modified the milestone from soon to 1.10.0 2011-04-24 04:07:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#1023
No description provided.