Playing media sources using script?

PulseVoyd

New Member
Hello. I was wondering if there is a way to play a media source through script? I need to play it every 15 min (i already have that part set up) but I dont know what to type to play the source. I'm quite new to programming, so please keep it as simple as possible!
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Yes, you can do that. You're probably looking for the obs_source_media_play_pause() function. I don't think it's fully documented but that'll give you the result you're looking for.
 
Top