Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT 5.4 QML VideoOutput not workking on IOS Iphone/Ipad
QtWS25 Last Chance

QT 5.4 QML VideoOutput not workking on IOS Iphone/Ipad

Scheduled Pinned Locked Moved Mobile and Embedded
iosqmlqtmultimediac++videooutputmediaplayer
1 Posts 1 Posters 895 Views
  • 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.
  • N Offline
    N Offline
    NConcepts
    wrote on 3 May 2015, 10:59 last edited by
    #1

    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 :

    • from resource: qrc://videos/vid2.mp4
    • from local file after successfull copy on the storage : /var/mobile/Containers/Data/Application/12BD0B54-46B3-439F-9869-E06E1AC6CD87/Library/Application Support/data/vid1.mp4
    • from video online : http://www.rmh.de/9d0386eada217cd63a752458aeca89d6/9d0386eada217cd63a752458aeca89d6.mp4

    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.

    1 Reply Last reply
    0

    1/1

    3 May 2015, 10:59

    • Login

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