UnityRenderStreaming icon indicating copy to clipboard operation
UnityRenderStreaming copied to clipboard

[BUG]: How to avoid the problem of signal disconnection when the network environment is relatively poor

Open dfStars opened this issue 2 years ago • 2 comments

Package version

3.1.0-exp.7

Environment

* OS:Windows10
* Unity version:Unity 2021.3
* Graphics API:DirectX11
* Browser:Google Chrome version 116.0.5845.111

Steps To Reproduce

  1. Set VideoSourceType in VideoStreamSender to Screen;
  2. Set DepthBuffer in VideoStreamSender to At least 24 bits depth;
  3. Set Anti-aliasing in VideoStreamSender to 8 samples;
  4. Set StreamingSize in VideoStreamSender to 1920, 1080;
  5. Set Framerate in VideoStreamSender to 60;
  6. Set Bitrate in VideoStreamSender to 15000, 15000;
  7. Package output as Windows 64-bit .exe program;

Current Behavior

The network environment is 20M bandwidth, and the normal network speed in the LAN environment is 1-2mb, but the network will fluctuate, and the network speed in the network fluctuation is less than 1mb, or even only a dozen kb or tens of kb. In this network environment, a black screen will appear on the web screen, that is, the signal is disconnected.

Expected Behavior

How to not affect the clarity of the picture when the network environment is poor. It is acceptable to freeze the picture but avoid black screen.

Anything else?

No response

dfStars avatar Aug 28 '23 03:08 dfStars

@dfStars OK, let me check.

memo: URS-628

karasusan avatar Aug 29 '23 02:08 karasusan

We implemented a workaround and pause the video element when the bandwith is lower than a defined minumum value. This is not perfect but it prevents black frames during the stream.

chr33z avatar Oct 09 '23 11:10 chr33z