Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Display Pictures in VideoOutput
Forum Updated to NodeBB v4.3 + New Features

Display Pictures in VideoOutput

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 690 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TedVj
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • timdayT Offline
      timdayT Offline
      timday
      wrote on last edited by timday
      #2

      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.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        TedVj
        wrote on last edited by
        #3

        Thats what i was afraid of but shouldn't be too hard.
        Thanks.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved