sk.baka.ambient.stream.shoutcast
Interface IShoutcastListener

All Known Implementing Classes:
PlayerService

public interface IShoutcastListener

Listens for SHOUTcast reader events.

Author:
Martin Vysny

Method Summary
 void metadataReceived(String title, Map<String,String> metadata)
          Invoked when the radio transmits additional metadata.
 void opened(String name, String genre, boolean hasMetaint, Map<String,String> metadata)
          The stream was opened and the SHOUTcast metadata was read.
 

Method Detail

opened

void opened(String name,
            String genre,
            boolean hasMetaint,
            Map<String,String> metadata)
The stream was opened and the SHOUTcast metadata was read.

Parameters:
name - the name of the radio station
genre - the genre
hasMetaint - if true then the radio stream will periodically transmit metadata (and the metadataReceived(String, Map) will be invoked).
metadata - all present metadata.

metadataReceived

void metadataReceived(String title,
                      Map<String,String> metadata)
Invoked when the radio transmits additional metadata.

Parameters:
title - the 'StreamTitle' metadata
metadata - all metadata


Copyright © 2007-2008. All Rights Reserved.