How to improve performance of Phonon::VideoPlayer in a QGraphicsScene??
-
I am adding the VideoPlayer into a QGraphicsScene and then using QGraphicsView to display the scene... works fine on desktop (colors broken though thats a bug) but the major issue here is that when i deploy on n900 then for a video of size 800*480 the video lags like hell... Now i understand that this is due to the fact that there is no hardware acceleration that is taking place and hence it lags on the phone... Now what is the way out how to improve the performance..
What i plan to do is paint some ui on top of this video...Alternatively, i also tried extending QDeclarativeItem and inside my class using QGraphicsProxyWidget.. added the Phonon::VideoPlayer to it... and set it as the top level widget in this class.. now i export this to qml and paint some ui on it...
Still same issue persists...Please suggest a way to improve the performance... or somehow get it to use hardware acceleration...
PS I have also tried setting viewport of QGraphicsView to a new QGLWidget instance..still no effect... :((