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. FileDialog video picker on iOS
Qt 6.11 is out! See what's new in the release blog

FileDialog video picker on iOS

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 1.3k 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.
  • JBonillaJ Offline
    JBonillaJ Offline
    JBonilla
    wrote on last edited by JBonilla
    #1

    Is there anyway to get access from FileDialog to videos stored in the mobile device? Is there a "native" video picker for iOS? I am trying this, but I am getting a general file dialog and only getting access to an empty app local video folder.

         import QtQuick 2.0
         import QtMultimedia 5.11
         import QtQuick.Dialogs 1.3
        
        // Video picker
        FileDialog {
                id:          filePicker
                title:       "Select video"
                folder:      shortcuts.movies
                visible:     false
                nameFilters: ["Video files (*.asf *.avi *.flv *.m4v *.mkv *.mov *.mp4 *.mpg *.mpeg)", "All files (*)"]
                onAccepted: {
                    mediaPlayer.source = Qt.resolvedUrl(filePicker.fileUrl)
                    mediaPlayer.play()
                    filePicker.close()
                }
            }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This thread might give you a starting point.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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