Oct-10-2021, 06:02 AM
(This post was last modified: Oct-10-2021, 06:02 AM by menator01.
Edit Reason: Title correction
)
I've been trying to get mp3 files to play using QMediaPlayer with no success. Can anyone shed some light on what I'm missing?
The basic code. If you wish to see all the code, let me know.
According to the examples this works. I get no sounds or errors.
Thanks.
The basic code. If you wish to see all the code, let me know.
According to the examples this works. I get no sounds or errors.
Thanks.
#! /usr/bin/env python3
from PySide2.QtCore import QUrl
from PySide2.QtMultimedia import QMediaPlayer, QAudio
player = QMediaPlayer()
player.setMedia(QUrl.fromLocalFile('My Music/here.mp3'))
player.setVolume(70)
player.play()
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts
