Forum » Development Discussion

flash player and java player

 
  • 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

    Edytowane przez edudesouza dnia 15 X 2005, 14:09
  • 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)
  • 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.

    Edytowane przez edudesouza dnia 24 X 2005, 12:01
    • ronoc pisze...
    • Użytkownik
    • 18 XII 2005, 13:59

    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
  • 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 pisze...
    • Alumni
    • 14 IV 2006, 21:24

    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.

  • Hello Russ, you are right, we talked about it at IRC, so we are now focus on stream last.fm with j2me.

    • zebany pisze...
    • Użytkownik
    • 16 IV 2006, 23:02
    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.

  • 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 pisze...
    • Użytkownik
    • 22 IV 2008, 19:47
    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 pisze...
    • Użytkownik
    • 12 VI 2008, 9:00
    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 pisze...
    • Użytkownik
    • 6 VII 2008, 13:01
    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

    • jotjot42 pisze...
    • Użytkownik
    • 8 III 2010, 11:19
    hey guys, i wonder if yuo are still working on this project. i downloaded some "lastfmobile" client, but it didn't work out... login was succesfull but after starting the playback there was nothing? i have only some experience with java (none with j2me) but i would like to support you in any kind ;)
    btw: i can't reach the website -.-
    greets
    jotjot42

Anonimowi użytkownicy nie mogą wysyłać wiadomości. Zaloguj się lub utwórz konto, aby móc wysyłać wiadomości na forum.