Exemple #1
0
 /**
  * Determine whether or not the use of the fallback method is needed and set video details
  * to their new values by passing off to the parent method
  */
 protected function put_video_details()
 {
     if (!empty($this->decoded_response->html)) {
         $this->decoded_response->html = stripslashes($this->decoded_response->html);
         if (strpos($this->decoded_response->html, '<div itemprop="video"') === false && preg_match('`<iframe src=([\'"])([^\'"\\s]+)\\1`', $this->decoded_response->html, $match)) {
             $this->use_fallback = true;
             $response = $this->remote_get($match[2]);
             if (is_string($response) && $response !== '' && $response !== 'null') {
                 $this->frame_source = $response;
             }
         }
     }
     parent::put_video_details();
 }
Exemple #2
0
 /**
  * Set video details to their new values (mostly by passing off to the parent method)
  */
 protected function put_video_details()
 {
     $this->get_video_file_data();
     parent::put_video_details();
 }
Exemple #3
0
 /**
  * Set video details to their new values
  */
 protected function put_video_details()
 {
     $this->set_subdomain();
     parent::put_video_details();
 }
Exemple #4
0
 /**
  * Set video details to their new values
  */
 protected function put_video_details()
 {
     // Only save the determined details to the vid array if we're sure it's a video
     $this->set_file_path();
     $this->set_file_url();
     $this->set_attachment_id();
     parent::put_video_details();
 }