Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] How to enable localRenderer, i tried, but not success. #27

Open
liuxue0905 opened this issue Jun 18, 2020 · 0 comments
Open

[HELP] How to enable localRenderer, i tried, but not success. #27

liuxue0905 opened this issue Jun 18, 2020 · 0 comments

Comments

@liuxue0905
Copy link

liuxue0905 commented Jun 18, 2020

I add setLocalRenderer in RTCCall,
setorg.webrtc.SurfaceViewRenderer @+id/localRenderervisibilityvisible

and try:

add blow in RTCCall.handleMediaStream

localRenderer.init(this.sharedContext, null);
upStream.videoTracks.get(0).setEnabled(true);
upStream.videoTracks.get(0).addSink(localRenderer);

or

add blow in RTCCall.createStream

VideoTrack videoTrack = getVideoTrack();
videoTrack.setEnabled(true);
upStream.addTrack(videoTrack);
videoTrack.addSink(localRenderer);

localRenderer did not show any thing.

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

No branches or pull requests

1 participant