LongTail Video." ); define("JW_SETUP_EDIT_PLAYERS", "Optional: This section allows you to create custom players. It is possible to configure flashvars, skins and plugins." ); define("JW_LICENSED", "To obtain a licensed player, please purchase a license from LongTail Video." ); /** * Responsible for the display of the Player management page. * @file Class definition of PlayerState. * @see AdminState */ class PlayerState extends AdminState { /** * @see AdminState::__construct() * @param $player * @param string $post_values * @return \PlayerState */ public function __construct($player, $post_values = "") { parent::__construct($player, $post_values); } /** * @see AdminState::getID() * @return string */ public static function getID() { return "player"; } /** * @see AdminState::getNextState() * @return \BasicState */ public function getNextState() { LongTailFramework::setConfig($this->current_player); return new BasicState($this->current_player, $this->current_post_values); } /** * @see AdminState::getPreviousState() */ public function getPreviousState() { echo "This shouldn't be called"; } /** * @see AdminState::getCancelState() */ public function getCancelState() { echo "This shouldn't be called"; } /** * @see AdminState::getSaveState() */ public function getSaveState() { echo "This shouldn't be called"; } /** * @see AdminState::render() */ public function render() { $players = LongTailFramework::getConfigs(); if (!$players) $this->infoMessage("If you wish to create custom players please make sure the " . JWPLAYER_FILES_DIR . "/configs/" . " directory exists and is writable. This directory is necessary for creating custom players. " . JW_FILE_PERMISSIONS)?>