Skip to content

Commit

Permalink
Revert "Add MIME type to video <source> tag (#1992)"
Browse files Browse the repository at this point in the history
This reverts commit e60fd82.
  • Loading branch information
rhukster committed May 15, 2018
1 parent 12b0a83 commit 8980b78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions system/src/Grav/Common/Page/Medium/VideoMedium.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ class VideoMedium extends Medium
protected function sourceParsedownElement(array $attributes, $reset = true)
{
$location = $this->url($reset);
$path = parse_url($location, PHP_URL_PATH);
$extension = pathinfo($path, PATHINFO_EXTENSION);
$mimeType = \Grav\Common\Utils::getMimeByExtension($extension);

return [
'name' => 'video',
'text' => '<source src="' . $location . '" type="' . $mimeType . '">Your browser does not support the video tag.',
'text' => '<source src="' . $location . '">Your browser does not support the video tag.',
'attributes' => $attributes
];
}
Expand Down

0 comments on commit 8980b78

Please sign in to comment.