/** * Set the video width */ protected function set_width() { switch ($this->retrieve_method) { case 'oembed': parent::set_width(); break; case 'rss': if (preg_match('`<media:player url=.+?<iframe.+?" width="([0-9]+)"`', $this->decoded_response, $match)) { $this->vid['width'] = $match[1]; } break; } }