Results 1 to 12 of 12

Thread: Cannot connect phonon

  1. #1
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Cannot connect phonon

    Hi,

    I configured qt4.4 with phonon and use phonon in my sample application. When i run the project and try to play a song, it doesn't play.

    In output log it shows warning like this..,

    WARNING: bool __thiscall Phonon::FactoryPrivate::createBackend(void) phonon backend plugin could not be loaded
    Phonon::createPath: Cannot connect Phonon::MediaObject(no objectName) to Phonon::AudioOutput(no objectName).


    What i should do to solve this problem. Kindly help

    I am using qt4.4 beta, vs2005.

    Thanks in advance,
    Bala
    Last edited by balajir; 15th July 2009 at 06:43.

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    Have you got, this dll built in your qt dir?
    QTDIR\plugins\phonon_backend\phonon_ds94.dll

    And I am not sure but may be you require directx dlls to run this multimedia apps. Because DirectShow, QuickTime, and GStreamer will be required for sound apps.

  3. #3
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Re: Cannot connect phonon

    No, phonon_ds94.dll is not in my qt dir... there is no folder named "phonon_backend" in plugin folder.. I got phonon.dll in my lib... thats al..

    What i should do now to get this dll for phonon backend?

    Kindly help me what i need to do?

    Thanks in advance
    Bala

  4. #4
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    I dont know, what configure options you chose @ the time of building qt with phonon support. But ideally you should have that dll, on windows. You try one thing, in your .pro file add this
    QT += phonon.

  5. #5
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Re: Cannot connect phonon

    I configured qt with phonon like this

    configure -platform win32-msvc2005 -phonon

    and QT+= phonon is in my pro file...

    For phonon_backend should i download and install anything in my system before configuring qt.. like gstreamer etc... If so what i should and may i know the procedure..

    Thanks in advance
    Bala

  6. #6
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    I suggest you should go through this similar post

    http://www.qtcentre.org/forum/f-qt-p...ded-20848.html

    This says how to configure qt for phonon support.
    See, on windows phonon uses DirectShow that uses DirectX, on Mac it uses QuickTime, on Linux it uses GStreamer.
    Some version of DX is by-default installed on windows.
    I cannot tell you the exact procedure because I uses Qt binary installer for windows and that builds it well with phonon support.

  7. #7
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Re: Cannot connect phonon

    Thank you..

    you mean u r using qt creator. even i used qt creator but it is also showing the same problem.

    I dunno how to get that phonon_ds94.dll.. Might be problem will be solved if i find that.

    Thanks 4 ur reply.
    Bala

  8. #8
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    Quote Originally Posted by balajir View Post
    Thank you..
    you mean u r using qt creator. even i used qt creator but it is also showing the same problem.
    No, qt creator is not a matter here, thats just IDE, the important is how qt library framework built.

    Can you send me your code, I will try that on my environment. Because I have phonon support. If it run on my environment, then may be you have to re-configure the qt.

  9. #9
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    One more thing, I want to add here.
    I tried building Qt sound example for sound player.
    It runs well by-default. But if I delete the phonon_backend folder, then it doesn't do anything. But its not giving any warning also.

  10. #10
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Re: Cannot connect phonon

    I just created a sample for phonon and i added the .cpp coding here.. when clicking pushButton it should work.


    Qt Code:
    1. #include "mediastream.h"
    2. #include "ui_mediastream.h"
    3.  
    4. CMediaStream::CMediaStream(QWidget *parent)
    5. : QMainWindow(parent), ui(new Ui::CMediaStream)
    6. {
    7. ui->setupUi(this);
    8.  
    9. }
    10.  
    11. CMediaStream::~CMediaStream()
    12. {
    13. delete ui;
    14. }
    15.  
    16. void CMediaStream::on_pushButton_clicked()
    17. {
    18. Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
    19. mediaObject->setCurrentSource(QString("E:/qt_spotify/multimedia/mp3/Beethoven.mp3"));
    20. Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
    21.  
    22. Phonon::createPath(mediaObject, audioOutput);
    23. Phonon::SeekSlider *slider = new Phonon::SeekSlider(this);
    24.  
    25.  
    26. slider->setObjectName(QString::fromUtf8("SeekSlider"));
    27. slider->setGeometry(QRect(220, 140, 150, 24));
    28. slider->setMediaObject(mediaObject);
    29. slider->show();
    30. mediaObject->play();
    31.  
    32. }
    To copy to clipboard, switch view to plain text mode 

    And i configured with phonon, but there is no backend folder in that...

    Can u plz explain wat qt you are using.. Are you using qt creator or open source.. how u configured if open source.. wat are the additional framework or libraries you installed for qt.. And should i include any extra environment path other that qt/bin path.

    Thanks in advance
    Bala
    Last edited by jpn; 16th July 2009 at 20:26. Reason: missing [code] tags

  11. #11
    Join Date
    Jul 2009
    Posts
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows
    Thanks
    2

    Default Re: Cannot connect phonon

    I am using qt-win-opensource-src-4.4.0-beta1

    and my environment variables are

    include
    -------
    C:\Program Files\Microsoft Visual Studio 8\VC\include;
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include;
    E:\QT_FOR_VS2005\qt-win-opensource-src-4.4.0-beta1\include;
    C:\Program Files\Microsoft DirectX SDK (March 2008)\Include;

    lib
    ----
    C:\Program Files\Microsoft Visual Studio 8\VC\lib;
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib;
    E:\QT_FOR_VS2005\qt-win-opensource-src-4.4.0-beta1\lib;
    C:\Program Files\Microsoft DirectX SDK (March 2008)\Lib;

    path
    -----
    %QTDIR%\bin;
    C:\Program Files\Microsoft DirectX SDK (March 2008)\Utilities\Bin\x86;
    E:\QT_FOR_VS2005\qt-win-opensource-src-4.4.0-beta1\bin;
    C:\Program Files\Microsoft Visual Studio 8\VC\bin;
    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin;;
    E:\gstreamer\bin


    system include
    --------------
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\;

    system lib
    ------------
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib\.

    system path
    ---------------
    C:\Program Files\PC Connectivity Solution\;
    E:\Symbian\S60\S60_5th_Edition_SDK_v0.9_4\epoc32\g cc\bin;
    E:\Symbian\S60\S60_5th_Edition_SDK_v0.9_4\epoc32\t ools;
    E:\Symbian\CarbideC++\x86Build\Symbian_Tools\Comma nd_Line_Tools;
    E:\Symbian\Perl\bin;
    C:\Program Files\Microsoft DirectX SDK (March 2008)\Utilities\Bin\x86;
    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    C:\Program Files\Microsoft SQL Server\90\Tools\binn\;
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\.;
    C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\WinNT\.;;;
    C:\Program Files\Common Files\Symbian\tools;
    E:\Symbian\ARMtoolchain\CSL Arm Toolchain\bin

  12. #12
    Join Date
    Dec 2007
    Posts
    628
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 89 Times in 87 Posts

    Default Re: Cannot connect phonon

    pls use qt code for code wrap..

    Can u plz explain wat qt you are using..
    Qt4.5.2 Commercial edition
    Are you using qt creator or open source..
    I am using visual studio 2008.

    wat are the additional framework or libraries you installed for qt..
    Nothing.

    And should i include any extra environment path other that qt/bin path.
    Not required. The path upto bin is fine.

  13. The following user says thank you to yogeshgokul for this useful post:

    balajir (24th July 2009)

Similar Threads

  1. I cannot run the phonon demos in the PXA270!Can someone help me?
    By Justin_W in forum Qt for Embedded and Mobile
    Replies: 8
    Last Post: 19th February 2010, 11:14
  2. Application only 'animates' once
    By arkain in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2009, 09:09
  3. Replies: 2
    Last Post: 24th April 2009, 13:13
  4. Phonon issues with DirectSound9
    By Zoltán in forum Qt Programming
    Replies: 2
    Last Post: 2nd February 2009, 03:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.