import time
import keyboard
# Define the timestamps in hours, minutes, and seconds
timestamps = [
(0, 0, 10), # 00:00:10
(0, 1, 30), # 00:01:30
(0, 3, 45) # 00:03:45
]
# Function to play media at a specific timestamp
def play_media(timestamp):
# Convert the timestamp to seconds
seconds = timestamp[0] * 3600 + timestamp[1] * 60 + timestamp[2]
# Set the media playback position in OBS
# Replace 'media_source' with the actual name of your media source in OBS
obs.media_source_set_position('SaltCounter', seconds)
# Start playing the media
obs.media_play('SaltCounter')
# Loop through the timestamps and play media at each timestamp
for timestamp in timestamps:
# Play media at the current timestamp
play_media(timestamp)
# Pause the script for 2 seconds
time.sleep(2)
# Pause the media playback
obs.media_pause('SaltCounter')
# Wait for the hotkey to resume playback
keyboard.wait('space')
# Resume the media playback