Jump to content
  • 0

How to insert graphic overlays on live stream


Gambit
 Share

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

Hi Gambit,

I'm assuming you are publishing with WebRTC. Yes, you can add graphic overlay in your stream. We have some docs for this issue. Could you please check below links:

I hope, I could help you.

Best Regards,
Selim

Link to comment
Share on other sites

  • 0

You are correct, you need to add localStream variabla to webRTCAdaptor here: https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/index.html#L446

You need to use localStream = {variable you are going to use} instead of localVideoId.

Like:

function initWebRTCAdaptor(publishImmediately, autoRepublishEnabled)

 

{

 

webRTCAdaptor = new WebRTCAdaptor({

 

websocket_url : websocketURL,

 

mediaConstraints : mediaConstraints,

 

peerconnection_config : pc_config,

 

sdp_constraints : sdpConstraints,

 

localStream : somestream,

 

debug:debug,

 

bandwidth:maxVideoBitrateKbps,

.

.
.

Best Regards,
Enes.

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...