×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    video not played on meego

    Hi, trying to play video on N9 using the QML video element, but as soon as application launches , nothing happens.The screen remains blank, no video or audio is played.

    I have referred the following doc:

    http://doc.qt.nokia.com/qtmobility-1.2/qml-video.html

    i have already added the following in the .pro file:

    CONFIG += mobility
    MOBILITY += multimedia

    so any pointers on why this is happening.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: video not played on meego

    Do you have the correctly named video in the correct directory?

    Hartti

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: video not played on meego

    Are you embedding video in resource file? If yes then try to remove it from resource file and attach it in .pro file directly.

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: video not played on meego

    Check also that the video clip is of such a format that the phone has codecs for it in the first place. I.e., that the phone can play it without your app.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    Re: video not played on meego

    if i play the video directly from the device where it is placed/installed then it plays perfectly. I am sending the video by placing it in a folder in my project & mentioning the path of that folder in the .pro file.

    After the application is installed, i can see the same file at the correct location.

    just an update: In the following code, if i uncomment the visible : false & playing: true lines then the audio is heard but video is not seen:

    Code:
    Video {
            id: video
            x:0
            y:0
            width : 600
            height : 400
            anchors.fill: parent
            source: "video/animation_movie.mp4"
        
               // visible:  false;
             //   playing: true;

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,988

    Re: video not played on meego

    If the problem of non playing was path then how the audio got heard by setting that parameter as i mentioned in the previous post. Secondly the project also utilizes the drawing of images which are also in a similar folder at the same location & getting drawn perfectly.

    A similar bug also got reported , but the case was for Maemo 5:

    https://bugreports.qt.nokia.com/browse/QTMOBILITY-1424

  7. #7
    Registered User
    Join Date
    Aug 2011
    Posts
    32

    Re: video not played on meego

    I have seen the same issue, audio plays but video doesn't. You may need to set the following aegis credential:

    Code:
    <credential name="GRP::video" />
    <credential name="GRP::pulse-access" />
    If I don't remember wrong, new QtSDK sets those credential by default.

  8. #8
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: video not played on meego

    Also remember to do the below,

    as per the QTSDK1.1.3 release notes -
    "
    - If you use the QML Camera or Video elements of the Qt Mobility Multimedia API, use QGLWidget as a viewport or the
    application crashes when swiped. In other words, the main.cpp should look something like this:

    #include <QtGui/QApplication>

    #include <QtOpenGL/QGLWidget>
    #include <QtDeclarative>

    int main(int argc, char *argv[])
    {

    QApplication app(argc, argv);
    QDeclarativeView view;
    view.setViewport(new QGLWidget());
    view.setSource(QUrl("qrc:/qml/main.qml"));
    view.showFullScreen();
    return app.exec();
    }

    Correspondingly, include the following line in the .pro file:

    QT += opengl

    Hope this resolves your issue. I am able to play video using the QML Video element on N9 (both local and also streamed one)

Similar Threads

  1. i have played mpeg1 video but can't played mp4 and 3gp video please help urgent...
    By ziathegreat in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-06-29, 18:03
  2. How to retrieve last played video?
    By DeathBaba in forum Streaming and Video
    Replies: 1
    Last Post: 2008-12-15, 09:30
  3. Only audio is being played but no video using CVideoPlayerUtility
    By Agent Ethan Hunt in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2007-08-24, 12:16
  4. Video played as an audio file
    By nerique in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2007-02-22, 09:31
  5. can video be played via jsr135?
    By bamboomc in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-10-31, 09:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×