Add media
media_addAdds local files or network inputs to an OBS scene, with immediate positioning and sizing for the new media source.
Instructions
Create an OBS Media Source in a scene. Supports local files and network inputs and can position/size the new scene item immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| fit | No | contain | |
| loop | No | ||
| width | No | ||
| height | No | ||
| source | Yes | Local file path or network media URL/input. | |
| sceneId | No | OBS scene UUID. | |
| autoplay | No | ||
| rotation | No | ||
| mediaName | No | ||
| sceneName | No | OBS scene name. | |
| sourceMode | No | auto | |
| inputFormat | No | ||
| speedPercent | No | ||
| clearOnMediaEnd | No | ||
| networkSeekable | No | ||
| restartOnActivate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |