sumitaich1998/jarvisvr / skills/media/control-media-playback
control-media-playback
VerifiedPlay, pause, seek, and adjust audio or video, and react to transport controls. Use for "play some music", "pause", "skip ahead 30 seconds", "turn it up", or "play that video". Triggers: play, pause, resume, stop, skip, seek, rewind, volume, louder, quieter, next track, music, video.
Control Media Playback
Drive a media_player (and, for music, an optional music_visualizer) and
handle its transport events.
Steps
- Resolve the source. A named track/video → resolve a
source_url+media_type(audio|video). "Play music" with no title → a default playlist. - Start with
play_media. Spawns amedia_player(state:"playing"). - For music, add ambience with
show_music_visualizer(audio-reactive). - Handle controls (
client.interaction, §5.11) withholo.update:play_pause→ togglestate.seek{position_ms}→ setposition_ms.set_volume{volume}→ setvolume(0–1).stop→state:"stopped"orholo.destroy.
- Map speech to actions: "turn it up" →
volume += 0.1; "skip 30s" →position_ms += 30000.
Output
media_player (play_media, props per registry.json):
{ "widget_type": "media_player",
"transform": { "anchor": "world", "billboard": true },
"props": { "title": "Lo-fi Beats", "source_url": "https://cdn.jarvisvr.app/audio/lofi.mp3",
"media_type": "audio", "state": "playing", "position_ms": 0,
"duration_ms": 180000, "volume": 0.6, "loop": true },
"interactions": ["tap","grab","resize","slider"] }
music_visualizer (show_music_visualizer):
{ "widget_type": "music_visualizer",
"props": { "track": "Lo-fi Beats", "artist": "Chillhop", "style": "bars",
"amplitude": [0.2,0.6,0.9,0.4,0.7], "color": "#7FE7FF", "playing": true } }
Edge cases
- Source not found → say so; offer alternatives, don't fabricate a URL.
- Nothing playing ("pause") → no-op with a gentle note.
- Volume bounds → clamp to 0.0–1.0.
- Video vs audio → video uses a larger
world-anchored player; keep it out of the user's path (defer placement tostage-agent). - Ambient background loop (rain, café) → that's
set-soundscape. - Generate cover art / imagery →
create-image.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |