E
E
Egorithm2020-07-05 18:02:53
Qt
Egorithm, 2020-07-05 18:02:53

How to get QAbstractVideoSurface from QVideoWidget or QMediaPlayer before Qt 5.15?

I found all the necessary methods, but it turned out that some of them will be introduced only starting from Qt 5.15, and it is not yet possible to upgrade to it. At the same time, the class QAbstractVideoSurface existed in Qt4. Is there a way to get this object from the above classes? In general, this, of course, is not an end in itself. I need to keep track of the original and scaled size of frames (video surfaces).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2020-07-05
@EgoRusMarch

See which commit introduced this feature and backport it, or write your own implementation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question