[jitsi-dev] Creating an overlay for a video


#1

Hello,

I'm trying to draw something onto the video feed of a SIP video call in
order to highlight or point out some objects, but I'm unable to figure out a
way to draw on top of the video.

I've tried to use a GlassPane which should be on top of the whole frame.
Though when I'm drawing something only the video is still in front of it.

Furthermore, I've tried to use a LayeredPane to layer another Panel ontop of
the video which also failed.

Do you know another way to create an overlay for the video in Jitsi?

Thanks in advance and best regards,

Stefan

···

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


#2

I’m trying to draw something onto the video feed of a SIP video call in order
to highlight or point out some objects, but I’m unable to figure out a way to
draw on top of the video.

I’ve tried to use a GlassPane which should be on top of the whole frame.
Though when I’m drawing something only the video is still in front of it.

Furthermore, I’ve tried to use a LayeredPane to layer another Panel ontop of
the video which also failed.

You can't really put anything on top of the video pane as it is a native component.

Do you know another way to create an overlay for the video in Jitsi?

Try using the Java2DRenderer instead of the JAWTRenderer (you can enable it in libjitsi/src/org/jitsi/impl/neomedia/device/DeviceConfiguration.java). This is a simple Swing component and you can interfere with the drawing at the Grapchis (Java2D) level.

Thanks in advance and best regards,

Stefan

Ingo