Color and transparency modification
By default, SurfaceViewRenderer for displaying video stream has black color, but it can be made transparent if necessary. To do this, the following modules should be imported:
and setZOrderOnTop() and setFormat() methods should be used:
To set SurfaceViewRenderer color, setBackgroundColor() method should be used:
Last frame clearing
When stream playback is finished, last frame still displayed on SurfaceViewRenderer. This frame can be cleared if necessary, then surface will be filled black. To do this, the following modules should be imported:
and release() method should be invoked:
After this method invocation no futher operation with surface is possible.