Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webrtc-streamer interworking with meetecho-janus-gateway #16

Closed
saket424 opened this issue Jan 27, 2017 · 5 comments
Closed

webrtc-streamer interworking with meetecho-janus-gateway #16

saket424 opened this issue Jan 27, 2017 · 5 comments
Labels

Comments

@saket424
Copy link

Michel,
I opened a thread on the meetcho-janus google group thread
Would appreciate your comments on the modifications needed to make this work as video publisher into a janus room instead of the current usage which is limited to remote access via a browser

https://groups.google.com/forum/#!topic/meetecho-janus/WQB97s4eEDg

Thanks

@mpromonet
Copy link
Owner

mpromonet commented Jan 30, 2017

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.

@saket424
Copy link
Author

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.

@saket424
Copy link
Author

saket424 commented Feb 4, 2017

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

@saket424 saket424 closed this as completed Feb 4, 2017
@mpromonet
Copy link
Owner

mpromonet commented May 8, 2017

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.

@mpromonet mpromonet reopened this May 8, 2017
@saket424
Copy link
Author

saket424 commented May 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants