Results 1 to 4 of 4

Thread: how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/audio

  1. #1
    Join Date
    Feb 2011
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/audio

    I want to play remote video/audio file from nokia c6, N82, 5800 XpressMusic mobile (Mobile is connect to WLAN for internet). I use code like


    Qt Code:
    1. Phonon::MediaObject m_MediaObject;
    2. Phonon::AudioOutput m_AudioOutput;
    3. MediaVideoWidget *m_videoWidget;
    4.  
    5. Phonon::Path m_audioOutputPath = Phonon::createPath(&m_MediaObject, &m_AudioOutput);
    6. Phonon::Path path= Phonon::createPath(&m_MediaObject, m_videoWidget);
    7. Phonon::MediaSource src=Phonon::MediaSource(QUrl("http;//172.168.10.3/videos/1.mp4")));
    8. m_MediaObject.setCurrentSource(src);
    9. m_MediaObject.play();
    To copy to clipboard, switch view to plain text mode 

    //////////////////////////////////////////////////////////////////
    it works fine on QT Simulator. But doesn't work on nokia devices. it shows an error.
    Loading clip failed: Not supported.

    I use in project (.pro) file the capability like

    CONFIG += mobility
    MOBILITY += multimedia

    symbian {
    TARGET.UID3 = 0xe0e5de6d
    TARGET.CAPABILITY = NetworkServices MultimediaDD
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    }

    BUT it doesn't work.
    BUT the same file I can play keeping on mobile device memory card like local file.
    please can you help me about this matter.

    I am trying to solve it for a few days but no solution I get.
    please help me.

    hArUn.
    Last edited by high_flyer; 31st March 2011 at 09:47. Reason: code tags

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/a

    Loading clip failed: Not supported.
    Sounds like the mp4 codec is either missing or not found.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Feb 2011
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/a

    @high_flyer
    thanks for reply.
    I Can't understand your reply.
    please clarify. help me to solve the problem.

  4. #4
    Join Date
    Feb 2011
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/a

    hi
    are there somebody to help me?
    please give me your mail ID, I will send my project for testing.

Similar Threads

  1. How to create custom (streaming video) Phonon::MediaSource?
    By high_flyer in forum Qt Programming
    Replies: 2
    Last Post: 17th February 2017, 21:30
  2. Replies: 1
    Last Post: 24th January 2011, 03:42
  3. Phonon won't play audio file
    By kar in forum Qt Programming
    Replies: 5
    Last Post: 29th October 2010, 02:41
  4. Phonon(video and audio separately)
    By Fastman in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2010, 07:30
  5. Replies: 0
    Last Post: 5th August 2008, 11:54

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.