fix mimetype again

This commit is contained in:
Antoine Levitt 2019-11-12 19:31:55 +01:00
parent 3db930cb93
commit 94812cde7a

View File

@ -110,7 +110,7 @@ function Base.show(io::IO, ::MIME"text/html", agif::AnimatedGif)
mimetype = ext == "mov" ? "video/quicktime" : "video/mp4" mimetype = ext == "mov" ? "video/quicktime" : "video/mp4"
html = "<video controls><source src=\"data:$mimetype;base64," * html = "<video controls><source src=\"data:$mimetype;base64," *
base64encode(read(agif.filename)) * base64encode(read(agif.filename)) *
"\" type = \"video/$ext\"></video>" "\" type = \"$mimetype\"></video>"
else else
error("Cannot show animation with extension $ext: $agif") error("Cannot show animation with extension $ext: $agif")
end end