Temasys / skylink-android-sample

Other
16 stars 20 forks source link

Need to display GLSurfaceView as circular #3

Closed khazova closed 4 years ago

khazova commented 8 years ago

Hello,

We need to make circular GLSurfaceView for the self preview, temasys sdk provide GLSurfaceView from its override method "onRemotePeerMediaReceive" of MediaListener interface and its already rendered. so how can i make it circular by overriding it.

Thank you.

bhaumik2712 commented 7 years ago

is there any solution to make GLSurfaceView as circular?

goddino commented 7 years ago

Making the provided SurfaceViewRenderer circular is not part of the SDK support. However, you may try on your own to modify the SurfaceViewRenderer provided to make it circular. One possible reference is as follows: http://stackoverflow.com/questions/21001721/android-creating-a-circular-mask-on-video

Note that a SurfaceViewRenderer is also a SurfaceView.

bhaumik2712 commented 7 years ago

Thanks for the info !