GleasonK / android-webrtc-api

Pubnub Android WebRTC Signaling Library
http://kevingleason.me/android-webrtc-api/
MIT License
122 stars 68 forks source link

Broadcast - Android-webrtc-api #3

Open edwin-pixel-1 opened 8 years ago

edwin-pixel-1 commented 8 years ago

Hi @GleasonK, Currently I'm working on a Broadcasting app. I started from this post, I am using your libraries to do the broadcaster side, but now I'm working in the viewer side, so I would like to know how I should setup the connection to use one-way or how the user would only see and listen the broadcasting without use your own camera and mic.

Thanks!! :)

edwin-pixel-1 commented 8 years ago

I've been reading the code of your example. But I have some questions.

  1. The method pnRTCClient.connect("User2_channel"); is needed in both sides of a call(Peer to peer)? What happen if only one side call it?

2.The method pnRTCClient.listenOn("myChannel") , is used to listen calls. Is through this method that the user start to get the remote video and messages?

I've been trying to do the below setup to do video-broadcast:

But, it doesn't works!!!

I would appreciate any suggestion!! Thanks! :)