01-02-2019 11:54 PM
HI Team
How to render Self view/Preview when the remote is not joined the call. Self-view displays or frame size changed event is only called when remote end joins the call in android.
Is there a way to achieve this?
Regards,
Gautam
01-03-2019 12:54 AM
Hi Gautam,
For an android client application, please refer the advanced developer guide. Below is the link for that.
On page 52 of this guide you will find Video Views and Preview Views. Under this section you can find information about the method setPreviewView which is used for self preview/local preview.
I hope this is what you are looking for.
Regards,
Sumit
01-03-2019 01:00 AM
HI Sumit
Thanks for your reply.
We are doing the same thing, however self view view is visible whenever remote end joins the call, We want self view to visible irrespective of whether the remote end joins the call or not.
Regards,
Gautam
01-03-2019 01:17 AM
Hi Gautam,
Please make sure you are using setPreviewView method inside the OnSessionStarted callback. If you are using this inside onCreate, try to use it under OnSessionStarted and let us know the results.
Regards,
Sumit
01-03-2019 04:45 AM
HI Sumit,
I tried setting the preview as per your suggestion on OnSessionStarted method , but still i do not see preview/Self View.
onFrameSizeChanged event is not at all called .
Can you suggest any other alternative?
Regards,
Gautam
01-04-2019 02:57 AM
Hi Gautam,
Hope you are doing good!
If you want to add a preview window (a window which displays the video which is being sent to the other endpoint) before a call is established, you can call the UC.phone.setPreviewElement function. An appropriate time to do this is in the UC.onInitialised callback:
UC.onInitialised = function() {
UC.phone.setPreviewElement(document.getElementById('local')); };
Above thing is mentioned on the page no. 14 of Advanced_Developers_Guide.pdf, once try this, it might help you.
Regards,
Nisha
01-04-2019 03:48 AM
HI Nisha,
is this solution for android?
I don't see any onInitialised method for android also setPreviewElement method.
Regards,
Gautam
01-04-2019 04:33 AM
Hi Gautam,
My bad that was for different platform, could you please share your piece of code to get to know how you are defining setPreviewView method?
Regards,
Nisha
01-04-2019 05:53 AM
HI Nisha
Please find my code below
@Override
public void onSurfaceRenderingStarted(VideoSurface videoSurface) {
Log.d(TAG, "in onSurfaceRenderingStarted");
if (videoSurface == localVideoSurface) {
this.mediaManager.setPreviewView(videoSurface);
}
}
};
01-08-2019 01:55 AM
Hi Team,
Can anyone please provide the solution? Stuck with this issue
Regards,
Gautam
01-16-2019 02:12 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide