1 | <?php |
||
10 | class MediaInfo |
||
11 | { |
||
12 | /** |
||
13 | * @var MediaInfoCommandRunner|null |
||
14 | */ |
||
15 | private $mediaInfoCommandRunnerAsync = null; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $configuration = array( |
||
21 | 'command' => null, |
||
22 | ); |
||
23 | |||
24 | /** |
||
25 | * @param $filePath |
||
26 | * @param bool $ignoreUnknownTrackTypes Optional parameter used to skip unknown track types by passing true. The |
||
27 | * default behavior (false) is throw an exception on unknown track types. |
||
28 | * |
||
29 | * @throws \Mhor\MediaInfo\Exception\UnknownTrackTypeException |
||
30 | * |
||
31 | * @return MediaInfoContainer |
||
32 | */ |
||
33 | public function getInfo($filePath, $ignoreUnknownTrackTypes = false) |
||
43 | |||
44 | /** |
||
45 | * Call to start asynchronous process. |
||
46 | * |
||
47 | * Make call to MediaInfo::getInfoWaitAsync() afterwards to received MediaInfoContainer object. |
||
48 | * |
||
49 | * @param $filePath |
||
50 | */ |
||
51 | public function getInfoStartAsync($filePath) |
||
60 | |||
61 | /** |
||
62 | * @param bool $ignoreUnknownTrackTypes Optional parameter used to skip unknown track types by passing true. The |
||
63 | * default behavior (false) is throw an exception on unknown track types. |
||
64 | * |
||
65 | * @throws \Exception If this function is called before getInfoStartAsync() |
||
66 | * @throws \Mhor\MediaInfo\Exception\UnknownTrackTypeException |
||
67 | * |
||
68 | * @return MediaInfoContainer |
||
69 | */ |
||
70 | public function getInfoWaitAsync($ignoreUnknownTrackTypes = false) |
||
84 | |||
85 | /** |
||
86 | * @param string $key |
||
87 | * @param string $value |
||
88 | */ |
||
89 | public function setConfig($key, $value) |
||
99 | } |
||
100 |