我有一个一小时的视频,我只想在某些东西触发它时播放它的一部分。
from vlc import *
import os
os.add_dll_directory('D:\\VLC')
media_player = MediaPlayer()
media = Media("VID.mp4")
media_player.set_media(media)
media_player.play()
x = 0
if x==1:
# play the video at 2:34
else:
# play the video at 3:09