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(java.lang.String title, java.util.Map<java.lang.String,java.lang.String> metadata)
          Invoked when the radio transmits additional metadata.
 void opened(java.lang.String name, java.lang.String genre, boolean hasMetaint, java.util.Map<java.lang.String,java.lang.String> metadata)
          The stream was opened and the SHOUTcast metadata was read.
 

Method Detail

opened

void opened(java.lang.String name,
            java.lang.String genre,
            boolean hasMetaint,
            java.util.Map<java.lang.String,java.lang.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(java.lang.String title,
                      java.util.Map<java.lang.String,java.lang.String> metadata)
Invoked when the radio transmits additional metadata.

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


Copyright © 2007-2009. All Rights Reserved.