tshino/softcam

Default image when there is no input

Opened this issue · 4 comments

Hi,

Is there a way to set a default image when the sender app is not open?

For example, this is what OBS default virtual camera placeholder image is:
image

Thanks for all your hard work.

Unfortunately, there is not currently.
Technically, it should be possible. Let me think about adding such a feature to Softcam.

Thank you for your request!

  • Test with minimum implementation
  • Implement providing a fixed image when no upstream
  • Implement loading an image file
  • Test
  • Update documents

As a first step, I confirmed with a minimum implementation that it's possible! It works.

tshino commented

If a default image is provided to a client app and a valid server becomes available after that, it is required to switch the image to provide to the client from the default image to the image from the server.

I found a big limitation in that scenario.
The client app may not accept changing the dimension of the image because it may check the dimension only once when the connection establishes.
So the dimensions of the default image and the images from the server should be equal. Otherwise, something unexpected can happen.