tauri-apps/tauri

[bug] Videos loading 200 bytes at a time

FinnDore opened this issue · 1 comments

Describe the bug

It appears that when using a video element videos load anywhere from 100bytes at a time to 100kb at a time. I cant imagine this is intended as it's creating thousands of requests in the network panel.

I've also noticed that when pausing videos that there's a chance that the player just becomes blank.

Reproduction

minimal repro: https://github.com/FinnDore/tauri-byte-by-byte. Do note that you need to change this path to point toward a video before building. https://github.com/FinnDore/tauri-byte-by-byte/blob/main/src/App.tsx#L6

one of the videos I was using to test is: https://www.youtube.com/watch?v=dUIQvqqq-cg

Loading 200bytes at a time

Kapture.2024-07-30.at.17.59.52.mp4

Pausing troubles

Kapture.2024-07-30.at.18.14.35.mp4

Expected behavior

I would expect media to load in bigger chunks. ( but I may be incorrect ovcourse )

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.12.2
    - pnpm: 7.33.5
    - yarn: 1.22.19
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.25
    - tauri-build [RUST]: 2.0.0-beta.19
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - cargo-tauri [RUST]: 1.1.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.16
    - @tauri-apps/cli [NPM]: 2.0.0-beta.23

[-] App
    - build-type: bundle
    - CSP: default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

here im using the tauri 2 beta