Python vlc警告信息格式

Python vlc警告信息格式,python,pyqt5,vlc,Python,Pyqt5,Vlc,上面的代码是使用pyuic5语句生成的。 我只添加了以下几行: 进口vlc definit方法 当我运行程序时,它输出:[000001e1917c4fa0]mm设备音频输出错误:无法初始化COM(错误0x80010106)两次 通过此程序: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code gener

上面的代码是使用pyuic5语句生成的。 我只添加了以下几行:

  • 进口vlc

  • definit方法

  • 当我运行程序时,它输出:
    [000001e1917c4fa0]mm设备音频输出错误:无法初始化COM(错误0x80010106)
    两次

    通过此程序:

    # -*- coding: utf-8 -*-
    
    # Form implementation generated from reading ui file 'untitled.ui'
    #
    # Created by: PyQt5 UI code generator 5.15.0
    #
    # WARNING: Any manual changes made to this file will be lost when pyuic5 is
    # run again.  Do not edit this file unless you know what you are doing.
    
    
    from PyQt5 import QtCore, QtGui, QtWidgets
    import vlc
    
    class Ui_Form(object):
        def __init__(self):
            self.Instance = vlc.Instance(['--no-xlib'])
            self.player = self.Instance.media_player_new()
    
        def setupUi(self, Form):
            Form.setObjectName("Form")
            Form.resize(400, 300)
    
            self.retranslateUi(Form)
            QtCore.QMetaObject.connectSlotsByName(Form)
    
        def retranslateUi(self, Form):
            _translate = QtCore.QCoreApplication.translate
            Form.setWindowTitle(_translate("Form", "Form"))
    
    
    if __name__ == "__main__":
        import sys
        app = QtWidgets.QApplication(sys.argv)
        Form = QtWidgets.QWidget()
        ui = Ui_Form()
        ui.setupUi(Form)
        Form.show()
        sys.exit(app.exec_())
    
    不输出任何内容

    第一个代码怎么了

    import vlc
    
    Instance = vlc.Instance(['--no-xlib'])
    player = Instance.media_player_new()