RoyN, Lorenzo thanks for your responses.
I draw a basic diagram for the setup I want. So, since Janus can do a webRTC connection and stream video and accept data, I want to use it as a webRTC peer. So, in this setup, these steps will be taken;
1) Raspberry Pi connects to Web Server via Websocket (using Janus or libwebsocket or something else).
2) Remote Pc connects to Web Server via Websocket using a browser (javascript).
3) Raspberry Pi(Janus) sends an webRTC offer over Websocket connection to Web Server.
4) Web Server relays that offer to the browser and do other signalling stuff.
5) Raspberry Pi(Janus) and Browser(javascript) connect to each other via WebRTC.
6) Raspi sends camera stream.
7) Browser sends commands over DataChannel.
That's it. I hope I'm clear enough. If not, please ask me for further explanation.
Now, I wanna ask that can I use Janus as a webRTC peer like this? And also can I use Websocket of Janus to connect to Web Server?
Thank you so much.
Hasan