Python How To Create Media Player In PyQt5

preview_player
Показать описание
Join PyQt6 13 Hours Course in Udemy

My Affiliate Books:
Beginning PyQt: A Hands-on Approach to GUI Programming

Create GUI Applications with PyQt5 & Qt5

Python GUI Development with PyQt5

Get the source code:

In this Python gui video i want to show you How to Create Media
Player in PyQt5, so in this video we are going to use QtMultimedia class, Qt Multimedia is an essential module that handle multimedia content. It also provides necessary APIs to access the camera and radio functionality. The included Qt Audio Engine provides types for 3D positional audio playback and content management. check Documentation for Qt Multimedia. and from QtMultimedia we are going to use QMediaPlayer and QMediaContent. 

#Python#PyQt5#ParwizForogh
Рекомендации по теме
Комментарии
Автор

If you cant play MP4 files, try to convert the file to WMV and it will work

arminrad
Автор

Amigo obrigado por posta os videos se puder me ajudar agradeço caso não saiba do mesmo jeito obrigado .
Como eu faço para colocar um texto sobre o video tipo o video ta passando mostra ele em cima do video no pyqt5 ?

ADR-SAMBOX
Автор

Thanks for the amazing video! It really helped a lot! I was wondering if there is a way to display an ellipse on top of the video playing in this media player cause i cant seem to make it appear. Thanks in advance!

anthoulapatsinakidou
Автор

Thank you for the great video. Follow your guide I can play the video with the size 640x360 but it doesn't work when I try with the video size 1280x720. Does the video size matter? What can be the problem?

dtdzung
Автор

Thanks, with this I will expand an unfinished example in PyQt4 that uses phonon and that is not available for PyQt5 now. I think I can achieve it even when I started watching Python 5 days ago and I was excited to see that with very few lines of code I could download files and even resume. I was trying to do the same with freepascal \ Lazarus and some libraries failed with the resume and others did not work. So here I am making my way walking with the Python language, mimicking that of "walker there is no way, it makes way when walking". (Translated from Spanish to English by Google)

LNippur
Автор

nice tutorial,
btw, how to enable/disable Left/Right audio channels, since my video has 2 channels, music and vocal audio track.

siswanto-
Автор

How can I set size of videoplayer ? For example I want to set it 250x250 from the (50, 50) pixel

onuraltunisik
Автор

hi first off all when ı was write code (ı want to just open window) why can not open?(under the class code)

ruhatkahraman
Автор

hi bro.can u help me make a video player that can embed network url using python or java? thank you very much!!

olankendrickcanobas
Автор

Hi, Parwiz! Thank you very much for your useful videos. But I can't get the QMediaPlayer to work with this code under MacOs (High Sierra) (. And unfortunately, I cannot find the solution on any forum. It doesn't give out any errors. Just hanging when trying to play a video or audio file. Its state is "playing", but nothing is actually played. I can just toggle between play/pause states of the button without any changes. Do you have any ideas, what can I do with this? Thank you in advance!

gdaliygarmiza
Автор

Thanks for the source code bro because I got some errors 😅

FactFlame_Network
Автор

Te quiero mucho gringito me salvaste :)

angelcotoc
Автор

it is very useful video but i want to know how do you know the code lines you write?? i mean that should i do if i want to add more buttons that is not in your video ==> how to know its name and libraries in pyqt5 ??? "i ask about advice"

abdalla
Автор

Hey man first of all thanks for the explanation,
for me it doesn't work much i open a video and when i press play the video doesn't play and the whole window shuts down do u have any solution?

YarinSker
Автор

Hello,
Do you suggest me to use python-vlc to play audio files or the built in media player of pyqt5?

el
Автор

In video 19.30 the video is not play in my system please help

sarthakgupta
Автор

It's possible to launch a youtube video ? Like url and follow a live video Yt?

Scienox
Автор

Nice video but i want to add screen shot feature in it how to do so plz help

HarjotSingh-lins
Автор

Hi, I seem to be getting an error here anybody know a work around for this?

File "c:/Users/Jo Ming/Documents/Motion3.0/openpose/build/examples/MotionScripts/motionGUI.py", line 1
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout,
^
SyntaxError: trailing comma not allowed without surrounding parentheses

josephrogers
Автор

Amazing! How can I add picture in picture?

irisbotlsec
join shbcf.ru