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

EGLContext issue #37

Closed
nourhanadel59 opened this issue Mar 31, 2015 · 17 comments
Closed

EGLContext issue #37

nourhanadel59 opened this issue Mar 31, 2015 · 17 comments

Comments

@nourhanadel59
Copy link

i faced this issue when trying to run the new update of this project :
at org.webrtc.VideoRendererGui.onSurfaceCreated(VideoRendererGui.java:791)
FATAL EXCEPTION: GLThread 16547
The method getEGLContext() is undefined for the type EGLContext
at com.firefly.rtc.RtcActivity.init(RtcActivity.java:97)

client = new WebRtcClient(this, mSocketAddress, params, VideoRendererGui.getEGLContext());
public WebRtcClient(RTCListener listener, String host, PeerConnectionParameters params,EGLContext mEGLcontext);

@pchab
Copy link
Owner

pchab commented Mar 31, 2015

Are you trying to run the project as it is ?

@nourhanadel59
Copy link
Author

now i fix this problem ..
but now when trying to run with my server only appear black screen .. how can i resolve this issue ?

@pchab
Copy link
Owner

pchab commented Mar 31, 2015

see issue#34
If nothing happens when you launch the app (black screen), it means that your client could not connect to the server.

@pchab pchab closed this as completed Mar 31, 2015
@nourhanadel59
Copy link
Author

this is my logcat:
new io instance for "my server url"
Returning key pair
Making certificate for WebRTC
Returning certificate
GC_CONCURRENT freed 1680K, 37% free 9624K/15043K, paused 14ms+10ms, total 147ms

@pchab
Copy link
Owner

pchab commented Mar 31, 2015

Are you using ProjectRTC server or a custom server ?

@nourhanadel59
Copy link
Author

custom server

@pchab
Copy link
Owner

pchab commented Mar 31, 2015

The client is initialised when he receives a message {'id': }
You should look at ProjectRTC to see what message you must implement. Or modify the message handler if you want to change the server side.

@nourhanadel59
Copy link
Author

ammm .. but my server now connected .. right ?

@pchab
Copy link
Owner

pchab commented Mar 31, 2015

I guess. It must handle the signaling part of webrtc.

@nourhanadel59
Copy link
Author

i am download server of this app that called ProjectRTC .. I found the apk of this project but also when try to running it .. just gave me a black screen only !

@pchab
Copy link
Owner

pchab commented Apr 6, 2015

Where did you find that apk ? Previous commit of ProjectRTC had the apk of an old version of androidRTC but I removed it. If you wish, I can put the latest version of androidrtc on the repo, or you can build it with android studio.

@nourhanadel59
Copy link
Author

yes .. can you share it with me please ?

On Mon, Apr 6, 2015 at 2:10 PM, Chabardes notifications@github.com wrote:

Where did you find that apk ? Previous commit of ProjecRTC had the apk of
an old version of androidRTC but I removed it. If you wish, I can put the
latest version of androidrtc on the repo, or you can build it with android
studio.


Reply to this email directly or view it on GitHub
#37 (comment).

@pchab
Copy link
Owner

pchab commented Apr 7, 2015

Ok, but again, this apk will point to my own server. If you want to use yours, you need to clone the git, open it with android studio, edit the host value in strings.xml and build.

@nourhanadel59
Copy link
Author

yes i see .. i am already work on it .. but i want to see working apk ..
i want to ask .. after success connection with server .. what the expected
response i should receive ? .. and from and payload refer to what ?
JSONObject json = argument.getJSONObject(0);
String from = json.getString("from");
String type = json.getString("type");
JSONObject payload = null;
if(!type.equals("init")) {
payload = json.getJSONObject("payload");
}
thanks in advance for your help .

On Tue, Apr 7, 2015 at 9:20 AM, Chabardes notifications@github.com wrote:

Ok, but again, this apk will point to my own server. If you want to use
yours, you need to clone the git, open it with android studio, edit the
host value in strings.xml and build.


Reply to this email directly or view it on GitHub
#37 (comment).

@pchab
Copy link
Owner

pchab commented Apr 9, 2015

Link to the android apk.
After a successful connection, the server sends a "id" type message, the payload contains the id of the connected client.
After that when another client calls, there will be a standard webrtc exchange of message: offer/answer and ICE candidates. The payload will contain the sdp or the candidates.

@Nickx27
Copy link

Nickx27 commented Jun 9, 2015

Hi,
I just tried the project RTC along with the AndroidRTC and it works perfect. I was wondering if we have an option to switch only to audio call(while connected in video call). If there is already a functionality in the existing code, please do let me know.

Thanks

@johnsonzhu
Copy link

I use this demo in one LAN, it works. but it does not work in different LAN with my own turn server(rfc5766-turn-server). why? turn server had allot new relay server for each client. but the client cannot send package to the relay server. Would u mind to tell me how can I use the demo in different LAN?
Thank u so much.

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

No branches or pull requests

4 participants