Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计通过

xiaopai-player-control小牌播放器控制

Agent Skill

xiaopai-player-control 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,950

周安装

338

GitHub Stars

1

下载量

2,785
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:xiaopai-player-control(小牌播放器控制)
来源仓库:https://github.com/kuangxinyi/xiaopai-player-control
安装命令:
openclaw skills install xiaopai-player-control
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install xiaopai-player-control

简介

小牌播放器控制用于局域网内媒体播放器的远程操控,适合视频点播与播放状态管理。

  • 适用于在 Xia 设备上播放视频、调节音量或发送遥控指令的场景。
  • 通过 HTTP/TCP 协议实现播放暂停、进度跳转与状态查询,支持多设备联动。
  • 安装命令:openclaw skills install xiaopai-player-control,需确认网络连通性与设备 IP。
  • 涉及外设控制时应区分测试环境与生产环境,防止误操作影响其他服务。

SKILL.md

name
xiaopai-player-control
version
1.1.0
license
MIT-0
description
Control XiaoPai media player over LAN via HTTP/TCP. Use when asked to play videos, send remote-control keys, adjust volume, or query playback status on a XiaoPai player.

XiaoPai Player Control

Control a XiaoPai (小湃) media player on the local network through its TCP/IP protocol.

Prerequisites

  • The player and this machine must be on the same LAN.
  • The player's PlayerSupportApp service must be running (auto-starts on boot).
  • You need the player's IP address. Use auto-discovery (below) or ask the user.

Discover Player

The player registers an mDNS service (_xiaopai._tcp) on the LAN. Use any of these methods to find it without knowing the IP:

Linux/macOS:

# Browse for players (Bonjour)
dns-sd -B _xiaopai._tcp .

# Or with Avahi
avahi-browse -r _xiaopai._tcp

# Resolve a found service to get IP and port
dns-sd -L "<serviceName>" _xiaopai._tcp .

Windows:

# Requires Bonjour SDK or iTunes installed
dns-sd -B _xiaopai._tcp .

Python (cross-platform):

python3 -c "
from zeroconf import ServiceBrowser, Zeroconf, ServiceStateChange
import time

def on_change(zc, type_, name, state_change):
    if state_change is ServiceStateChange.Added:
        info = zc.get_service_info(type_, name)
        if info:
            from ipaddress import ip_address
            ip = ip_address(info.addresses[0])
            print(f'{info.server} -> {ip}:{info.port}  tcp_port={info.properties.get(b\"tcp_port\",b\"\").decode()}')

zc = Zeroconf()
ServiceBrowser(zc, '_xiaopai._tcp.local.', handlers=[on_change])
time.sleep(3)
zc.close()
"

Using the helper script:

xiaopai-ctl.sh discover

The discovered service includes:

  • port (9050): HTTP control port
  • TXT tcp_port (9051): TCP status port
  • TXT mac: Device MAC address

Available Operations

1. Send Remote-Control Key

Send any remote-control button press to the player.

curl "http://{IP}:9050/xiaopai/sendkey?keycode={KEYCODE}"

Response:

  • Success: {"code":0,"msg":"success"}
  • Unknown key: {"code":1,"msg":"unknown keycode"}

Supported keycodes (3-character uppercase):

CategoryKeycodesDescription
PowerPOW OFFPower toggle / Power off
NumbersNU0-NU9Number keys 0-9
NavigationNUP NDN NLT NRT SELUp / Down / Left / Right / OK
MenuOSD RET HOM SET MNU TOPMenu / Back / Home / Settings / PopMenu / TopMenu
VolumeVUP VDN MUTVolume Up / Volume Down / Mute
PlaybackPLA PAU PLU STPPlay-Pause toggle / Pause / Play / Stop
SeekFWD REVFast Forward / Rewind
TrackPRE NXTPrevious / Next
InfoINF DEL DOTInfo / Delete / Dot
AudioAUD SUB RPTAudio Track / Subtitle / Repeat
ColorRED GRE YEL BLURed / Green / Yellow / Blue
NavigateMOV MUS FILMovie page / Music page / File page
DACDAC DON DOFDAC switch / DAC on / DAC off
SystemRBT RES SCRReboot / Resolution / Screenshot

2. Play Video by File Path or URL

curl "http://{IP}:9050/xiaopai/play?videopath={URL_ENCODED_PATH}"
  • videopath: file path or URL of the video, must be URL-encoded.
  • Success: {"code":0,"msg":"success"}

Example:

curl "http://192.168.1.100:9050/xiaopai/play?videopath=http%3A%2F%2Fexample.com%2Fmovie.mp4"

3. Play Video by Name (Search Library)

curl "http://{IP}:9050/xiaopai/play?videoname={URL_ENCODED_NAME}"
  • videoname: movie/video name (Chinese or English), must be URL-encoded.
  • The player searches its local library; if a match is found, playback starts immediately.
  • Success: {"code":0,"msg":"success"}

Example:

# Play "战狼" (Wolf Warriors)
curl "http://192.168.1.100:9050/xiaopai/play?videoname=%E6%88%98%E7%8B%BC"

4. Query Player Status (TCP)

Connect to TCP port 9051 to receive real-time player state.

# One-shot status query (timeout after 2 seconds)
echo "" | nc -w 2 {IP} 9051

Response JSON:

{
  "code": 0,
  "msg": "success",
  "deviceName": "XiaoPai Player",
  "mac": "AA:BB:CC:DD:EE:FF",
  "ipAddress": "192.168.1.100",
  "playStatus": 1,
  "playType": 1
}

Field reference:

FieldValues
playStatus-1 = Stopped, 1 = Playing, 2 = Paused
playType1 = Video, 2 = Music

The TCP connection stays open; the player pushes updated JSON whenever playback state changes.

Common Workflows

Play a movie by name

curl "http://{IP}:9050/xiaopai/play?videoname={URL_ENCODED_NAME}"

Pause / Resume playback

curl "http://{IP}:9050/xiaopai/sendkey?keycode=PLA"

Adjust volume up

curl "http://{IP}:9050/xiaopai/sendkey?keycode=VUP"

Navigate home screen

curl "http://{IP}:9050/xiaopai/sendkey?keycode=HOM"

Check if something is playing, then stop it

STATUS=$(echo "" | nc -w 2 {IP} 9051)
# Parse playStatus from JSON; if playing, send stop
curl "http://{IP}:9050/xiaopai/sendkey?keycode=STP"

Guidelines

  • Always URL-encode Chinese characters and special characters in videopath and videoname parameters.
  • Use PLA to toggle play/pause. Use PLU for explicit play, PAU for explicit pause.
  • RBT will reboot the device — confirm with the user before sending.
  • The player responds to HTTP within milliseconds; no polling or retry is needed.
  • If the user doesn't know the player IP, use mDNS discovery (dns-sd -B _xiaopai._tcp . or the discover command) to find it automatically.
  • For rapid key sequences (e.g., navigating menus), add a short delay (~500ms) between commands.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70%
按下载量换算1,950

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills