1 | <?php |
||
8 | class Oembed |
||
9 | { |
||
10 | public $oembed; |
||
11 | public $utility; |
||
12 | |||
13 | public $vimeo = [ |
||
14 | 'api', 'autopause', 'autoplay', 'byline', 'color', 'height', 'loop', 'player_id', |
||
15 | 'portrait', 'title', 'width', |
||
16 | ]; |
||
17 | |||
18 | public $youtube = [ |
||
19 | 'autohide', 'autoplay', 'cc_load_policy', 'color', 'controls', 'disablekb', 'enablejsapi', |
||
20 | 'end', 'fs', 'height', 'hl', 'iv_load_policy', 'list', 'listType', 'loop', 'modestbranding', |
||
21 | 'origin', 'playerapiid', 'playlist', 'playsinline', 'rel', 'showinfo', 'start', 'theme', |
||
22 | 'width', |
||
23 | ]; |
||
24 | |||
25 | public function __construct( Utility $utility ) |
||
30 | |||
31 | public function request( $url, $args = '' ) |
||
41 | |||
42 | protected function domLoad( $html ) |
||
48 | |||
49 | protected function modifyRequest( $request, $args ) |
||
66 | |||
67 | protected function modifyYoutubeRequest( $request, array $args ) |
||
87 | } |
||
88 |