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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...