Skip to main content
Glama
yshk-mrt
by yshk-mrt

SetMediaTime

Control media playback by setting specific start times in milliseconds. Jump to scenes or set replay positions for media sources during streaming presentations.

Instructions

Sets the current playback time of a media source. 用途: 特定シーンへのジャンプ、リプレイの開始位置設定

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Implementation Reference

  • The handler logic for the 'SetMediaTime' tool. It extracts sourceName and mediaTime from parameters, calls the OBS WebSocket method 'SetMediaInputCursor' via sendToObs, and returns success or error structured content.
    case "SetMediaTime": const timeParams = params as { sourceName: string; mediaTime: number }; console.log(`Executing SetMediaTime with params:`, timeParams); try { await sendToObs("SetMediaInputCursor", { inputName: timeParams.sourceName, mediaCursor: timeParams.mediaTime }, context, action.name); return { structuredContent: { success: true } }; } catch (e: any) { console.error(`Error in SetMediaTime for OBS:`, e.message); return { structuredContent: { success: false, error: e.message } }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yshk-mrt/obs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server