Play a video Url in a qwidget Qt
-
@HW-Developer I don't think you can play a YouTube video like this. The URL should point to a video file not a web page with embedded video like YouTube.
@jsulm so how can i play a video url using QMediaPlayer??
-
@jsulm so how can i play a video url using QMediaPlayer??
@HW-Developer As you do except YouTube.
Do you want to play YouTube video? -
@jsulm yes please i want to play it in my app
-
@jsulm yes please i want to play it in my app
@HW-Developer I have no idea how to play a YouTube video in an app directly. One possibility would be to use QtWebEngine and load YouTube web page there.
-
Do you have an example how to use it ??
-
Do you have an example how to use it ??
@HW-Developer I don't, but Qt documentation does: http://doc.qt.io/qt-5/webengine-examples.html
But I don't know whether it can play YouTube videos as it requires codecs. -
@HW-Developer I don't, but Qt documentation does: http://doc.qt.io/qt-5/webengine-examples.html
But I don't know whether it can play YouTube videos as it requires codecs.@jsulm Really thank for your time even if we don't find how to fix it but thank you for your help
-
@jsulm Really thank for your time even if we don't find how to fix it but thank you for your help
@HW-Developer No problem
-
@jsulm Really thank for your time even if we don't find how to fix it but thank you for your help
even if we don't find how to fix it
Indeed, it looks like nothing to fix from Qt side. It's Youtube restricting video playing from its own site/app