diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-21 13:07:00 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2010-03-21 13:07:00 +0000 |
commit | e3300cc53b9d8cbe096f9847b826ed440c8f1fac (patch) | |
tree | 56063c27ba22012eb6008304b4a56929333acd1c /lib/class/stream.class.php | |
parent | 81b874d4066e69dd246a01044e911a15fa10e335 (diff) | |
download | ampache-e3300cc53b9d8cbe096f9847b826ed440c8f1fac.tar.gz ampache-e3300cc53b9d8cbe096f9847b826ed440c8f1fac.tar.bz2 ampache-e3300cc53b9d8cbe096f9847b826ed440c8f1fac.zip |
Resolved #39 - slightly differently then provided patch - Adds attribute hack to keyd_array in xmlclass and video xspf support
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 1b4a7225..97b17e1c 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -426,6 +426,13 @@ class Stream { $xml['track']['album'] = $media->f_album_full; $length = $media->time; break; + case 'video': + $xml['track']['title'] = $media->title; + $xml['track']['creator'] = $media->f_artist_full; + $xml['track']['info'] = Config::get('web_path') . '/browse.php?action=video'; + $xml['track']['image'] = Config::get('web_path') . '/image.php?id=' . $media->id . '&type=video&thumb=3&sid=' . session_id(); + $xml['track']]'meta'] = array('attribute'=>'rel="provider"','value'=>'video'); + break; } // type $xml['track']['location'] = call_user_func(array($type,'play_url'),$media->id); |