Connection

Launch the App and use the service address shown on screen. The port starts at 9978 and is chosen from 9978 to 9998, taking the first free port.

Connecting from another device

127.0.0.1 refers to the device itself. From a computer or another phone, use the App device's LAN IP and port. The URLs and IPs in the examples are illustrative only.

curl "http://127.0.0.1:9978/device"

Parameters normally go in the query string or an application/x-www-form-urlencoded form, not a JSON body. Encode Chinese text, URLs and JSON strings with --data-urlencode.

/media, /device and directory listings return JSON with a text/plain content type. Handle other responses according to their actual Content-Type.

OK does not mean the action ran

/action returning OK only means the request arrived; unknown commands, missing parameters or the absence of a playback service can all leave the action undone. The endpoints have no generic token check, so use them only on trusted LANs.

Endpoint map

EndpointPurposeChapter
/actionActions, sync, castingActions, Device sync
/remoteWeb playback controlWeb player and remote
/remote/keyRemote key pressesWeb player and remote
/remote/subtitle, /remote/danmakuApply subtitles and danmakuWeb player and remote
/remote/infoConnection statusWeb player and remote
/log/infoLog informationLogs
/mediaPlayback statePlayback state
/deviceDevice infoDevice info
/file/**, /upload, /rename …File managementFile management
/upload/start, /download/start …Resumable transfersResumable transfers
/cacheKey-value cacheKey-value cache
/proxy, /parse, /image, /tvbusProxy and internalProxy and internal

Test tools

curl or any HTTP client works. In PowerShell curl is an alias for Invoke-WebRequest; use curl.exe when you need the real behavior.