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

App doesn't work on sdk versions > 29 #17

Closed
wsogithub opened this issue Jan 4, 2023 · 5 comments
Closed

App doesn't work on sdk versions > 29 #17

wsogithub opened this issue Jan 4, 2023 · 5 comments

Comments

@wsogithub
Copy link

Setup:

  • Chrome on Windows
  • USB webcam
  • S21 Ultra running Android 12
  • compileSdkVersion 30
  • npm version 8.19.2

I run the signaling server first, then launch and start the app, then open the browser. The browser cam opens and the app's cam runs, but the stream does not start on the respective devices. The browser's console prints:

Attempted to create or join room foo
main.js:121 Getting user media with constraints Object
main.js:59 Message from server: Received request to create or join room foo
main.js:59 Message from server: Room foo now has 0 client(s)
main.js:59 Message from server: Client ID MfqG6Zhr2mE2HLgJAAAA created room foo
main.js:39 Created room foo
main.js:108 Adding local stream.
main.js:65 Client sending message: got user media
main.js:130 >>>>>>> maybeStart() false MediaStream false
main.js:59 Message from server: Client said: got user media
:3000/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found)

@djsamseng
Copy link
Contributor

Failing to load the favicon is just noise. Likely the issue is found from the logs on the android device. This might help too #15 (comment)

Try starting the android app before opening the link in Chrome. If that doesn’t work feel free to post the Android Studio logs and I can take a look

@wsogithub
Copy link
Author

Yeah I've been starting the app before the browser, killing the processes each time.

Logcat doesn't show that CompleteActivity is logging anything (set on verbose) so it appears that the client isn't connecting at all. The url I've set the app is http://my-pc-ip:3000

@wsogithub
Copy link
Author

The app has all of the requested permissions as well

@wsogithub
Copy link
Author

Interesting, so the app works fine when compileSdkVersion is <29. There are no errors in logcat when I set it to 30, so it might be some socket security changes with those versions of android.

@wsogithub wsogithub changed the title Failed to load resource error App doesn't work on sdk versions > 29 Jan 4, 2023
@wsogithub
Copy link
Author

Found the issue, it's related to security changes in android pie as discussed here: pchab/AndroidRTC#189

these changes fix the issue.

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

2 participants