跳到正文
TakoAPI
返回技能列表

media-player

由 xejrax 提供

Media & Streaming
1.8k下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Play audio/video locally on the host.

描述

该技能的功能

Plays audio and video files locally on the host using mpv. Accepts local file paths and remote URLs, including HTTP streams and HLS playlists.

mpv runs without a GUI, making it usable over SSH or in minimal environments where desktop media players are unavailable.

何时使用

  • Playing local MP3 or video files from the terminal
  • Streaming an HLS or online radio URL without opening a browser
  • Quick media preview during a shell session
  • Controlling playback with pause and stop commands from scripts
  • Playing media on a headless or SSH-connected machine

示例工作流

输入

User asks: play https://example.com/stream.m3u8

智能体
  1. 1

    Receive the URL from the user

  2. 2

    Call media-player play with the provided URL

  3. 3

    mpv opens and begins streaming the content

  4. 4

    Confirm playback has started

输出

The HLS stream plays through mpv on the host machine

前置要求

  • mpv media player (install via: sudo dnf install mpv)

安装

clawhub install xejrax/media-player

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接