Comments (21)
@fotiDim You need to change ip
parameter to 127.0.0.1
(and reload the page) because you forwarded port to your localhost.
from ws-scrcpy.
Hi. Please try latest version from master
branch, I pushed some changes.
from ws-scrcpy.
Hi. Please try latest version from
master
branch, I pushed some changes.
Hi @drauggres master, I'd using the latest branch. but the device screen still not display on my web page..
npm version is 6.13.4
nodejs version is 8.17.0
Do I need to provide other info?
from ws-scrcpy.
Do you still have: error: failed to start server
after npm start
?
from ws-scrcpy.
Do you still have:
error: failed to start server
afternpm start
?
Hi @drauggres master,
No, the error was fix after I using the latest branch!
Currently, another issue is that my web page did not display my mobile device screen..
from ws-scrcpy.
Can you verify that the ip
parameter in the stream link contains correct IP address of the device and that device is available via that IP address from the place where you run browser?
from ws-scrcpy.
Hi @drauggres master,
Yes, the device IP is the same as stream link, and the device and browser are in the same network.
The URL as below:
http://10.44.147.108:8000/#!showFps=true&action=stream&udid=MY_DEVICE_UDID&decoder=native&ip=10.44.147.25&port=8886
from ws-scrcpy.
I am having the same issue. I am trying with the emulator and I did run adb forward tcp:8886 tcp:8886
from ws-scrcpy.
@pigass0512 It possible that there are some network issues or problem with scrcpy-server.
- Connect device to your PC (it should be visible in the output of
adb devices
) - Run
adb forward tcp:8886 tcp:8886
- Open
stream
link - Change
ip
parameter to127.0.0.1
- Reload the page
Have you tried to use original scrcpy with this device? Does it work?
from ws-scrcpy.
@pigass0512 It possible that there are some network issues or problem with scrcpy-server.
- Connect device to your PC (it should be visible in the output of
adb devices
)- Run
adb forward tcp:8886 tcp:8886
- Open
stream
link- Change
ip
parameter to127.0.0.1
- Reload the page
Have you tried to use original scrcpy with this device? Does it work?
The method doesn't seems work to me..the mobile still not display on my web page..
Is the URL correct? http://10.44.147.108:8000/#!showFps=true&action=stream&udid=MY_DEVICE_UDID&decoder=native&ip=127.0.0.1&port=8886
I also tried the original scrcpy with the device, and it works!
from ws-scrcpy.
The URL looks like correct. Do you have the same problem with other decoders?
from ws-scrcpy.
The URL looks like correct. Do you have the same problem with other decoders?
Yes, I had try all decode method, and got the same problem.
from ws-scrcpy.
@drauggres your suggestion did the trick for me. Is there any way to automate this?
from ws-scrcpy.
@pigass0512 Sorry, I'm out of ideas.
@fotiDim Looks like someone already working on this.
from ws-scrcpy.
@drauggres okay..thanks for your help..does npm and nodejs version will have impact with building service?
Hi @fotiDim, what's your npm and nodejs version? Can you provide your info to me, please?
from ws-scrcpy.
fotidim@Foti-rMBP ~ % npm --version
6.14.4
fotidim@Foti-rMBP ~ % node --version
v10.20.1
from ws-scrcpy.
No, npm and node are not related to this problem.
All communications on "stream" page (except, of course, static files) are between your browser and WebSocket server integrated in scrcpy. You should see websocket
connection in "DevTools".
from ws-scrcpy.
@drauggres It's very strange that I can run old version(0.1.0) successfully, but after I clone latest branch then I can not run the service anymore...lol
from ws-scrcpy.
New version is incompatible with previous, but they both use the same port (8886).
It's possible that you have runnig old server on the device, but new client.
Try to reboot the device, or manually kill app_process
.
from ws-scrcpy.
@drauggres After I reboot my device, it works!!!!!! You really do me a favor!!!!! Thanks!
from ws-scrcpy.
I'm glad we solved this.
from ws-scrcpy.
Related Issues (20)
- Not able to use remotelly HOT 1
- rotation HOT 3
- Embedding in a project
- error while setting up HOT 2
- Error when pull files from sdcard folder in "list files" HOT 4
- The service crashed because of an error HOT 2
- REQUEST HELP - With spread action from one to multiple devices
- "createSetClipboardCommand" HOT 2
- issues with Android 14 HOT 8
- 这么传文件啊,就只有浏览器打开adb怎么连接 HOT 2
- unable to start project HOT 4
- TS2344: Type 'TE' does not satisfy the constraint 'EventMap'.
- Not able to use Remotely HOT 1
- Not be able to start app
- [StreamReceiver]. WS closed unexpectedly after a while HOT 1
- Cannot display adb connected devices HOT 1
- can't configure stream HOT 6
- Firefox exhibits lag when using player=mse (H264 Converter)
- can not restart device scrcpy server via adb wifi connection
- Issue with Android 14 display in pixel device HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-scrcpy.