MCPcopy
hub / github.com/xfangfang/Macast

github.com/xfangfang/Macast @v0.65 sqlite

repository ↗ · DeepWiki ↗ · release v0.65 ↗
232 symbols 676 edges 13 files 87 documented · 38%
README

slogan

Macast

visitor stars downloads plugins pypi aur build mac windows linux

中文说明

A menu bar application using mpv as DLNA Media Renderer. You can push videos, pictures or musics from your mobile phone to your computer.

Installation

  • MacOS || Windows || Debian

Download link: Macast release latest

  • Package manager

shell pip install macast macast-gui # or macast-cli

Please see our wiki for more information(like aur support): #package-manager
Linux users may have problems installing using pip. Two additional libraries that I have modified need to be installed:

shell pip install git+https://github.com/xfangfang/pystray.git pip install git+https://github.com/xfangfang/pyperclip.git

  • Build from source

Please refer to: Macast Development

Usage

  • For ordinary users
    After opening this app, a small icon will appear in the menubar / taskbar / desktop panel, then you can push your media files from a local DLNA client to your computer.

  • For advanced users

  • By loading the Macast-plugins, Macast can support third-party players like IINA and PotPlayer.
    For more information, see: #how-to-use-third-party-player-plug-in
  • You can modify the shortcut keys or configuration of the default mpv player by yourself, see: #how-to-set-personal-configurations-to-mpv

  • For developer
    You can use a few lines of code to add support for other players like IINA and PotPlayer or even add additional features, like downloading media files while playing videos.
    Tutorials and examples are shown in: Macast/wiki/Custom-Renderer.
    Fell free to submit a pull request to Macast-plugins.

FAQ

If you have any questions about this application, please check: Macast/wiki/FAQ.
If this does not solve your problem, please open a new issue to notify us, we are willing to help you solve the problem.

Screenshots

You can copy the video link after the video is casted:
copy_uri

Or select a third-party player plug-in
select_renderer

Relevant links

UPnP™ Device Architecture 1.1

UPnP™ Resources

UPnP™ ContentDirectory:1 service

UPnP™ MediaRenderer:1 device

UPnP™ AVTransport:1 service

UPnP™ RenderingControl:1 service

python-upnp-ssdp-example

Core symbols most depended-on inside this repo

set_state
called by 35
macast/renderer.py
get
called by 27
macast/utils.py
items
called by 20
macast/gui.py
send_command
called by 17
macast_renderer/mpv.py
set
called by 15
macast/utils.py
get_usn
called by 8
macast/utils.py
start
called by 8
macast/macast.py
notification
called by 7
macast/gui.py

Shape

Method 196
Class 27
Function 9

Languages

Python100%

Modules by API surface

macast/renderer.py52 symbols
macast/macast.py51 symbols
macast/gui.py39 symbols
macast_renderer/mpv.py28 symbols
macast/utils.py28 symbols
macast/ssdp.py19 symbols
macast/plugin.py14 symbols
Macast.py1 symbols

For agents

$ claude mcp add Macast \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact