def __init__(this, keyFrameCounter): QVideoWidget.__init__(this) this.__keyFrameCounter = keyFrameCounter this.__mediaPlayer = None this.__activeStreamIndex = None this.__videoAnalyzer = None
def __init__(self, sqlConn): # Save sqlConnection for later self.sqlConnection = sqlConn # Call to superclass constructor QVideoWidget.__init__(self) #Create window and configure it self.setGeometry( QStyle.alignedRect(Qt.LeftToRight, Qt.AlignCenter, QSize(1280, 720), QApplication.desktop().availableGeometry())) self.setWindowTitle("BlueSky Airlines") self.setWindowIcon(QIcon('media/favicon.ico')) self.setWindowFlags(Qt.FramelessWindowHint) self.setStyleSheet('background-color: white;') #Setup the video player self.videoPlayer = QMediaPlayer() self.videoPlayer.setMedia( QMediaContent(QUrl('media/splashAnimation.avi'))) self.videoPlayer.setVideoOutput(self) self.videoPlayer.stateChanged.connect(self.handleVideoDone)
def __init__(self, parent=None): QVideoWidget.__init__(self, parent)
def __init__(self): QVideoWidget.__init__(self)