Update app.py
Browse files
app.py
CHANGED
|
@@ -1,39 +1,3 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
|
| 4 |
-
st.markdown(
|
| 5 |
-
"""
|
| 6 |
-
<html lang="en">
|
| 7 |
-
<head>
|
| 8 |
-
<meta charset="UTF-8">
|
| 9 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 10 |
-
<style>
|
| 11 |
-
body {
|
| 12 |
-
margin: 0;
|
| 13 |
-
padding: 0;
|
| 14 |
-
overflow: hidden;
|
| 15 |
-
}
|
| 16 |
-
video {
|
| 17 |
-
position: fixed;
|
| 18 |
-
top: 50%;
|
| 19 |
-
left: 50%;
|
| 20 |
-
transform: translate(-50%, -50%);
|
| 21 |
-
min-width: 100%;
|
| 22 |
-
min-height: 100%;
|
| 23 |
-
width: auto;
|
| 24 |
-
height: auto;
|
| 25 |
-
z-index: -1;
|
| 26 |
-
}
|
| 27 |
-
</style>
|
| 28 |
-
<title>Fullscreen Video Example</title>
|
| 29 |
-
</head>
|
| 30 |
-
<body>
|
| 31 |
-
<video autoplay loop muted playsinline>
|
| 32 |
-
<source src="universe.mp4" type="video/mp4">
|
| 33 |
-
Your browser does not support the video tag.
|
| 34 |
-
</video>
|
| 35 |
-
</body>
|
| 36 |
-
</html>
|
| 37 |
-
""",
|
| 38 |
-
unsafe_allow_html=True
|
| 39 |
-
)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
st.video("universe.mp4", format="video/mp4", start_time = 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|