Closed jvkolyadich closed 3 years ago
Thank you for the fix, that worked for me with qt 5.15.2 build.
On Tue, Feb 9, 2021 at 12:47 PM James K notifications@github.com wrote:
Prevents video from restarting playback after hiding the screen when it ends, but the last frame still stays on the screen when the video ends if you build with some older versions of Qt. If you build with a newer version of Qt (5.13+), VideoOutput shows an empty frame after the video stops by default https://doc.qt.io/qt-5/qml-qtmultimedia-videooutput.html#flushMode-prop, so the problem gets fixed.
Video was restarting in ProjectorDisplayScreen::renderPassiveText() because backType was staying as B_VIDEO when calling updateScreen().
You can view, comment on, or merge this pull request online at:
https://github.com/SoftProjector/softprojector/pull/59 Commit Summary
- fixed bug where media played after hiding screen
- disabled stop showing button after video ends
File Changes
- M DisplayArea.qml https://github.com/SoftProjector/softprojector/pull/59/files#diff-22fffc3cb11bc502af532e914d2e8433a88d2851fc11a8d48fa22ca78ce99fb0 (6)
- M projectordisplayscreen.cpp https://github.com/SoftProjector/softprojector/pull/59/files#diff-e6989059114cabdceceaa055a04e52e3e03a09493aec5b2374069ff65efd47af (12)
- M projectordisplayscreen.hpp https://github.com/SoftProjector/softprojector/pull/59/files#diff-75934e0e3c562f3f630c0977f2fd907eed2624ee04f845551cd8488e13bfe203 (2)
- M softprojector.cpp https://github.com/SoftProjector/softprojector/pull/59/files#diff-ce2e0c97bbb5a68ae13f926ff914025e2acf974061bc0e3b1764c72b2b97ef57 (7)
- M softprojector.hpp https://github.com/SoftProjector/softprojector/pull/59/files#diff-f45d04adf7f2cab3cb34e632f50456350828d3f768eb65ca3528d52a5900cfb1 (1)
Patch Links:
- https://github.com/SoftProjector/softprojector/pull/59.patch
- https://github.com/SoftProjector/softprojector/pull/59.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SoftProjector/softprojector/pull/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJFITEC6OGRZYPZTQNNKAG3S6FYK7ANCNFSM4XLNZOGQ .
Thanks for the fix @jvkolyadich . I greatly appreciate it.
Prevents video from restarting playback after hiding the screen when it ends, but the last frame still stays on the screen when the video ends if you build with some older versions of Qt. If you build with a newer version of Qt (5.13+), VideoOutput shows an empty frame after the video stops by default, so the problem gets fixed.
Video was restarting in ProjectorDisplayScreen::renderPassiveText() because backType was staying as B_VIDEO when calling updateScreen().