diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-28 18:13:48 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-02-28 18:13:48 +0000 |
commit | dbdd96ed1b3b00a850be001f3dbeea3273739a98 (patch) | |
tree | ccd23afffb6a4c2dc185bd6ffc39e13435fc1179 /lib/class/radio.class.php | |
parent | 3a3e0c6a9f72d5031a4025dedcf2360c497c4953 (diff) | |
download | ampache-dbdd96ed1b3b00a850be001f3dbeea3273739a98.tar.gz ampache-dbdd96ed1b3b00a850be001f3dbeea3273739a98.tar.bz2 ampache-dbdd96ed1b3b00a850be001f3dbeea3273739a98.zip |
unify how the stream is constructed and played, this is a major change might be some regressions
Diffstat (limited to 'lib/class/radio.class.php')
-rw-r--r-- | lib/class/radio.class.php | 53 |
1 files changed, 42 insertions, 11 deletions
diff --git a/lib/class/radio.class.php b/lib/class/radio.class.php index ee3cf4aa..4bbd3a51 100644 --- a/lib/class/radio.class.php +++ b/lib/class/radio.class.php @@ -25,7 +25,7 @@ * This handles the internet radio stuff, that is inserted into live_stream * this can include podcasts or what-have-you */ -class Radio extends database_object { +class Radio extends database_object implements media { /* DB based variables */ public $id; @@ -70,16 +70,6 @@ class Radio extends database_object { } // format /** - * get_url - * This returns the URL for this live stream - */ - public function get_url() { - - - - } // get_url - - /** * update * This is a static function that takes a key'd array for input * it depends on a ID element to determine which radio element it @@ -176,6 +166,47 @@ class Radio extends database_object { } // delete + /** + * native_stream + * This is needed by the media interface + */ + public function native_stream() { + + + + } // native_stream + + /** + * play_url + * This is needed by the media interface + */ + public static function play_url($oid,$sid='',$force_http='') { + + $radio = new Radio($oid); + + return $radio->url; + + } // play_url + + /** + * has_flag + * This is needed by the media interface + */ + public function has_flag() { + + + + } // has_flag + + /** + * stream_cmd + * Needed by the media interface + */ + public function stream_cmd() { + + + } // stream_cmd + } //end of radio class ?> |