Video shortcode, option are not rendered

You haven’t assign for $atts. So suprised that the poster can work correctly.

function video_custom($atts)
{
  extract(shortcode_atts(array(
    'option' => '',
    'poster' => '',
    'src' => '',
    'type' => '',
  ), $atts));
  return '<div class="d-flex justify-content-center"><video class="wp-video" ' . $option . ' poster="' . $poster . '"><source src="' . $src . '" type="video/' . $type . '" /></video></div>';
}

add_shortcode('video_custom', 'video_custom');