Giter Site home page Giter Site logo

Comments (5)

mpromonet avatar mpromonet commented on May 20, 2024

HI,
I think this just need to ask to the webrtc-streamer to join a janus room.
Maybe this could be achieve using javascript calling the webrtc-streamer and use SDP to join the janus room ?
Best Regards,
Michel.

from webrtc-streamer.

saket424 avatar saket424 commented on May 20, 2024

Yes. Currently both webrtc-streamer and janus act as servers. One of them has to be triggered to initiate an offer to the other for the communication to get started. I was planning to begin modifying webrtc-streamer to act as the client and janus the server in this client-server relationship. Was just wondering if you or anyone on this thread has experience with janus video rooms before I embarked on it myself since I am still a relative newbie.

from webrtc-streamer.

saket424 avatar saket424 commented on May 20, 2024

I am going to close this issue. I think I have an idea of how to negotiate creation of a publisher to a janus room and to obtain the janus sdp. Once remote sdp is obtained via Janus api by parsing the json sdp response, this can be treated as the incoming offer and setremotedescription can be called . Subsequently an answer sdp is created and setlocaldescription is set and this triggers establishment of the peerconnection. In addition to negotiation of room using meetecho-janus JavaScript API,
I found two other related and relevant examples in Csharp and android respectively that maybe of interest that browses to this issue

https://github.com/Computician/JanusSharp/blob/master/README.md
https://github.com/Computician/janus-gateway-android/blob/master/README.md

from webrtc-streamer.

mpromonet avatar mpromonet commented on May 20, 2024

Hi,
I implement in an ugly way the negociation between Janus/WebRTC-streamer in janusvideoroom.js.
Then you can ask WebRTC-streamer to join and publish streams to Janus-Gateway video room using :

	var janus = new JanusVideoRoom("https://janus.conf.meetecho.com/janus", 1234);
	janus.connect("rtsp://217.17.220.110/axis-media/media.amp", "norway");

I made this try in Javascript inside the HTTP server of WebRTC-streamer but same stuff could be achieved in any script or langage that can call HTTP requests.
Best Regards,
Michel.

from webrtc-streamer.

saket424 avatar saket424 commented on May 20, 2024

Michel,
I am already using this for the past few days and it seems to work well . Thanks for implementing this powerful new use-case

from webrtc-streamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.