summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-10-11 16:22:10 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-10-11 16:22:10 +0000
commite8785ed7554839db296d7b8d8f9a938ed0758d70 (patch)
treec35da56fb805b40f8a1a3b6caafe6e74f75bf1f4 /lib
parent6758b3d6b0fc976a2d01d9318a56a9aa4aad5493 (diff)
downloadampache-e8785ed7554839db296d7b8d8f9a938ed0758d70.tar.gz
ampache-e8785ed7554839db296d7b8d8f9a938ed0758d70.tar.bz2
ampache-e8785ed7554839db296d7b8d8f9a938ed0758d70.zip
added ram playback method, still need to finish fixing preferences before it can be used
Diffstat (limited to 'lib')
-rw-r--r--lib/class/stream.class.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 1da0af29..283e0d32 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -287,6 +287,22 @@ class Stream {
} // create_slim
+
+ /*!
+ @function create_ram
+ @discussion this functions creates a RAM file for use by Real Player
+ */
+ function create_ram() {
+
+ header("Cache-control: public");
+ header("Content-Disposition: filename=playlist.ram");
+ header("Content-Type: audio/x-pn-realaudio ram;");
+ foreach ($this->songs as $song_id) {
+ $song = new Song($song_id);
+ echo "$this->web_path/play/index.php?song=$song_id&uid=$this->user_id&sid=$this->sess&stupidwinamp=." . $song->type . "\n";
+ } // foreach songs
+
+ } // create_ram
} //end of stream class