drupal 8 get media from file code example
Example: drupal 8 get media image uri
$image_url = $media->field_media_image->entity->getFileUri();
file_create_url($image_url);
$image_url = $media->field_media_image->entity->getFileUri();
file_create_url($image_url);