Giter VIP home page Giter VIP logo

Comments (21)

drauggres avatar drauggres commented on July 26, 2024 1

@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.

drauggres avatar drauggres commented on July 26, 2024

Hi. Please try latest version from master branch, I pushed some changes.

from ws-scrcpy.

pigass0512 avatar pigass0512 commented on July 26, 2024

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.

drauggres avatar drauggres commented on July 26, 2024

Do you still have: error: failed to start server after npm start?

from ws-scrcpy.

pigass0512 avatar pigass0512 commented on July 26, 2024

Do you still have: error: failed to start server after npm 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.

drauggres avatar drauggres commented on July 26, 2024

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.

pigass0512 avatar pigass0512 commented on July 26, 2024

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.

fotiDim avatar fotiDim commented on July 26, 2024

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.

drauggres avatar drauggres commented on July 26, 2024

@pigass0512 It possible that there are some network issues or problem with scrcpy-server.

  1. Connect device to your PC (it should be visible in the output of adb devices)
  2. Run adb forward tcp:8886 tcp:8886
  3. Open stream link
  4. Change ip parameter to 127.0.0.1
  5. Reload the page

Have you tried to use original scrcpy with this device? Does it work?

from ws-scrcpy.

pigass0512 avatar pigass0512 commented on July 26, 2024

@pigass0512 It possible that there are some network issues or problem with scrcpy-server.

  1. Connect device to your PC (it should be visible in the output of adb devices)
  2. Run adb forward tcp:8886 tcp:8886
  3. Open stream link
  4. Change ip parameter to 127.0.0.1
  5. 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.

drauggres avatar drauggres commented on July 26, 2024

The URL looks like correct. Do you have the same problem with other decoders?

from ws-scrcpy.

pigass0512 avatar pigass0512 commented on July 26, 2024

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.

fotiDim avatar fotiDim commented on July 26, 2024

@drauggres your suggestion did the trick for me. Is there any way to automate this?

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

@pigass0512 Sorry, I'm out of ideas.

@fotiDim Looks like someone already working on this.

from ws-scrcpy.

pigass0512 avatar pigass0512 commented on July 26, 2024

@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 avatar fotiDim commented on July 26, 2024

@pigass0512

fotidim@Foti-rMBP ~ % npm --version
6.14.4
fotidim@Foti-rMBP ~ % node --version
v10.20.1

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

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.

pigass0512 avatar pigass0512 commented on July 26, 2024

@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.

drauggres avatar drauggres commented on July 26, 2024

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.

pigass0512 avatar pigass0512 commented on July 26, 2024

@drauggres After I reboot my device, it works!!!!!! You really do me a favor!!!!! Thanks!

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

I'm glad we solved this.

from ws-scrcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.