Vibe fla

Amish

14-07-2006 17:13:34

Can you please post the fla for the vibe player. i can then try to skin it down a bit for a PSP version.

siit

15-07-2006 16:53:59

Since I'm at vacation at the moment I don't have access to the flash source file / Although I'd say that it's nothing really fancy about it and if I were to make Vibe Streamer work on the PSP I'd write a new one, simple enough for easy functionality on the PSP. Just check out some of the tutorials on making a mp3 player in flash. It's pretty much just a few simple calls.

Amish

15-07-2006 18:31:37

Oh no ive made Mp3 players that get the data from XML files and stuff before, but i want to know how you call the file. I saw in player.vibe that you set the varables for the path but i was wodnering how you controled the swf S

siit

15-07-2006 18:51:13

humm, well I'm not really sure what you mean is the problem, but I can describe the flow and maybe it'll help

When the "play" button is clicked (in the flash application), the flash application calls the javascript function player_onclick_play() on player.vibe. This function checks if the song should be resumed (from bein paused) or played from the beginning. If the track should be played it calls the play_track() function. This function sets three global variables in the flash applicaton, these are g_sLoadTrack (which should be the url to the track to be played), g_sTrackArtistName,g_sTrackSongName. The reason I send the artist name and the song name is that flash is quite bad at reading ID3 tags at some times and I want the ID3 tag data to be the same displayed in the vibe streamer playlist.

Anyways, when these global functions are set it sets the player to frame(40), which happens to be the start frame for playing a track..

that's kinda how it works in the current version of the standard skin.

A PSP version aye? many people will be happy for one D

Amish

15-07-2006 20:02:02

Well i checked and it seems that the Flash on PSP is unable to stream music.

siit

15-07-2006 22:32:38

Bad news for the PSP people (

How about media players for the PSP then? I haven't tried out any browsing on the PSP, but one possibility would be to make a skin that when a selected song is to be played, it opens up a media player that plays the song. Like when you link to a file on a webpage and Windows Mediaplayer is registrered with that mime type and plays the song? Might that be a possibility? The functionality wouldn't be as smooth and nice but it would be a working solution for the PSP people.

Well, that is if the PSP has a mediaplayer of some kind that can play music from an URL.

Amish

17-07-2006 14:07:03

Im sure there is homebrew for it. I will take a look around man.

siit

20-07-2006 20:13:36

nice, keep me updated ) btw, might you know how Java compatible the PSP/DS are? I'm guessing none whatsoever, but you never know...

Amish

21-07-2006 11:14:43

No java isnt compatiable. Although there is a homebrew called PSP radio that can stream mp3's

I recon Using LUA player for the PSP we an make a decent mp3 player.

siit

21-07-2006 12:36:27

Well after a quick look it seems that it's pretty much possible to do it using the LUA player. Although it's quite a lot of work and myself I'm pretty busy working on the server itself so I don't think it's somethinig I have the time to develop, but if you're interested then I'll give you the support you need )

It doesn't really have to be that hard, although I'm not sure if you can use the browser capabilities of the PSP to cooperate and make the skin itself easier so my first thought was to write a player using c++ (and the LUA player) that can connect to, and understand the simplest vibe server commands and translates them to a GUI of it's own on the PSP.

So you really need to create two "skins". One skin on the Vibe Server consisting of a few pages that gives the PSP the data needed (using the vibe script language), and then the skin on the PSP that reads this data (using regular http get requests) and displays it for the user.

Ahwell, I can go more into detail if anyone is interested, otherwise I'll look into it myself when time allows )

Amish

21-07-2006 20:11:28

I mean i could give it a shot. I havent messed around with it much but im willing to give it a go.

siit

21-07-2006 22:40:23

Nice one D I'd definately add another download section to the website and give you credit for developing it if you manage to create a working PSP skin (or well.. Vibe Streamer client application would probably be a better word since it's quite a different technique than doing a simple skin D)

Dunno if you want/need any help but ask as much as you want if you need to )

Anyways, as a quick start, If I were to develop it I would start by creating a simple web browser class that can run on the PSP. It doesn't need anything fancy really. All it needs to do is to make HTTP requests and it also needs cookie support (for the client side of the Vibe Streamer session). This web browser will do all the communication against the Vibe Server.

On the Vibe server side there is also need for a special "PSP Skin" that will be used for communicating with the PSP client. For example, "index.vibe" could be blank really. What it needs are script pages that's used for getting data from the server. For example a "get_folders.vibe" that simply (using the vibe script language) loops and outputs the folders within a requested folder, and "get_files.vibe" does the same for the files.

The PSP skin simply then requests "get_folders.vibe?folder=mymusic" and it receives all the folders as the response

folder1
folder2
myfolder4
mysupermusic
mymixedalbums
folder3

.. no html formatting is needed or anything, the PSP client then simply translates all this to a GUI of it's own and displayes it however works best.

The GUI part shouldn't be much more difficult than that. The nice part with this is also that if the Vibe Script Language gets minor changes (which certainly will happen in the future), the only part that needs to be modified is the PSP skin on the vibe server side. The PSP client can stay as it is.

Anyways, that was just my idea on how I'd do it (I've been thinking about creating a Java client for this myself and this was how I planned to do it). The only thing you have to check out is that you need to make sure that you can stream the music using the LUA player. I'm pretty sure it wont be a problem, but it's a good thing to check it out before doing the GUI part, or you'll just end up with a nice GUI solution, but no way to actually get the music playing )

Ahwell, just ask if you want to brainstorm ideas or if you need any help, otherwise I'll shut up D

Amish

21-07-2006 23:26:38

OK thanks ill take a look at the dev package, and chek it out.

Amish

22-07-2006 16:51:51

Sitt. Bascically i need to know how to return the XML list of songs. And hmm some sort of authentication.

I start with that for now.

Amish

22-07-2006 18:39:00

Poo. Lua wont play or stream mp3 files. Now the only way to do it is code somethign in C which i cant do (

siit

23-07-2006 02:10:03

doh ( damn, there must be a good solution for this. creating mp3 playing functionality alone for the PSP from the scratch is a huge piece of work and I'm not sure if it's worth it. whenever it's done I'm sure there will be a lot of better solutions availible for the PSP that would make it possible to implement it with Vibe Streamer.. I guess the best way now is to keep our eyes open and look around for more solutions, there's gotta be one out there..

Amish

09-08-2006 13:46:01

But post up the fla anyways. I wanna chamge some things on it.

nakti

01-11-2008 18:14:46

its not so hard to fix the fla for the player