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

No Audio/Video on Android client #4

Closed
Ponsen opened this issue Apr 29, 2014 · 14 comments
Closed

No Audio/Video on Android client #4

Ponsen opened this issue Apr 29, 2014 · 14 comments

Comments

@Ponsen
Copy link

Ponsen commented Apr 29, 2014

Hi!

First of all: Nice project! But I have a little problem getting it running properly. The Problem is, that I cannot receive any video or audio data on the Android client, while Browser to Browser is working fine. But the strange thing is, that the Client is sending A/V data just fine.

Any suggestions?

PS: I've tried running nodejs version 0.8 and 0.10 with no difference. The problem persists on different Android devices with version 4.0.3, 4.0.4, 4.2.2 and 4.4.2.

Thank you very much in advance!!

@pchab
Copy link
Owner

pchab commented Apr 29, 2014

Hi!

Thank you for your interest in my project !
Is that Android to Browser ? How are you opening the stream from the
Android ? Have you modified the HOST IP to where your nodejs server is
deployed (line 19 in RtcActivity.java) ?

You should use the link provided by the android client (when it prompts you
to send a message) and not click the android_test link otherwise you won't
have the video from the browser.

I know that the behavior of AndroidRTC can be confusing as it is unlike the
ProjectRTC client. I'll try to find the time to change it.

Pierre

PS: don't forget to star the project if you like it !

On Tue, Apr 29, 2014 at 10:02 AM, Ponsen notifications@github.com wrote:

Hi!

First of all: Nice project! But I have a little problem getting it running
properly. The Problem is, that I cannot receive any video or audio data on
the Android client, while Browser to Browser is working fine. But the
strange thing is, that the Client is sending A/V data just fine.

Any suggestions?

PS: I've tried running nodejs version 0.8 and 0.10 with no difference. The
problem persists on different Android devices with version 4.0.3, 4.0.4,
4.2.2 and 4.4.2.

Thank you very much in advance!!


Reply to this email directly or view it on GitHubhttps://github.com//issues/4
.

@Ponsen
Copy link
Author

Ponsen commented Apr 29, 2014

Thanks for your fast anwser!
Yes, Android to Browser (Chrome/Chromium, latest stable build) isn't working. Browser to Browser is working just fine.
What do you mean by opening the stream? I'm just using your recources as they are. Including the server and client.
Yes, the IP is modified and i can see the the picture of the Android client in the browser but not the other way around.
Yes, I changed the link to a fixed "room url". maybe that was the mistake. I'll take a look at it.

PS: You deserve a star, so you got it^^
PPS: In WebRtcClient.java at method getVideoCapturer you should implement a fallback, when camerafacing = "front" is not available, so it uses the back. just a suggestion^^

Edit: Using the provided room from the server did the trick. is there any way to have a fixed room url that works?

@pchab
Copy link
Owner

pchab commented Apr 29, 2014

What I mean is : do you go to http://:/ then open
android_test or do you go to http://:/ ? the
latter should start a 2-way video chat whereas the former will only do a
1-way.

On Tue, Apr 29, 2014 at 10:32 AM, Ponsen notifications@github.com wrote:

Thanks for your fast anwser!
Yes, Android to Browser (Chrome/Chromium, latest stable build) isn't
working. Browser to Browser is working just fine.
What do you mean by opening the stream? I'm just using your recources as
they are. Including the server and client.
Yes, the IP is modified and i can see the the picture of the Android
client in the browser but not the other way around.
Yes, I changed the link to a fixed "room url". maybe that was the mistake.
I'll take a look at it.

PS: You deserve a star, so you got it^^
PPS: In WebRtcClient.java at method getVideoCapturer you should implement
a fallback, when camerafacing = "front" is not available, so it uses the
back. just a suggestion^^


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-41652611
.

@Ponsen
Copy link
Author

Ponsen commented Apr 29, 2014

I tested it through:
It's working 2 way when i click on the link, provided and sent from android (http://:/).
It's only working 1 way working, when I'm already at http://:/ and click on "android_test".
Is this a server setting? it would be nice if i would work, when i click on the device and a 2 way channel is created.

@pchab
Copy link
Owner

pchab commented Apr 29, 2014

Yes it is the intended behavior. Basically, this project is supposed to be a broadcasting app (1 to many) and not a videoconf app (N to N).

@Ponsen
Copy link
Author

Ponsen commented Apr 29, 2014

Alright. Thank you so much!

@pchab pchab closed this as completed Apr 29, 2014
@saisukeerth
Copy link

Hi pchab!

Thanx for this good project,whenever i compile rtc application its launched properly but its not showing anything on my android device (like blank screen),i have given correct ip where my node is running,seeking your help for running properly on mydevice

Thank you very much in advance!

@pchab
Copy link
Owner

pchab commented Apr 30, 2014

Hi !

Can you try going to :3000 in your android browser and tell me
what's happening ?

On Wed, Apr 30, 2014 at 8:14 AM, saisukeerth notifications@github.comwrote:

Hi pchab!

Thanx for this good project,whenever i compile rtc application its
launched properly but its not showing anything on my android device (like
blank screen),i have given correct ip where my node is running,seeking your
help for running properly on mydevice

Thank you very much in advance!

Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-41764093
.

@saisukeerth
Copy link

Hi!

Thanks for your Quick response.its working fine in android browser what my problem is i have to check it from android application what you have provided with out using my device browser.My job is to create a native application in android using webrtc api's but i didnt find any webrtc api's for android,plzzz help me on this.

Thanks in advance!

@pchab
Copy link
Owner

pchab commented Apr 30, 2014

I've added a log in webRtcClient. Could you run it and send me the log at pierre@chabardes.net ?

@saisukeerth
Copy link

Ya sure

@saisukeerth
Copy link

Log.d(TAG, "WebRtcClient creation."); i think this is the log you have added in webRtcClient right,if so its not showing anything when application is running

@pchab
Copy link
Owner

pchab commented Apr 30, 2014

No. Pull the latest version.

On Wed, Apr 30, 2014 at 9:32 AM, saisukeerth notifications@github.comwrote:

Log.d(TAG, "WebRtcClient creation."); i think this is the log you have
added in webRtcClient right,if so its not showing anything when application
is running


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-41768288
.

@CNSHCP
Copy link

CNSHCP commented Sep 22, 2015

Hi I am trying to use AndroidRTC in my application for video/audio calls but facing some issues. I have attached the screenshot of console log cat containing errors.
screenshot from 2015-09-22 15 55 21

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