ipcam-view: Can't set background color

I am not able to change the background color of the MjpegView to remove the black borders.

<com.github.niqdev.mjpeg.MjpegSurfaceView
                    android:id="@+id/streamView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:background="#FFFFFF"
                    stream:type="stream_default" />

Is there any magic trick or something like that?

Edit: Okay I was able to do this programmatically after casting the MjpegView into a normal view but then I have the problem that I can use every color instead of Color.transparent. When I try to ((View) streamView).setBackgroundColor(Color.TRANSPARENT); it remains black

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 26 (14 by maintainers)

Most upvoted comments

merged #48 Thanks for your contributions!

Great job! I will hopefully review/merge/release the PR this evening or soon anyway. Thanks

Great, I’ll review and merge your PR later!

I’ve just released version 1.3.0, enjoy!

Hey @niqdev Unfortunately it is no public project, only for my studies. But of course I will share my solution if I find one. Will have a look on it later in the evening. Thanks for your answer!