diff options
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 ?> |