我有一个python脚本,这个脚本运行得很好:http://picamera.readthedocs.org/en/release-1.1/recipes1.html#capturing-to-a-network-stream
我想使用VLC或Windows Media player连接到此。有谁可以帮我修改这个脚本吗?
发布于 2019-11-24 15:26:06
首先使用以下命令安装python-vlc模块:
pip install python-vlc
代码:
import vlc
playlist = ['Path to your file']
player = vlc.MediaPlayer(playlist)
player.play()希望这能对你有所帮助。干杯!
https://stackoverflow.com/questions/21492027
复制相似问题