Open clone1018 opened 2 years ago
Slight error on watching ingest1
stream from combo1
:
janus[66953]: [2022-06-21 12:47:23.805] [info] New request watch
janus[66953]: [2022-06-21 12:47:23.805] [info] Request to watch channel 16791
janus[66953]: terminate called after throwing an instance of 'std::runtime_error'
janus[66953]: what(): Unexpected service connection type - expected EdgeNodeServiceConnection.
Seems to be fully functional now, but would appreciate feedback on a better way of handling the switch between interacting with the EdgeNodeServiceConnection (if using a relayed stream) vs XServiceConnection (if streaming directly to the Standalone node).
Getting back to this now, if I remember correctly there's a single remaining bug:
Viewer opens stream, combo server adds them to the pendingViewerSessions, then a new stream connects.... How do I differentiate between a new stream from an ingest, and a new stream from a user directly.
Will need to think on this tomorrow.
Essentially what this allows for is a node to act within an orchestrator network as both an ingest & edge. Serving up video directly from itself, and proxying it from other nodes as required. Working on one server as a proof of concept, but would appreciate a logic review!
Currently a test server is available at:
do-nyc3-combo1.kjfk.live.glimesh.tv
. You can easily stream to it and watch on Glimesh.tv and test edge functionality by using https://glimesh.github.io/janus-ftl-player/ and your favorite channel_id.Checklist
combo1
stream fromedge1
while configured asstandalone
combo1
stream fromcombo1
while configured asstandalone
ingest1
stream fromcombo1
while configured asstandalone