Coder Social home page Coder Social logo

mobileboxlab / ios-bash-streaming Goto Github PK

View Code? Open in Web Editor NEW
25.0 7.0 5.0 1.48 MB

iOS screen mirroring in five lines of bash

License: MIT License

Shell 100.00%
ios screenmirror bash bash-scripting websocket mirror screenshot libimobiledevice idevicescreenshot

ios-bash-streaming's Introduction

Bryan


iOS screen mirroring through a socket interface for streaming real time screen capture data out of iOS devices.

Alt Text

Requirements

  1. bash, any recent version should work
  2. Install imagemagick
  3. Install websocketd
  4. Install libimobiledevice
  5. Lightning cable

Getting started

chmod +x smile.sh

Check all available devices:

instruments -s devices

Run the below command to start the service (you need to provide the device id):

websocketd --port=9231 --staticdir=web sh smile.sh DEVICE-ID

Go to http://127.0.0.1:9231/ You will see the connected device.

Share Your Screen with Others

Optionally you can share your screen with others through Serveo that expose the local server to the internet without installation, no signup and free!

Try it! Copy and paste this into your terminal:

ssh -R 80:localhost:9231 serveo.net

The -R option instructs your SSH client to request port forwarding from the server and proxy requests to the specified host and port (usually localhost). A subdomain of serveo.net will be assigned to forward HTTP traffic.

Frequently Asked Questions

Is this for real?

Yes. It’s not big, and it’s not clever but this is a real iOS screen mirroring in five lines of bash.

How do I install it?

You don't install it.

Does it support websockets?

Yes.

Limitations?

Does not do a high framerate.

Does it work on Windows?

Mmm... maybe.

Contribution

Any ideas are welcome. Feel free to submit any issues or pull requests.

PRs Welcome


ios-bash-streaming is developed and maintained by Mobilebox team.

ios-bash-streaming's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-bash-streaming's Issues

Not working

I have problem when Getting Started
In console it will print "WebSocket connection to 'wss://127.0.0.1:9231/' failed:"
I try with iPhone 6s, 14.5, MacOSX 11.3
Please help.

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.