Video getting launched in Direct3D window
Posted: 25 Aug 2016 06:33
Hi all,
I am trying to launch a video using libvlc and python interface.
Every time I execute the code, Video is getting launched in Direct3D window from where I cannot pause or stop manually.
How to make it launch in the main window?
Below is the code I used to launch VLC
I am trying to launch a video using libvlc and python interface.
Every time I execute the code, Video is getting launched in Direct3D window from where I cannot pause or stop manually.
How to make it launch in the main window?
Below is the code I used to launch VLC
Code: Select all
import vlc
filepath = "test.mp4"
movie = os.path.expanduser(filepath)
instance = vlc.Instance()
media = instance.media_new(movie)
player = instance.media_player_new()
player.set_media(media)
player.set_fullscreen(1)
player.play()