QT 5.4 QML VideoOutput not workking on IOS Iphone/Ipad



  • Dears,

    I try to play a video with sound on IOS application with Qt or Qml.
    My environment is :

    • Qt 5.4
    • compilation under OSX Yosemite 10.10.2
    • the IOS devices are Ipad2 version 8.3 and Iphone6+ version 8.3

    Code tested :
    QML Version

    import QtQuick 2.4
    import QtMultimedia 5.0    
    
    VideoOutput {
       anchors.fill: parent
       fillMode: VideoOutput.PreserveAspectFit
       source: player
    
       MediaPlayer {
           id: player
           autoPlay: true
           onStatusChanged: {if (status==MediaPlayer.EndOfMedia) play();}
           source: "qrc:/videos/vid2.mp4"
       }
    }
    

    and
    C++ Version

    QMainWindow w;
    
    QVideoWidget* pVWidget = new QVideoWidget;
    QMediaPlayer* pPlayer = new QMediaPlayer;
    
    pPlayer->setMedia(QUrl("qrc:/videos/vid2.mp4"));
    
    w.setCentralWidget(pVWidget);
    w.show();
    
    pPlayer->play();
    

    .pro file

    TEMPLATE = app
    
    QT += core gui network sql widgets xmlpatterns quick qml multimedia multimediawidgets
    
    SOURCES += main.cpp
    
    RESOURCES += qml.qrc
    

    Source tested :

    Everything works fine when it's running on Android, OSX Desktop but impossible to have something on IOS Device neither IOS Simulator.
    I tried adding the QTPLUGING but as it should be, Cretor found that it was duplicating.
    I tried using QMAKE_BUNDLE_DATA....
    Nothing works until now...
    What I get is white screen on QML version and black screen on C++ version.

    Thanks for your help or sample projects on it.



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.