×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Crash while using Phonon to playback video

    Hello Everyone,

    I am writing a very simple application to play video. This is my code thus far...and I cannot figure out why my emulator keeps crashing:

    I originally had developed this in QMainWindow but there was no video. So I did some research and turns out that QDialog could play the file.

    I can hear the audio and see the video, but I receive the following errors:
    "SharedPointer: pointer 0xa2d15f0 already has reference counting
    Invalid parameter passed to C runtime function.
    Invalid parameter passed to C runtime function."


    If I try to port this code to my N8 then I receive the following error:
    Executable file: 11115 2010-12-21T22:31:27 C:\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\videoExample.exe
    Package: 10732 2010-12-21T22:31:28 C:\Users\zubin\Desktop\RajaniWorkingArea\videoExample\videoExample.sis
    Deploying application to 'Nokia N8-00 USB (COM7)'...
    Copying installation file...
    Installing application...
    Starting application...
    Application running with pid 1277.
    ADEV 1292999308 1280 Setting callback granulatiry percentage to 40

    Process 1277, thread 1280 stopped at 0x7c28b5e0: A data abort exception has occurred.
    Finished.


    Here is the code:
    Code:
    #include "dialog.h"
    #include "ui_dialog.h"
    #include <Phonon/VideoPlayer>
    #include <QUrl>
    
    Dialog::Dialog(QWidget *parent) :
        QDialog(parent),
        ui(new Ui::Dialog)
    {
        ui->setupUi(this);
    
        Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory,  this);
         connect(player, SIGNAL(finished()), player, SLOT(deleteLater()));
         player->play(Phonon::MediaSource("\\videoExample\\test.mp4"));
    
    }
    
    Dialog::~Dialog()
    {
        delete ui;
    }
    I also read somewhere that I should add:
    TARGET.CAPABILITY += "NetworkServices ReadDeviceData in my .pro file, which I did.
    I also added QT += phonon

    None of the above seems to solve the problem. Please let me know how to fix this.

    Thanks.

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Re: Crash while using Phonon to playback video

    FYI I am using Qt creator 2.01 and Qt 4.7

    Thanks.

  3. #3
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,349

    Re: Crash while using Phonon to playback video

    I believe you are getting this message on windows not on device Process 1277, thread 1280 stopped at 0x7c28b5e0: A data abort exception has occurred.
    Finished.
    .
    If that is the case then windows might not have the codec to play the file
    This can be a couple of things:
    1. You do not have the correct codec installed. Media Player might use a different codec (even internal code). Check the capabilities of the backend.
    2. There's something wrong with the backend. In your case that would be the DS backend I think.
    3. You did not create the correct Phonon/Qt code to play the video. Hence the question, how do you open the file.

Similar Threads

  1. MP3 playback: CRASH (w/o exception) when player is closed during prefetch
    By cryptoalex in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2009-11-20, 11:23
  2. How to playback another video while recording?
    By pelepeng in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-07-09, 11:14

Posting Permissions

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