Video(mp4 file only) player using QGraphicsVideoItem. Control widget at the bottom is shown/hidden followed by cursor's movement.
PyQt5 >= 5.8
python -m pip install git+https://github.com/yjg30737/pyqt-graphics-video-item-video-player --upgrade
This video player is mp4 only.
You can set the video file by dropping it to the window. That is the only way.
from PyQt5.QtWidgets import QApplication
from pyqt_graphics_video_item_video_player.videoPlayer import VideoPlayer
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
videoPlayer = VideoPlayer()
videoPlayer.show()
app.exec_()
Control widget is going to show when
Control widget is going to hide when
QGraphicsVideoItem's video quality is worse than QVideoWidgets.
You maybe wonder why did i make this in the first place.
Because for some reasons, I can't show the control widget (which has transparent background) over the QVideoWidget.
I'm still trying to figure out the way to solve this problem.
One more thing, There are some flaws in timer feature and button toggling. I will fix it.