blazor-camera-streamer icon indicating copy to clipboard operation
blazor-camera-streamer copied to clipboard

Partial image data received – full image only transmitted in landscape mode on mobile

Open mnuess opened this issue 5 months ago • 1 comments

Hi, thank you for this great package! I'm currently using it in a Blazor Server app and ran into an issue when streaming camera data from a mobile device.

Problem: When holding the mobile device in portrait mode, only part of the image data seems to be transmitted. The resulting image is cropped or incomplete. However, when I turn the device to landscape orientation, the full image is transmitted correctly.

Expected Behavior: Regardless of device orientation (portrait or landscape), the entire image should be captured and transmitted.

Steps to Reproduce:

  1. Open the camera stream from a mobile device using BlazorCameraStreamer.
  2. Keep the phone in portrait mode.
  3. Capture a frame or observe the streamed image.
  4. Rotate to landscape mode and repeat.
  5. Compare the results – only landscape mode produces a full image.

Environment:

  • Device: Smartphone (Android & iOS)
  • Orientation: Portrait (causes issue), Landscape (works)
  • App type: Blazor Server
  • Package version: 3.0.1

mnuess avatar Jul 19 '25 11:07 mnuess

Hi @mnuess,

I appreciate your thorough information. Unfortunately, I must inform you that I haven't worked on this project for some time (the last commit was two years ago). My motivation has also declined.

However, if I find some time in the coming week, I can take a look at it. Could you also provide me with some screenshots showing the exact issue?

If I'm being honest, I never really tested the library with a Phone and only intended its use for PC webcams. But maybe it's just a simple change in the underlying JavaScript code.

Also, if you're motivated, you can check out the code as well and try to solve it. I'll happily accept your merge requests.

baltermia avatar Jul 22 '25 09:07 baltermia