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

MacOS AudioOutput::audio socket error occured #800

Open
BisonLeo opened this issue May 28, 2023 · 3 comments
Open

MacOS AudioOutput::audio socket error occured #800

BisonLeo opened this issue May 28, 2023 · 3 comments

Comments

@BisonLeo
Copy link

It looks like that the the sndcpy.sh could not be run?

#643

AudioOutput::audio state changed: StoppedState

"AudioOutput::" "/bin/bash: sndcpy.sh: No such file or directory\n"

AudioOutput::run sndcpy cost: 33 milliseconds

AudioOutput::audio state changed: IdleState

AudioOutput::audio socket state changed: QAbstractSocket::HostLookupState

AudioOutput::audio socket state changed: QAbstractSocket::ConnectingState

AudioOutput::audio socket state changed: QAbstractSocket::UnconnectedState

AudioOutput::audio socket error occurred: QAbstractSocket::ConnectionRefusedError

AudioOutput::audio socket connect failed
@BisonLeo
Copy link
Author

A temporary solution.

By adding the path to zshrc file

export PATH="/Applications/QtScrcpy.app/Contents/MacOS:$PATH"

and in terminal change to path /Applications/QtScrcpy.app/Contents/MacOS,
run

MacOS % ./sndcpy.sh 
Begin Runing...
Waiting for device ...
Find device 
Request PROJECT_MEDIA permission...
Forward port 28200...
Start sndcpy.apk...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Waiting sndcpy.apk start...
Ready playing...
MacOS %

then audio could be played on mac.

@wenbingzhang
Copy link

A temporary solution.

By adding the path to zshrc file

export PATH="/Applications/QtScrcpy.app/Contents/MacOS:$PATH"

and in terminal change to path /Applications/QtScrcpy.app/Contents/MacOS, run

MacOS % ./sndcpy.sh 
Begin Runing...
Waiting for device ...
Find device 
Request PROJECT_MEDIA permission...
Forward port 28200...
Start sndcpy.apk...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Waiting sndcpy.apk start...
Ready playing...
MacOS %

then audio could be played on mac.

Still no sound

@hocapcm
Copy link

hocapcm commented May 11, 2024

A temporary solution.
By adding the path to zshrc file

export PATH="/Applications/QtScrcpy.app/Contents/MacOS:$PATH"

and in terminal change to path /Applications/QtScrcpy.app/Contents/MacOS, run

MacOS % ./sndcpy.sh 
Begin Runing...
Waiting for device ...
Find device 
Request PROJECT_MEDIA permission...
Forward port 28200...
Start sndcpy.apk...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Waiting sndcpy.apk start...
Ready playing...
MacOS %

then audio could be played on mac.

Still no sound

You need to press "start audio" in qtscrcpy app after that

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

3 participants