Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Code Newbie > Lounge

Reply
 
LinkBack Thread Tools Display Modes
Old 06-01-2006, 01:37 PM   #1 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Fun little online winamp controller

I posted about this before, but have recently revisted my online winamp control project.

I found a plugin for winamp called Snowcrash, written by Victor Pavlov. It's an HTTP server plugin allowing remote control of winamp. I altered a few of the files, and wrote up some PHP, and AJAX to display the current song title and elapsed time updated every second. Then threw together a quick little control bar to play/pause/skip songs from my website. I've got a shoutcast server running from my machine as well, so you can listen to the station. Feel free to poke around: http://www.avclan.net/wip
__________________
Current Project
Redline is offline   Reply With Quote
Old 06-02-2006, 01:28 PM   #2 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Alright, so you can now actually start winamp from my website if it's not running already Also, http://www.avclan.net/wip/winamp displays the current playlist and allows you to select certain songs for it to play. There's a 18-36 second delay between what is displayed, and what is heard on shoutcast due to shoutcast buffering
__________________
Current Project
Redline is offline   Reply With Quote
Old 06-04-2006, 03:11 AM   #3 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Winamp - Online Remote
And now I'm just rebuilding winamp in html/javascript
-Playback buttons are functional
-repeat/shuffle buttons functional but image swapping is buggy
-Moving progress bar
-Title/time update 1/sec
-Playlist behavior is nearly identical to that of winamp
__________________
Current Project
Redline is offline   Reply With Quote
Old 06-04-2006, 06:59 AM   #4 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 701
DJMaze is on a distinguished road
Looks like you're having fun
DJMaze is offline   Reply With Quote
Old 06-04-2006, 11:44 AM   #5 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
You would be correct This is probably the most fun little project I've done. I'm learning a lot about Javascript too. I used to hate it, but I'm growing pretty fond of it now.
__________________
Current Project
Redline is offline   Reply With Quote
Old 06-07-2006, 11:55 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
nice stuff Josh. I poked around a bit. Looks pretty cool, but I guess you need Winamp to actually hear the music. The controller seems pretty reposive if it is actually controlling the remote system.
__________________
Mike
sde is offline   Reply With Quote
Old 06-07-2006, 11:26 PM   #7 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
There is usually about a .3-.5 second latency when you alter playback, but I do the image swapping onclick so that the user can see the page is doing something, and they don't keep clicking until something happens (which might not be annoying to them, but when I'm in here on the computer, it might be annoying to me )

I'm working on building scrollbars in javascript so I can keep winamp-style scrollbars. I've got them working currently on http://home.avclan.net/test.php but the drag/drop code is based off a script I found, and I need to rewrite it for my purposes before I actually make it control playlist scrolling.

Thanks for the kudos Mike, I'm pretty proud of this thing so far. I'm trying to learn C well enough to write my own plugin for the base so that I can make adjustments and add more functionality, but I'm having a hell of a time with that side of things. I can't seem to get a project compiled with winamps SDK headers
__________________
Current Project
Redline is offline   Reply With Quote
Old 06-08-2006, 07:43 AM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,503
sde is on a distinguished road
we have some pretty good c support around here.. you may want to try posting the issue.
__________________
Mike
sde is offline   Reply With Quote
Old 06-08-2006, 02:06 PM   #9 (permalink)
Redline
PHP Student
 
Join Date: Oct 2004
Location: Forest Grove, OR
Posts: 150
Redline is on a distinguished road
Send a message via AIM to Redline Send a message via MSN to Redline
Definitely. Right now I'm a total noob when it comes to C though. I don't really know what I'm doing, or what I need to ask. When I get a better handle on it, I'll most likely be asking some questions on here.

Right now I'm trying to optimize the scrollbars I made last night. I didn't realize how hard the math was on just a simple scroll bar. I've got it working fine now, but there are several minor tweaks I need to make before it's finished and goes live
__________________
Current Project
Redline is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
back to Online Banking again sde Lounge 10 01-28-2005 06:41 PM
online bank login not secure sde Lounge 2 12-06-2004 03:08 PM


All times are GMT -8. The time now is 06:06 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting