---
name: php186-skill-17276
description: "在主机上本地播放音频/视频"
---

# Media Player

## Media Player

 

Play audio/video locally on the host using mpv. Supports local files and remote URLs.

 

## Commands

 

```
# Play a local file or URL
media-player play "song.mp3"
media-player play "https://example.com/stream.m3u8"

# Pause playback
media-player pause

# Stop playback
media-player stop
```

 

## Install

 

```
sudo dnf install mpv
```
