HOW to implement the widget to show the current artist-track name? tried & failed & desperate
  • Hi
    I am a newbie to airtime and I currently use airtime pro on the web server. I enabled Icecast Vorbis Metadata in stream setting in preferences. I also looked at other discussions in here to understand how the metadata works or better I say how I can pull the details of current artist and track name. I am using jPlayer 2.4.0 and Airtime Pro starter package from Airtime and I'm streaming on Icecast.
    what I am in doubt is that:
    A) Does this feature work on .MP3 format?
    B) is it possible to show the current artist-trackname like other online radio stations that running on the web?
    C) help would be much appreciate if someone could guide me how to use this discussion " https://github.com/sourcefabric/Airtime/commit/ee64f7edf8dc937f6b37657264dde027fec72388 " because this is exactly what I want but I don't know how to implement it as my knowledge is limited in this area :(
    D) I also looked at this discussion " https://wiki.sourcefabric.org/display/CC/Frontend+Widgets#FrontendWidgets-Current/Nextshowwidget " but this is more for showing the title of current show rather than the current song/track

    A million thanks in advance 
  • 4 Comments sorted by
  • Vote Up1Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    Hi danielll,

    A) Yes

    B) Yes. You can pull this from icecast. check http://yourdomain:icecastport (f.e. http://localhost:8000) for stream details. This doesn't work If DJs are connected via Master- or Showsource. But there are workarounds.

    C) install widgets http://en.flossmanuals.net/airtime-en-2-3/exporting-the-schedule/
    and adopt widgets/css/airtime-widgets.css according your github-link.
    This means you should delete/uncomment red marked lines and add green marked lines.

    D) see B)

    cheers
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Hi Hoerich
    thanks for your quick respond,much appreciate it .
    regarding B) section of my question is not working on mine,I shall explain more in details in below.
    I wanted to check the stream details by icecast port as exactly as you mentioned but giving back with 'Not Found' error and tried different posts like " http://forum.sourcefabric.org/discussion/14631/simple-way-to-show-currently-playing-title-from-icecast/p1 " but it still giving me the same error so I can NOT pull the data out. I also enabled 'allow the remote website to access' in preference section of airtime account but still giving back the same error. the complete error that I receive is:
    '

    Not Found

    The requested URL /index.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    Apache Server at afjar.com Port 80 '
     
    OR 
    sometimes it give back with error:
    'this webpage is not available'

    so I am not sure what does that mean?
    thanks a lot


    Post edited by danielll at 2013-09-17 19:35:17
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    I must admit this is not my area of expertise...

    this didn't help for you? http://code.google.com/p/icecast-now-playing-script/
    airtime.pro or is it about a local installation?

    cheers
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    Hi,

    widget is not a php page (your error is a call to a php page)

    but an html page with a jquery call and css