File Player
File Player (fileplayer.bin) is a media player for MP3/WAV/OGG/WMA files.
Version: N/A
Status: nothing to do
Description
Note: in the latest alpha releases, fileplayer.bin is replaced by the new play dispatcher. The dispatcher will still use the old executable to play avi, ogg, pcm, thx and wma files, and the new mp3play for mp3 files.
fileplayer.bin will play the indicated file but will NOT update the screen. Instead, it will print a heartbeat message on console at every second. The message is "Time" string, followed by some binary info. I suppose this is the number of seconds elapsed since the beginning of the song. Remember, it is not a string, it is binary! The screen is probably updated by the dvdplayer program, which uses the heartbeat to advance the progress bar (lower-right on the TV screen).
Since fileplayer is a child of dvdplayer, the latter will receive the IR codes from the remote and the input from the MG35 buttons will convert them to commands to fileplayer.bin. Commands are sent to fileplayer at console as strings, followed by CR. Examples:
| s### |
seek to ### seconds marker. Message: "Seeking to CTS = ###000". |
| r |
return/stop. Message: "exiting from middle of somewhere. End" |
| x |
exit. Message: "exiting from middle of somewhere. End" |
| p |
pause/resume |
| f |
forward 10 sec. Message: "seekTime = 111000, endTime = 0" |
| b |
back 10 sec. Message: "seekTime = 176000" |
| s |
start. Message: "Seeking to CTS = 0" |
| z??? |
zoom. Unknown parameter, message "received unknown Zoom secondary command: 0x31 (1)" |
Volume up/down and mute are probably global, so there are no commands for fileplayer (dvdplayer processes these events).
Fileplayer also responds to Unix signals. SIGUSR1 seems to end the playback, SIGUSR2 ???
Fileplayer communicates bookmark handling with the main ram configuration block at 0x1FF-F000, specifically between byte offsets 532-556 from the start of the block. When a bookmark is found that matches the currently open file, fileplayer will print 'Book' to stdout, and wait for 0x1FFF228-B to contain either 0 or 1 (uint32). A value of 0 starts the file from the beginning; 1 continues the file from the seconds offset stored in 0x1FFF208-B.
Note: trying to start a second instance of fileplayer (e.g. using the remote control while MG35 is playing started from command prompt) will crash the box.
Usage
fileplayer.bin MP3 /net/computername/sharename/dirname/song.MP3 0
fileplayer.bin WAV /cdrom/music/test.wav 0
fileplayer.bin OGG /cdrom/music/test.ogg 0
fileplayer.bin WMV /cdrom/music/test.wmv 0
fileplayer.bin AVI /net/computername/sharename/dirname/movie.avi 0
|
Not sure what the last parameter (0) means, tried a few and didn't see any difference. It even works without it.
Example:
/ # fileplayer.bin MP3 /cdrom/music/Eagle.mp3 0
Unknown led, open your eyes~
Subi
Info
00:05:46
ABBA
Eagle
MP3 at 128000 bps (44100Hz)
N/A
|
And another example, taken from elsewhere (Kiss??) which seems to not work on MG35:
./fileplayer.bin SHT 80 64.236.34.143 (Have tried this and get **Unsupported format 5458004** for any shoutcast feed)
./fileplayer.bin PC1 AUDIOsong.mp3 192.168.0.2 (Have tried this and get **Unsupported format 5268081** for any mp3)
./fileplayer.bin PC2 VIDEO****.avi 192.168.0.2 (Have tried this and get **Unsupported format 5260082** for any avi)
|
License
Proprietary
History
Comments
- VB: Support ASX playlist
- John: ASX playlists add 40kB to the executable, due to expat. Thoughts?
Comments (0)
You don't have permission to comment on this page.