フォーラム » Development Discussion

flash player and java player

 
    • edudesouza の発言...
    • ユーザー
    • 2005年 10月 14日 00:12

    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

    編集者:edudesouza, 2005年 10月 15日 23:09
    • lotrgamemast の発言...
    • ユーザー
    • 2005年 10月 22日 23:30
    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 の発言...
    • ユーザー
    • 2005年 10月 24日 21:00
    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.

    編集者:edudesouza, 2005年 10月 24日 21:01
    • ronoc の発言...
    • ユーザー
    • 2005年 12月 18日 22: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
    • edudesouza の発言...
    • ユーザー
    • 2006年 04月 15日 01:29
    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 の発言...
    • Alumni
    • 2006年 04月 15日 06: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.

    • edudesouza の発言...
    • ユーザー
    • 2006年 04月 17日 05:04
    Hello Russ, you are right, we talked about it at IRC, so we are now focus on stream last.fm with j2me.

    • zebany の発言...
    • ユーザー
    • 2006年 04月 17日 08: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.

    • thomasold の発言...
    • ユーザー
    • 2007年 02月 27日 09:29
    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 の発言...
    • ユーザー
    • 2008年 04月 23日 04: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 の発言...
    • ユーザー
    • 2008年 06月 12日 18: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 の発言...
    • ユーザー
    • 2008年 07月 6日 22: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 の発言...
    • ユーザー
    • 2010年 03月 8日 20: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

匿名でのメッセージ投稿はできません。フォーラムへの投稿はログインするかアカウントを作成してから行ってください。