0

I heed to amend a request header to some of my HTTP requests which application sends, but they managed by QML MediaPlayer. I tried to use setNetworkAccessManagerFactory(), like it shown here, and it works with Image, but it still does not work with MediaPlayer. Apperantely, MediaPlayer does not using QNetworkAccessManager.

How can I do that?

Ghorm
  • 85
  • 5
  • 1
    Have a look at https://stackoverflow.com/questions/30507317/how-do-i-play-a-stream-with-qmediaplayer - it should put you one step closer. i.e. by being able to declare a custom stream, you can link your QNetworkAccessManager with custom headers to the media stream. – Stephen Quan Nov 17 '22 at 21:55
  • @StephenQuan, thanks for your advice, but VLC-Qt is a desktop-only library, my application should have to support iOS and Android. – Ghorm Nov 18 '22 at 07:27
  • 1
    I mean for you to look at how they add a custom backend. As a matter of fact, try searching for other answers that involve in QMediaPlayer but with either (1) a custom url scheme, or (2) a custom QIODevice. – Stephen Quan Nov 18 '22 at 07:39

0 Answers0