emilk / emilk/egui

Support motion JPEG

Open
#4,767 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

Describe the bug
I'm trying to use egui::Image::from_uri("http://localhost:1181/stream.mjpg") to show the image stream posted by a local mjpegserver, I can get the image stram through the browser and Postman, but it keeps showing big spinner inside my egui window.

image

My code is:

 Window::new("Stream")
            .id(Id::from(page_id.to_string()))
            .open(is_open)
            .resizable(true)
            .collapsible(true)
            .show(ctx, |ui| {
                install_image_loaders(ctx);
                ui.add(Image::from_uri("http://localhost:1181/stream.mjpg"));
            });

Expected behavior
The window should keeps showing the image stream in real time

Desktop (please complete the following information):

  • OS: Windows 10 x86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Image::from_uri and install_image_loaders with the provided MJPEG URL, then inspect how the image stream is handled when the spinner remains visible. Reproduce the issue using the Windows example and verify completion when the egui window displays the image stream continuously in real time.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.