You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same source with multiple mime-types confuses web browsers, and a webbrowser could pick the last
Maybe try
$minortype = pathinfo($data, PATHINFO_EXTENSION);
$minortype = ($minortype == "ogv") ? "ogg" : $minortype;
$tag['content'] = "<video width='768' height='auto' style='max-width: 100%' controls><source src='{$data}' type='video/{$minortype}'/>Your browser does not support the video tag</video>"
Using the filename to detect the mime-type is flimsy, but better than what's currently used. Real mime-type detecting requires downloading the first ~4kB of the file and scrutinizing the bytes, and even then it's not guaranteed (some file formats put their catalog info at the tail-end of the file... smh).
The text was updated successfully, but these errors were encountered:
forum/Sources/Subs.php, lines 1629-1635:
Same source with multiple mime-types confuses web browsers, and a webbrowser could pick the last
Maybe try
Using the filename to detect the mime-type is flimsy, but better than what's currently used. Real mime-type detecting requires downloading the first ~4kB of the file and scrutinizing the bytes, and even then it's not guaranteed (some file formats put their catalog info at the tail-end of the file... smh).
The text was updated successfully, but these errors were encountered: