A
A
Alexander2016-02-18 08:29:39
C++ / C#
Alexander, 2016-02-18 08:29:39

How to play audio from a link (Windows, MacOSX)?

It is necessary to play the file received by the link from some hosting. For example http://host.ru/audio.mp3. The task is to play the file, but not waiting until it is completely downloaded. How can this be implemented on Windows and MacOSX? In which direction to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2016-03-12
@Nexelen

Under MacOS X this came in handy https://github.com/tumtumtum/StreamingKit

A
Armenian Radio, 2016-02-18
@gbg

Qt supports focus:
QMediaPlayer

player = new QMediaPlayer;

playlist = new QMediaPlaylist(player);
playlist->addMedia(QUrl("http://example.com/myfile1.mp3"));
playlist->addMedia(QUrl("http://example.com/myfile2.mp3"));
// ...
playlist->setCurrentIndex(1);
player->play();

A
Alexander Taratin, 2016-02-18
@Taraflex


I haven't tried libzplay.sourceforge.net/WELCOME.html for windows
under poppy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question