Skip to content

Efficient tool to cast local video file from mac to smart devices

Notifications You must be signed in to change notification settings

AndyBoat/awesome-touping

Repository files navigation

Awesome Touping

Boost the joy of your local video to smart TV through AirPlay!

Pick your local video, served as static resource with Content-Range supported, and open Safari automatically.

And after that, you can choose the Airplay button in video controls, to share video among all devices in your local network!

Usage

npm

> npm install -g awesome-touping

or homebrew

> wget https://raw.githubusercontent.com/AndyBoat/awesome-touping/main/awesome-touping.rb
> brew install ./awesome-touping.rb
> awesome-touping -h

awesome-touping <path>

serve local video file with an accessible url in local area network on MacOS. **
Mp4 only now.**

Positionals:
  path  the path of local video file                                    [string]

Options:
  -h, --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -p, --port     Local port to serve from               [number] [default: 9527]

Example

# Serve the example.mp4
>  awesome-touping example.mp4               

# Same as before, serve the example.mp4, but with an explicit command `serve`
> awesome-touping serve example.mp4        

# Serve mp4 in an given port 3000, instead of default port 9527
> awesome-touping serve example.mp4 -p 3000  

Guidance

You are not using Safari

If you are using Chrome or other AirPlay-unavailable browser, you will see this above the video:

Safari-Warning

Please copy the url and open it in Safari.

No Airplay Device Detected

If awesome-touping doesn't find any "AirPlay-able" device, you will see this beneath the video:

NoAirPlaDeviceWarning

Please check your device is working as expected, and is connected with a same network as your mac, which means both are in a same WiFi for most cases.

RoadMap

  • Support custom port and local ip address;
    • custom port
  • Publish as homebrew package [WIP]
    • usable local rb file
  • Support interactive command-line;
  • Support proxy for multiple video, with custom order;
  • Wrap an application on MacOS;

About

Efficient tool to cast local video file from mac to smart devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published