Petro O. Bochan
Member
I face a weird memory problem when starting/stopping publishing. Every time when i flip the camera, I reinit constraints with appropriate "setDeviceID" value. When not publishing, this reinit works as expected, but as soon as "RTCEAGLVideoView" is used in a "FPWCSApi2Stream", the "RTCEAGLVideoView" is not released. I tried "nil-ing" all possible variables, like "RTCEAGLVideoView", "FPWCSApi2Stream", and even "FPWCSApi2Session" but to no avail. "FPWCSApi2 releaseLocalMedia" works as expected but memory is still not released, circa 40mb every time a stream is published. Is there an extra method of "FPWCSApi2Stream" to release variables?