| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM\Stub; |
| 7 |
|
| 8 |
use Exception; |
| 9 |
use Wikimedia\IDLeDOM\AudioTrackList; |
| 10 |
use Wikimedia\IDLeDOM\TextTrackList; |
| 11 |
use Wikimedia\IDLeDOM\TimeRanges; |
| 12 |
use Wikimedia\IDLeDOM\VideoTrackList; |
| 13 |
|
| 14 |
trait HTMLMediaElement { |
| 15 |
// use \Wikimedia\IDLeDOM\Stub\CrossOrigin; |
| 16 |
|
| 17 |
// Underscore is used to avoid conflicts with DOM-reserved names |
| 18 |
// phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
| 19 |
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
| 20 |
|
| 21 |
/** |
| 22 |
* @return Exception |
| 23 |
*/ |
| 24 |
abstract protected function _unimplemented(): Exception; |
| 25 |
|
| 26 |
// phpcs:enable |
| 27 |
|
| 28 |
/** |
| 29 |
* @return string |
| 30 |
*/ |
| 31 |
public function getSrc(): string { |
| 32 |
throw self::_unimplemented(); |
| 33 |
} |
| 34 |
|
| 35 |
/** |
| 36 |
* @param string $val |
| 37 |
*/ |
| 38 |
public function setSrc( string $val ): void { |
| 39 |
throw self::_unimplemented(); |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* @return string |
| 44 |
*/ |
| 45 |
public function getCurrentSrc(): string { |
| 46 |
throw self::_unimplemented(); |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* @return int |
| 51 |
*/ |
| 52 |
public function getNetworkState(): int { |
| 53 |
throw self::_unimplemented(); |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* @return TimeRanges |
| 58 |
*/ |
| 59 |
public function getBuffered() { |
| 60 |
throw self::_unimplemented(); |
| 61 |
} |
| 62 |
|
| 63 |
/** |
| 64 |
* @return void |
| 65 |
*/ |
| 66 |
public function load(): void { |
| 67 |
throw self::_unimplemented(); |
| 68 |
} |
| 69 |
|
| 70 |
/** |
| 71 |
* @return int |
| 72 |
*/ |
| 73 |
public function getReadyState(): int { |
| 74 |
throw self::_unimplemented(); |
| 75 |
} |
| 76 |
|
| 77 |
/** |
| 78 |
* @return bool |
| 79 |
*/ |
| 80 |
public function getSeeking(): bool { |
| 81 |
throw self::_unimplemented(); |
| 82 |
} |
| 83 |
|
| 84 |
/** |
| 85 |
* @return float |
| 86 |
*/ |
| 87 |
public function getCurrentTime(): float { |
| 88 |
throw self::_unimplemented(); |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* @param float $val |
| 93 |
*/ |
| 94 |
public function setCurrentTime( float $val ): void { |
| 95 |
throw self::_unimplemented(); |
| 96 |
} |
| 97 |
|
| 98 |
/** |
| 99 |
* @return float |
| 100 |
*/ |
| 101 |
public function getDuration(): float { |
| 102 |
throw self::_unimplemented(); |
| 103 |
} |
| 104 |
|
| 105 |
/** |
| 106 |
* @return bool |
| 107 |
*/ |
| 108 |
public function getPaused(): bool { |
| 109 |
throw self::_unimplemented(); |
| 110 |
} |
| 111 |
|
| 112 |
/** |
| 113 |
* @return float |
| 114 |
*/ |
| 115 |
public function getDefaultPlaybackRate(): float { |
| 116 |
throw self::_unimplemented(); |
| 117 |
} |
| 118 |
|
| 119 |
/** |
| 120 |
* @param float $val |
| 121 |
*/ |
| 122 |
public function setDefaultPlaybackRate( float $val ): void { |
| 123 |
throw self::_unimplemented(); |
| 124 |
} |
| 125 |
|
| 126 |
/** |
| 127 |
* @return float |
| 128 |
*/ |
| 129 |
public function getPlaybackRate(): float { |
| 130 |
throw self::_unimplemented(); |
| 131 |
} |
| 132 |
|
| 133 |
/** |
| 134 |
* @param float $val |
| 135 |
*/ |
| 136 |
public function setPlaybackRate( float $val ): void { |
| 137 |
throw self::_unimplemented(); |
| 138 |
} |
| 139 |
|
| 140 |
/** |
| 141 |
* @return TimeRanges |
| 142 |
*/ |
| 143 |
public function getPlayed() { |
| 144 |
throw self::_unimplemented(); |
| 145 |
} |
| 146 |
|
| 147 |
/** |
| 148 |
* @return TimeRanges |
| 149 |
*/ |
| 150 |
public function getSeekable() { |
| 151 |
throw self::_unimplemented(); |
| 152 |
} |
| 153 |
|
| 154 |
/** |
| 155 |
* @return bool |
| 156 |
*/ |
| 157 |
public function getEnded(): bool { |
| 158 |
throw self::_unimplemented(); |
| 159 |
} |
| 160 |
|
| 161 |
/** |
| 162 |
* @return void |
| 163 |
*/ |
| 164 |
public function pause(): void { |
| 165 |
throw self::_unimplemented(); |
| 166 |
} |
| 167 |
|
| 168 |
/** |
| 169 |
* @return float |
| 170 |
*/ |
| 171 |
public function getVolume(): float { |
| 172 |
throw self::_unimplemented(); |
| 173 |
} |
| 174 |
|
| 175 |
/** |
| 176 |
* @param float $val |
| 177 |
*/ |
| 178 |
public function setVolume( float $val ): void { |
| 179 |
throw self::_unimplemented(); |
| 180 |
} |
| 181 |
|
| 182 |
/** |
| 183 |
* @return bool |
| 184 |
*/ |
| 185 |
public function getMuted(): bool { |
| 186 |
throw self::_unimplemented(); |
| 187 |
} |
| 188 |
|
| 189 |
/** |
| 190 |
* @param bool $val |
| 191 |
*/ |
| 192 |
public function setMuted( bool $val ): void { |
| 193 |
throw self::_unimplemented(); |
| 194 |
} |
| 195 |
|
| 196 |
/** |
| 197 |
* @return AudioTrackList |
| 198 |
*/ |
| 199 |
public function getAudioTracks() { |
| 200 |
throw self::_unimplemented(); |
| 201 |
} |
| 202 |
|
| 203 |
/** |
| 204 |
* @return VideoTrackList |
| 205 |
*/ |
| 206 |
public function getVideoTracks() { |
| 207 |
throw self::_unimplemented(); |
| 208 |
} |
| 209 |
|
| 210 |
/** |
| 211 |
* @return TextTrackList |
| 212 |
*/ |
| 213 |
public function getTextTracks() { |
| 214 |
throw self::_unimplemented(); |
| 215 |
} |
| 216 |
|
| 217 |
} |