Gambit Posted February 10, 2021 Share Posted February 10, 2021 Hi all I'm not sure this is possible with Ant but I though I'd ask anyway. Is it possible to insert graphic overlays to a live stream. If you how would I go about building something like this. Thanks Link to comment Share on other sites More sharing options...
0 Selim Emre Posted February 12, 2021 Share Posted February 12, 2021 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: https://stackoverflow.com/questions/62789768/embed-logo-in-antmedia-live-stream-via-canvas https://antmedia.io/how-to-merge-live-stream-and-canvas-in-webrtc-easily/ I hope, I could help you. Best Regards, Selim Link to comment Share on other sites More sharing options...
0 Alex A Posted March 29, 2021 Share Posted March 29, 2021 but those examples use "initWebRTCAdaptor(localStream);" which is not used in any of your example code in /webapps/. so what is the new method of doing canvas broadcast ? Alex. Link to comment Share on other sites More sharing options...
0 Enes Kuluk Posted March 29, 2021 Share Posted March 29, 2021 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 More sharing options...
0 Alex A Posted March 30, 2021 Share Posted March 30, 2021 Ah - that's awesome Enes - that is precisely what I needed - thank you! Link to comment Share on other sites More sharing options...
Question
Gambit
Hi all
Link to comment
Share on other sites
Top Posters For This Question
2
1
1
1
Popular Days
Mar 29
2
Feb 10
1
Feb 12
1
Mar 30
1
Top Posters For This Question
Alex A 2 posts
Selim Emre 1 post
Gambit 1 post
Enes Kuluk 1 post
Popular Days
Mar 29 2021
2 posts
Feb 10 2021
1 post
Feb 12 2021
1 post
Mar 30 2021
1 post
4 answers to this question
Recommended Posts