Make SurfaceViewRenderer of org.webrtc package, draggable around the screen Android

104 views
Skip to first unread message

Xenofon Karidis

unread,
May 11, 2021, 4:04:43 AM5/11/21
to discuss-webrtc
I am developing a video call application in Android using webRTC dependency

implementation "org.webrtc:google-webrtc:1.0.32006"

In order to display the local participant camera preview i use the SurfaceViewRenderer view that the webRTC library offers <org.webrtc.SurfaceViewRenderer />

However, what i want to achieve is to make that view draggable around the screen, just like all the other known chats are doing (Whatsapp, Messenger, Signal etc)

I have tried several ways but nothing seems to work. 
Is there any advice or a sample of how to make a SurfaceViewRenderer draggable on the screen?

Thank you

Reply all
Reply to author
Forward
0 new messages