Видеоплеер для Qt 6
Project description
QFilmPlayer
Видео плеер для Qt 6
Версия 1.0
Установка
pip install git+https://gitflic.ru/project/nchistov/qfilmplayer.git
Использование
QFilmPlayer можно использовать как отдельное окно, так и как виджет.
examples/window_example.py
import sys
from PyQt6 import QtWidgets
import qfilmplayer
app = QtWidgets.QApplication(sys.argv)
fp = qfilmplayer.QFilmPlayer(["example_video.mp4"], title="QFilmPlayer")
fp.show()
sys.exit(app.exec())
examples/widget_example.py
import sys
from PyQt6 import QtWidgets
from qfilmplayer import QFilmPlayer
class Window(QtWidgets.QWidget):
def __init__(self, parent=None) -> None:
super().__init__(parent)
self.grid = QtWidgets.QGridLayout()
self.fp = QFilmPlayer(["example_video.mp4"])
self.grid.addWidget(QtWidgets.QPushButton("Some button"), 1, 1)
self.grid.addWidget(QtWidgets.QPushButton("Some another button"), 2, 1)
self.grid.addWidget(QtWidgets.QPushButton("And another one"), 2, 2)
self.grid.addWidget(self.fp, 1, 2)
self.setLayout(self.grid)
app = QtWidgets.QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec())
Известные ошибки
- Полноэкранный режим не работает, если QFilmPlayer встраивать как виджет
- Если вы заметите какие-либо ошибки, пишите!
Copyright
- Код - © Николай Чистов, Лицензия MIT
examples/example_video.mp4- © Vincenzo Malagoli (https://www.pexels.com/@zenzazione/)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qfilmplayer-1.0.tar.gz
(15.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qfilmplayer-1.0.tar.gz.
File metadata
- Download URL: qfilmplayer-1.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a20c6d7fa07f44d6ccf9aa896aadcd1c5aa77775509aafd8dfcfd799b638178
|
|
| MD5 |
1ec9c9e61e2160025159c2c0594dbe82
|
|
| BLAKE2b-256 |
754034e4173fe83b6ced5064271a6e9a0d8f20fbbc918b3f5117fcaa9cfeff31
|
File details
Details for the file qfilmplayer-1.0-py2.py3-none-any.whl.
File metadata
- Download URL: qfilmplayer-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1f2f82d7397fc797bf0aa556deffe82593e3c0db5a82a7ca71869b6bfc5190a
|
|
| MD5 |
61c3d5207c3777091987805f8c6c6239
|
|
| BLAKE2b-256 |
784a21631c976641dc166788d2207a75dbf2123fcd983b7c95a2c9d95e856673
|