cplusplusqt | Unsorted

Telegram-канал cplusplusqt - C++ & Qt

1169

Link: @CplusplusQt Embedded: @EMBCpp • Allowed Topics: C++ and everything related to Qt • Use only English • No Private Message without asking user's permission • No NSFW • No Spam • No unauthorized Bots • No Offtopic • No Self Promotions

Subscribe to a channel

C++ & Qt

The response is regularly printed on the console or, say, written in a file, so I don't think there's much to do with that on the client side if it lacks data or misses some value.

Читать полностью…

C++ & Qt

so the only way to get the stream title is described here

Читать полностью…

C++ & Qt

Isn't there a way to monitor scrollPosition
it seems like it doesn't trigger onScrollPositionChanged or any kind of binding

Читать полностью…

C++ & Qt

It is the same process

Читать полностью…

C++ & Qt

https://forum.qt.io/topic/90458/how-to-get-media-file-information/5

Читать полностью…

C++ & Qt

and there is no availableMetaData in qmediaplayer

Читать полностью…

C++ & Qt

And then mediaplayer.avalaibleMetaData()

Читать полностью…

C++ & Qt

maybe there's some way with qbuffer?

Читать полностью…

C++ & Qt

i need a way to stream data while checking for new metadata that icycast provides within the stream contents

Читать полностью…

C++ & Qt

oh, maybe I get it now

Читать полностью…

C++ & Qt

there is no such method in qt 6.4.2?

Читать полностью…

C++ & Qt

I checked MSVC 2019 64-bit. I'm not sure but that seemed to install just QtCreator for that platform, and not the compiler. However, after installing Visual Studio, QtCreator was able to use its compiler without modifying the QtCreator installation.

Читать полностью…

C++ & Qt

Does the media play?

Читать полностью…

C++ & Qt

#include <QAudioDevice>
#include <QAudioOutput>
#include <QCoreApplication>
#include <QFile>
#include <QMediaDevices>
#include <QMediaMetaData>
#include <QMediaPlayer>

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);

QMediaPlayer *mediaPlayer = new QMediaPlayer;
QAudioOutput *audioOutput = new QAudioOutput(QMediaDevices::defaultAudioOutput());

mediaPlayer->setSource(
QUrl("https://scdn.nrjaudio.fm/adwz1/fr/30079/"
"mp3_128.mp3?origine=radiogarden&listening-from-radio-garden=1673884209"));
mediaPlayer->setAudioOutput(audioOutput);
mediaPlayer->play();

QObject::connect(mediaPlayer, &QMediaPlayer::metaDataChanged, &app,
[mediaPlayer]
{
qDebug() << mediaPlayer->metaData().stringValue(QMediaMetaData::Title);
});

return app.exec();
}


see this example, it prints out "" after some little time

Читать полностью…

C++ & Qt

https://gist.github.com/dimitris-c/3e2af7ab451c965d126c02ab580f1eb8

Читать полностью…

C++ & Qt

Welcome to the group, @Mehrrrrrrad! :-)

Wanna share your story of how you started with Qt, QML or C++? Maybe some nice feature that made you stick with it.
Rules are set on the description of the group. :)

Читать полностью…

C++ & Qt

network isn't local file system

Читать полностью…

C++ & Qt

there is no availableMetaData

Читать полностью…

C++ & Qt

read the documentation here

Читать полностью…

C++ & Qt

https://doc.qt.io/qt-6/qmediaplayer.html

Читать полностью…

C++ & Qt

already tried, and the signal is called mediaStatusChanged, you have to check if the new status is LoadedMedia

Читать полностью…

C++ & Qt

Connect (mediaplayer, Signal(medialoaded()), this, get metadata())

Читать полностью…

C++ & Qt

i already know how to get the metadata but i dont know how to stream data into qmediaplayer

Читать полностью…

C++ & Qt

metadata still empty

Читать полностью…

C++ & Qt

and what do you mean by that

Читать полностью…

C++ & Qt

Any libs for 0 overhead cost state machines?

Читать полностью…

C++ & Qt

And call mediaplayer.Avalaiblemetadata()

Читать полностью…

C++ & Qt

The signal should be media loaded

Читать полностью…

C++ & Qt

to be honest, it would be cool if developers at qt supported this

Читать полностью…

C++ & Qt

icycast/shoutcast gives metadata after every x bytes (to find x you must pass Icy-MetaData: 1 header with the network request and in the response read header Icy-MetaInt)

Читать полностью…
Subscribe to a channel