QtScrcpy icon indicating copy to clipboard operation
QtScrcpy copied to clipboard

MacOS AudioOutput::audio socket error occured

Open BisonLeo opened this issue 1 year ago • 3 comments

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

https://github.com/barry-ran/QtScrcpy/issues/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 avatar May 28 '23 11:05 BisonLeo

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.

BisonLeo avatar May 28 '23 11:05 BisonLeo

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

wenbingzhang avatar Jun 10 '23 01:06 wenbingzhang

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

hocapcm avatar May 11 '24 15:05 hocapcm