Make video play on iOS

This commit is contained in:
Joscha 2024-03-29 20:39:21 +01:00
parent ed9fb6d23a
commit 95d49daa23
2 changed files with 6 additions and 1 deletions

View file

@ -165,6 +165,11 @@ impl Drawer {
} }
fn on_photo(&mut self, mut image: RgbaImage, title: String) -> anyhow::Result<()> { fn on_photo(&mut self, mut image: RgbaImage, title: String) -> anyhow::Result<()> {
println!(
"Printing photo {title:?} ({}x{})",
image.width(),
image.height()
);
let mut tree = Tree::<Context>::new(WHITE); let mut tree = Tree::<Context>::new(WHITE);
for pixel in image.pixels_mut() { for pixel in image.pixels_mut() {

View file

@ -147,7 +147,7 @@
</head> </head>
<body> <body>
<video id="video" autoplay></video> <video id="video" autoplay playsinline></video>
<button id="button"><div class="circle"></div></button> <button id="button"><div class="circle"></div></button>
<a id="flip" hidden> <a id="flip" hidden>
<svg viewBox="0 0 6 6"> <svg viewBox="0 0 6 6">