2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Interface for Elements with Media Attributes
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen
|
2014-04-13 18:21:40 +02:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
interface Playable {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Data
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param string $data Media Url
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setData($data);
|
|
|
|
|
2014-01-19 19:30:21 +01:00
|
|
|
/**
|
|
|
|
* Set Data Id to use from the Dico
|
|
|
|
*
|
|
|
|
* @param string $dataId
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2014-01-19 19:30:21 +01:00
|
|
|
*/
|
|
|
|
public function setDataId($dataId);
|
|
|
|
|
2013-11-25 00:02:07 +01:00
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Play
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param bool $play Whether the Control should start playing automatically
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setPlay($play);
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Looping
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param bool $looping Whether the Control should play looping
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setLooping($looping);
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Music
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param bool $music Whether the Control represents Background Music
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setMusic($music);
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Volume
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-01-12 00:51:46 +01:00
|
|
|
* @param float $volume Media Volume
|
2014-01-21 20:30:40 +01:00
|
|
|
* @return \FML\Types\Playable
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setVolume($volume);
|
|
|
|
}
|