Support Canvas Publish Without Camera Input Source #7536
rahul78275
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Community members
Currently, the Ant Media sample code for publishing canvas streams assumes the presence of a camera input source (navigator.mediaDevices.getUserMedia).
My use case requires publishing multiple videos combined in a single HTML canvas to the Ant Media Server — without relying on a physical camera input.
Current workaround:
I made these changes and it works
While initializing the WebrtcAdaptor, pass the canvas stream directly in WebRTCAdaptor's localStream.
In navigatorUserMedia method in media_manager.js return the localStream
Has anyone in the community already implemented something similar — i.e., publishing a canvas or composited multi-video stream to Ant Media without using a camera source?
If yes, could you please share your approach or any reference code snippets?
Beta Was this translation helpful? Give feedback.
All reactions