Forum » Development Discussion

flash player and java player

 
    • edudesouza a dit :...
    • Utilisateur
    • 13 oct. 2005, 15h12m

    flash player and java player

    Hello guys, I´m new to audioscrobbler and my first test will be design a flash player, then a java player for fast.fm radio.

    I already have a flash player for shoutcast, it´s quite simple, look:

    mySound = new Sound();
    mySound.loadSound("http://sc1.liquidviewer.com:9010/";, true);
    mySound.start();

    Did anyone know how to request the streamming from last.fm server?

    Thank´s

    Modifié par edudesouza le 15 oct. 2005, 14h09m
  • http://www.audioscrobbler.net/wiki/Protocol1.1

    That page might help you out. I can only code in PHP so i wouldn't know how it will help you but it should work.

    ONGOING PROJECT! PHP Last.FM API (Download or SVN)
    Online Last.FM Player (Updated version is SVN only currently)
    • edudesouza a dit :...
    • Utilisateur
    • 24 oct. 2005, 12h00m
    Hi, this page (http://www.audioscrobbler.net/wiki/Protocol1.1) show how you send information about your songs to audioscrobller.

    I would like to do a java player to listen audioscrobbler radio, something like the stand alone player avilable in: http://www.last.fm/help/player/

    I would like to do a j2me player, so we´ll listen last.fm in ours mobile phones.

    Thank´s.

    Modifié par edudesouza le 24 oct. 2005, 12h01m
    • ronoc a dit :...
    • Utilisateur
    • 18 déc. 2005, 13h59m

    j2me player

    Hi guys,
    the j2me player should be straight forward on most popular MIDP 2.0 phones. if we use the MMAPI and stream over rtsp this should be pretty straight forward. let me know when you want to try to do this. i have experience with j2me and streaming so i can certainly help out.
    please keep me informed.

    my mail is forward at forwind dot net
    cheers guys,

    Cj
    • edudesouza a dit :...
    • Utilisateur
    • 14 avr. 2006, 16h29m
    Hello Ronoc, we are having huge problems to stream audio/video with j2me, could you help us?

    Fist we are tryng to stream from a Darwin server, them, when we get it, we will try to do it with last.fm

    Please see what we are trying:

    1) Fist test

    Player p;
    VolumeControl vc;
    try {
    p = Manager.createPlayer("rtsp://200.189.73.234:554/audio2.3gp");
    p.realize();
    vc = (VolumeControl) p.getControl("VolumeControl");
    if(vc != null) {
    vc.setLevel(100);
    }
    p.prefetch();
    p.start();
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }
    2) Second test
    Player p;
    VolumeControl vc;
    try {
    p = Manager.createPlayer("rtsp://200.189.73.234:554/audio2.3gp");

    p.prefetch();
    p.start();
    }
    catch (Exception e)
    {
    e.printStackTrace();
    }

    Could you sen me an e-mail edu[at]kwead.com?

    • Russ a dit :...
    • Abonné
    • 14 avr. 2006, 21h24m

    Re: flash player and java player

    Quoth edudesouza:
    mySound = new Sound();
    mySound.loadSound("http://sc1.liquidviewer.com:9010/";, true);
    mySound.start();


    If I'm not entirely mistaken, this will keep all the stream in RAM as long as the sound is playing. Which means that flash will leak memory at a rate of 1MB/minute.

    • edudesouza a dit :...
    • Utilisateur
    • 16 avr. 2006, 20h04m
    Hello Russ, you are right, we talked about it at IRC, so we are now focus on stream last.fm with j2me.

    • zebany a dit :...
    • Utilisateur
    • 16 avr. 2006, 23h02m
    Hi edudesouza,
    In order to play last.fm streams you need to make an http request to ws.audioscrobbler.com with login information and obtain a stream url which is sent in http header format in body. Then you can request that stream. But the stream does not contain any track information (icy metadata). So you need to ask for track info perodically.

    You can reach me at antimon@gmail.com if you need more info on last.fm sreams, i'd like to help as much as i can.

    • thomasold a dit :...
    • Utilisateur
    • 27 fév. 2007, 0h29m
    Did you ever get a J2ME player for last.fm working? If there is still work to do I might be able to help out since I have some J2ME development experience.

    • n1ck0 a dit :...
    • Utilisateur
    • 22 avr. 2008, 19h47m
    Hi,
    here you can find my little J2ME client for last.fm streaming and scrobbling.
    http://build.last.fm/item/367
    http://studenti.ing.unipi.it/~s252017/LastFMobile/
    I'm sorry, actually the homepage is in italian but I have planned to translate it asap.
    The audio reproduction suffers of some skips due
    to J2ME MMAPI implementation; if you know
    a better solution you can modify the source code that is
    publicly available. In that case please notify me via mail:
    luca dot niccolini at gmail dot com

    Cheers.
    Luca

    P.S.
    I've used the protocol described here:
    http://www.lastfm.it/user/dahnielson/journal/2007/08/7/494712/

    • thebazyl a dit :...
    • Utilisateur
    • 12 juin 2008, 9h00m
    Great!
    But when I installed it on my SE k750 it doesn't seem to react to Login button. I entered my account data and pressed LOGIN button but nothing happened.

    • n1ck0 a dit :...
    • Utilisateur
    • 6 jui. 2008, 13h01m
    Despite the Java portability, It seems that an issue exists with J2ME implementation in SE phones. I don't have a SE for testing purposes, if some of you have such a phone and some JAVA knowledge, then sources are available on the website.

    Sorry,
    n1ck0

Les utilisateurs anonymes ne peuvent pas poster de messages. Merci de vous connecter ou de créer un compte pour pouvoir intervenir dans les forums.