##// END OF EJS Templates
Changed decode line: base64 can only produce ASCII characters
sukisuki -
Show More
@@ -877,7 +877,7 b' class Video(DisplayObject):'
877 output = """<video controls>
877 output = """<video controls>
878 <source src="data:{0};base64,{1}" type="{0}">
878 <source src="data:{0};base64,{1}" type="{0}">
879 Your browser does not support the video tag.
879 Your browser does not support the video tag.
880 </video>""".format(mimetype, video_encoded.decode('utf-8'))
880 </video>""".format(mimetype, video_encoded.decode('ASCII'))
881 return output
881 return output
882
882
883 def reload(self):
883 def reload(self):
General Comments 0
You need to be logged in to leave comments. Login now