2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Interface for Elements with media attributes
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-05-20 15:44:45 +02:00
|
|
|
* @author steeffeen <mail@steeffeen.com>
|
2014-04-13 18:21:40 +02:00
|
|
|
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
|
2014-05-18 19:45:50 +02:00
|
|
|
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
interface Playable {
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Set data
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-06-21 03:18:21 +02:00
|
|
|
* @param string $data Media url
|
2014-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setData($data);
|
|
|
|
|
2014-01-19 19:30:21 +01:00
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Set data id to use from Dico
|
2014-05-18 19:45:50 +02:00
|
|
|
*
|
2014-06-21 03:18:21 +02:00
|
|
|
* @param string $dataId Data id
|
2014-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2014-01-19 19:30:21 +01:00
|
|
|
*/
|
|
|
|
public function setDataId($dataId);
|
|
|
|
|
2013-11-25 00:02:07 +01:00
|
|
|
/**
|
2014-06-21 03:18:21 +02: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-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setPlay($play);
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02: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-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setLooping($looping);
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Set music
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-06-21 03:18:21 +02:00
|
|
|
* @param bool $music Whether the Control represents background music
|
2014-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setMusic($music);
|
|
|
|
|
|
|
|
/**
|
2014-06-21 03:18:21 +02:00
|
|
|
* Set volume
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2014-06-21 03:18:21 +02:00
|
|
|
* @param float $volume Media volume
|
2014-07-03 22:34:47 +02:00
|
|
|
* @return static
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setVolume($volume);
|
|
|
|
}
|