playlist.php
author Dan
Sun, 23 Mar 2008 20:24:33 -0400
changeset 2 860ba7141641
parent 1 cddc2ba706d6
child 3 e7447a6044ec
permissions -rw-r--r--
Should be nearly finished now - includes volume control, length measurement, and seems pretty stable

<?php

/**
 * Playlist displayer
 *
 * Web control interface script for Amarok
 * Written by Dan Fuhry - 2008
 *
 * This script is in the public domain. Use it for good, not evil.
 */

function amarok_playlist($server)
{
  global $smarty, $theme, $playlist;
  
  $active = dcop_action('playlist', 'getActiveIndex');
  $smarty->assign('theme', $theme);
  $smarty->assign('playlist', $playlist);
  $smarty->assign('active', $active);
  $smarty->assign('scripts', array(
      'ajax.js',
      'domutils.js',
      'volume.js'
    ));
  $smarty->display('playlist.tpl');
}