PDA

Bekijk de volledige versie : Does anyone wanna make online radio player?



neonicus
04-08-2009, 07:25
You must have usb sound card.
http://www.ebest24.co.uk/images/products_images/unfurl/ebest24b224em.jpg

I wanna make my WL500GPv2 to be online radio player,but I though my usb sound card may not fully compatible with Oleg's firmware.

1. upgrade firmware from http://code.google.com/p/wl500g/downloads/list .
I have used WL500gpv2-1.9.2.7-d-r396.trx ,it's newest firmware version
2. install program "madplay"
3. create file "/opt/etc/init.d/S91audio" with the content inside

#!/bin/sh
#put this file as /opt/etc/init.d/S91audio
insmod /lib/modules/2.4.37.2/soundcore.o
insmod /lib/modules/2.4.37.2/audio.o

4. extract the file "music_control.rar" in to your web content path and change permission of file "play","play_mp3","play_stream" to be executable file.
5. create directory "mp3" ไว้ที่ "/tmp/mnt/disc0_3/mp3"
put .mp3 files inside it.
create .url file and type url of online radio inside it such as my_radio.url which contained

http://210.1.51.137:7777
(support only http://, doesn't support mms://

open url of you web server with path to music_control you extracted from .rar file .

The button "MP" is list of files in "/tmp/mnt/disc0_3/mp3".
The button "PL" is list of playlist.

When program play .url file ,it will play stream from online radio site.

After you do all steps you may check by type "/opt/etc/init.d/S91audio"
then type "dmesg" to see message look like

usb.c: registered new driver audio
usbaudio: device 4 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: device 4 interface 2 altsetting 1 channels 1 framesize 2 configured
usbaudio: valid input sample rate 24000
usbaudio: device 4 interface 2 altsetting 1: format 0x00000010 sratelo 24000 sratehi 24000 attributes 0x00
usbaudio: device 4 interface 1 altsetting 0 does not have an endpoint
usbaudio: device 4 interface 1 altsetting 1 channels 2 framesize 2 configured
usbaudio: valid output sample rate 48000
usbaudio: device 4 interface 1 altsetting 1: format 0x01000010 sratelo 48000 sratehi 48000 attributes 0x00
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 3 type 0x0301
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 6 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at 8163a9a0
audio.c: v1.0.1:USB Audio Class driver




PS. the music controller web was modified from PHPSOUND of rmdijkman@wl500g.info at http://www.wl500g.info/showthread.php?t=1670

Let you try this ,then response result of yours.
because my WL500 sounded only continuously long beep.

portoz
22-12-2010, 01:52
Sorry, but you can for more instructions?
Web interface is started and opens to solve this. But as the play list do not understand? To prescribe that, where it lay?