Fix palette access and QMediaPlayer errors
This commit is contained in:
parent
e85a1d4aeb
commit
54e2295c21
88 changed files with 426 additions and 480 deletions
|
|
@ -25,13 +25,14 @@ MxcMediaProxy::MxcMediaProxy(QObject *parent)
|
|||
{
|
||||
connect(this, &MxcMediaProxy::eventIdChanged, &MxcMediaProxy::startDownload);
|
||||
connect(this, &MxcMediaProxy::roomChanged, &MxcMediaProxy::startDownload);
|
||||
connect(this,
|
||||
&MxcMediaProxy::error,
|
||||
[this]() {
|
||||
nhlog::ui()->info("Media player error {} and errorStr {}",
|
||||
error(),
|
||||
this->errorString().toStdString());
|
||||
});
|
||||
connect(this,
|
||||
&QMediaPlayer::errorOccurred,
|
||||
this,
|
||||
[](QMediaPlayer::Error error, QString errorString) {
|
||||
nhlog::ui()->debug("Media player error {} and errorStr {}",
|
||||
error,
|
||||
errorString.toStdString());
|
||||
});
|
||||
connect(this, &MxcMediaProxy::mediaStatusChanged, [this](QMediaPlayer::MediaStatus status) {
|
||||
nhlog::ui()->info("Media player status {} and error {}", status, this->error());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue