Skip to main content

OBS Set Media Source

Runs on: Backend.

Changes a property on a media (FFmpeg) source in OBS. Use it to swap the file a source plays or change its playback behavior.

Inputs​

NameTypeDescription
sourceNamestringThe media source to update. Overrides the dropdown when connected.
valuevariesA file path string for File Path; boolean for loop, restart and close toggles; number for speed.

Configuration​

  • Source: The media sources in OBS. Used when Source Name isn't wired.
  • Property: File Path (string), Loop Playback (boolean), Restart When Active (boolean), Close When Inactive (boolean) or Speed Percent (number).

Example​

A redeem lets viewers pick a background track. The flow maps the redeem input to a file path and feeds it into OBS Set Media Source targeting "Background Music".