Page 1 of 1

How to disable the video/audio outpu?

Posted: 15 May 2013 11:19
by jackhuang
I use the python call the libvlc api. I want to disable the video/audio output window by set option in Mediaplayer object.
The code is working as my expection that no video window display and can go on play the url,
but for some url that for example in my code, MediaPlayer object can not play the url, In otherwise, If I remove the option for Mediaplay, It can go on play.

So Could anyone help me to take a look?

Code: Select all

import generated_vlc line_url='http://live.gslb.letv.com/gslb?stream_id=cctv1&tag=live&ext=m3u8&sign=live_ipad' mplay=generated_vlc.MediaPlayer(line_url.strip(),'no-video','noaudio') video_width=mplay.video_get_width() mplay.play()