Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

How to remove the watermark image by addPixelBufferSource? #347

Open
Jasonzn opened this issue Oct 3, 2016 · 4 comments
Open

How to remove the watermark image by addPixelBufferSource? #347

Jasonzn opened this issue Oct 3, 2016 · 4 comments

Comments

@Jasonzn
Copy link

Jasonzn commented Oct 3, 2016

I've tried to add the watermark image with dynamic timestamp label by addPixelBufferSource function. But I need to remove the former image before adding a new image by addPixelBufferSource.

Does anyone know how to do this?

Thank you.

Jason

@Jasonzn
Copy link
Author

Jasonzn commented Oct 3, 2016

The watermark image must be removed because the different image will mix together. So I must remove the old image added by addPixelBufferSource recovery the original camera preview screen.

@miketw2014
Copy link

Any updates on this? Looking for a way to remove the watermark later on during the streaming session.

@Jasonzn
Copy link
Author

Jasonzn commented May 10, 2017 via email

@iHandle
Copy link

iHandle commented Jun 6, 2017

I am so excited to find that you also want to remove a watermark. To do this, I add the belowing function at VCSimpleSession.mm

-(void) removePixelBufferSource {
    m_videoMixer->unregisterSource(m_pixelBufferSource);
}

It really works. However, I have found that sometimes it will crashes at GLESVideoMixer.h . I have no idea how to fix this problem, I hope you will find something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants