Solved Display Pictures in VideoOutput
-
Hi
I'm trying to make a Pictures/Videos mixed player.Is it possible to show pictures in a VideoOutput.
Videos work fine but when I pass a picture url nothing happen.The main issue here is I plan to use Playlist component, and, since I'm still new at Qml,
I have no idea how to switch of components if VideoOuput can't handle pictures.Thanks for any advice.
-
If I was you I'd just create some sort of mixed player QML component containing both Image and a VideoOutput/Media Player elements, and its own source url property. Route the source to the appropriate display element (depending whether it's a .jpg, .png, .mov or whatever) and set element visibility accordingly. I've successfully used this approach in a few places I've needed to handle both images and video.
-
Thats what i was afraid of but shouldn't be too hard.
Thanks.