So i am using the VLC python extension. I am trying to align playing a video with another program. Since the VLC media player has some variability of how long it takes to load the media and start playing, it can sometimes be out of alignment. I want to open/load the video in VLC, have it pause, and then wait for the trigger to play, so i can do the command back-back with another part of my program.
When i put a value into media_player.pause, the video wont play, but the other process will. If i put no value into media_player.pause(), the video will play without a pause
import time, vlc
# media object
media = vlc.Media('video.mp4')
# setting media to the media player
media_player.set_media(media)
media_player = vlc.MediaPlayer()
media_player.set_media(media)
# Play to open/load the video
media_player.play()
# Pause the Video
media_player.pause()
# Other Stuff Happens
time.sleep(init_delay)
media_player.play()