-
-
Save anonymous/4a2155e781f1ac484fc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.display import HTML | |
video = open("time.mkv", "rb").read() | |
video_encoded = video.encode("base64") | |
video_tag = '<video autoplay loop controls alt="test" src="data:video_encoded/x-m4v;base64,{0}">'.format(video) | |
HTML(data=video_tag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment