/**
  * Create Flowplayer Playlist HTML Output
  *
  * Retrieves a media files and settings to display a video.
  *
  * @since    1.3.0
  *
  * @param    array $atts Shortcode attributes
  */
 private static function playlist_output($atts)
 {
     $playlist_id = $atts['playlist'];
     $playlist_options = get_option('playlist_' . absint($playlist_id));
     // Check if old id is being used in the shortcode
     if (!$playlist_options && function_exists('wp_get_split_term')) {
         $new_term_id = wp_get_split_term(absint($playlist_id), 'playlist');
         $playlist_options = get_option('playlist_' . absint($new_term_id));
         if ($playlist_options) {
             $playlist_id = $new_term_id;
         }
     }
     $atts = Flowplayer5_Playlist::get_videos_by_id($playlist_id);
     if (!$atts) {
         return;
     }
     if (!$playlist_options) {
         $playlist_options['fp5-select-skin'] = 'minimalist';
     }
     ob_start();
     require 'views/partials/playlist.php';
     $html = ob_get_clean();
     return $html;
 }
 public function get_video_meta($video_ids)
 {
     if (isset($this->video_post_meta)) {
         return;
     }
     if (empty($video_ids)) {
         return;
     }
     $video_meta = array();
     foreach ($video_ids as $key => $value) {
         // Check that it is a single video and not a playlist
         if ('id' . $value === $key) {
             $video_meta[$key] = get_post_meta($value);
             $video_meta[$key]['id'] = $value;
         }
         if ('playlist' . $value === $key) {
             $video_meta = array_merge($video_meta, Flowplayer5_Playlist::get_videos_meta_by_id($value));
         }
     }
     $this->video_post_meta = $video_meta;
 }