tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.9k stars 2.6k forks source link

[bug] Can show video streams transcoded from RTSP to WebRTC protocol in browser, but not in desktop app. #10311

Open Wycliffe-Kim opened 4 months ago

Wycliffe-Kim commented 4 months ago

Describe the bug

Hello! I'm developing video viewer which is streamed through webrtc_proxy, which is the server that receive rtsp stream, parse rtp packets, and stream those packets to tauri frontend(generated by create-tauri-app with react ts template) with webrtc protocol.

In this environment, I found that if I show this page using browser(i.e. http://localhost:1420), is is worked well, but if I execute it using tauri frontend(i.e. desktop webview), it is not..

I have checked streaming raw packets using wireshark, and I can see that udp packets streamed by webrtc_proxy are streamed well.

The directory structure is: image

Can I get some help? Thanks!

Reproduction

No response

Expected behavior

Can show WebRTC video stream in desktop app.

Full tauri info output

sudo yarn tauri info
yarn run v1.22.22
$ tauri info

[✔] Environment
    - OS: Mac OS 14.5.0 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.12.2
    - yarn: 1.22.22
    - npm: 10.7.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.24
    - tauri-build [RUST]: 2.0.0-beta.19
    - wry [RUST]: 0.41.0
    - tao [RUST]: 0.28.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.15
    - @tauri-apps/cli [NPM]: 2.0.0-beta.22

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

FabianLars commented 4 months ago

When you say you tested it in a browser, did you also test it in Safari? Safari is the browser closest to Tauri's webview.