python-vlc won't start the player -
ok here go .im trying play video located online.i got url ,which following: http://fsi.stanford.edu/sites/default/files/video_4.mp4 not use in application sample file . reading examples python-vlc module wrote following code:
import vlc instance = vlc.instance('--fullscreen') player = instance.media_player_new() media = instance.media_new('http://fsi.stanford.edu/sites/default/files/video_4.mp4') media.get_mrl() player.set_media(media) player.play()
in general use anaconda , jupyter write code .in jupyter enviroment code above executes corectly except fullscreen parameter(which still not need).so tried running code on command window expecting vlc player start fullscreen mode.instead code returned 0 expected player never started.im using windows 10 , vlc 2.2.4 . can please explain or @ least me understand why happening ?
ok solved on own.i had put infinite loop in end,so player has enough time run:
while true: pass
Comments
Post a Comment