summaryrefslogtreecommitdiffstats
path: root/lib/class
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 22:17:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 22:17:13 +0000
commitf89098d3ac6ea2045f34c586d1433ca40e6df9c7 (patch)
treef382e112dae91b392a38671f81c9a798766f1505 /lib/class
parentb1b7998a0f9a6438725fb574e63e27859a6bd2e6 (diff)
downloadampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.tar.gz
ampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.tar.bz2
ampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.zip
few more tweaks to localplay, added in the mpd table creation mojo, just need to finish install and then build the interface
Diffstat (limited to 'lib/class')
-rw-r--r--lib/class/localplay.class.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php
index d9d19841..d2611609 100644
--- a/lib/class/localplay.class.php
+++ b/lib/class/localplay.class.php
@@ -58,6 +58,22 @@ class Localplay {
} // _get_info
/**
+ * player_loaded
+ * This returns true / false if the player load
+ * failed / worked
+ */
+ public function player_loaded() {
+
+ if (is_object($this->_player)) {
+ return true;
+ }
+ else {
+ return false;
+ }
+
+ } // player_loaded
+
+ /**
* format
* This makes the localplay/plugin information
* human readable