parent
09c041c8ac
commit
ef068ac2b3
8 changed files with 293 additions and 33 deletions
|
|
@ -91,11 +91,11 @@ MxcMediaProxy::startDownload()
|
|||
buffer.open(QIODevice::ReadOnly);
|
||||
buffer.reset();
|
||||
|
||||
QTimer::singleShot(0, this, [this, self, filename] {
|
||||
QTimer::singleShot(0, this, [this, filename] {
|
||||
nhlog::ui()->info("Playing buffer with size: {}, {}",
|
||||
buffer.bytesAvailable(),
|
||||
buffer.isOpen());
|
||||
self->setMedia(QMediaContent(filename.fileName()), &buffer);
|
||||
this->setMedia(QMediaContent(filename.fileName()), &buffer);
|
||||
emit loadedChanged();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue