2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for elements with media attributes
|
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
interface Playable {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Data
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param string $data
|
|
|
|
* Media Url
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setData($data);
|
|
|
|
|
|
|
|
/**
|
2013-12-31 02:55:19 +01:00
|
|
|
* Set Play
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param bool $play
|
|
|
|
* If the Control should start playing automatically
|
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
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param bool $looping
|
|
|
|
* If the Control should playback looping
|
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
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param bool $music
|
|
|
|
* If the Control is Background Music
|
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
|
|
|
*
|
2013-12-31 02:55:19 +01:00
|
|
|
* @param float $volume
|
|
|
|
* Control Volume
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
|
|
|
public function setVolume($volume);
|
|
|
|
}
|