Make video play on iOS
This commit is contained in:
parent
ed9fb6d23a
commit
95d49daa23
2 changed files with 6 additions and 1 deletions
|
|
@ -165,6 +165,11 @@ impl Drawer {
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
for pixel in image.pixels_mut() {
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<video id="video" autoplay></video>
|
||||
<video id="video" autoplay playsinline></video>
|
||||
<button id="button"><div class="circle"></div></button>
|
||||
<a id="flip" hidden>
|
||||
<svg viewBox="0 0 6 6">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue