Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

FileDialog video picker on iOS



  • 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()
                }
            }
    

  • Lifetime Qt Champion

    Hi,

    This thread might give you a starting point.


Log in to reply