Results 1 to 4 of 4

Thread: Playing file with Phonon while stil downloading it.

  1. #1
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Playing file with Phonon while stil downloading it.

    I'm trying to play a file that I'm downloading at the same time. I have tried to start the download and then set the current source of phonon to that file, but phonon will play just the part that was already downloaded before the call to setCurrentSource() and then it will stop, even if there is more data. So, that would be something like:

    1. Start downloading file via async
    2. Start playing local file
    3. Play while not EOF (pause when buffer needed)

    Any ideas how could I do that?

  2. #2
    Join Date
    Sep 2010
    Location
    Germany
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: Playing file with Phonon while stil downloading it.

    Yep I got an idea, cause i had the same problem.

    First I was looking for a solution and finally I came up with this : (not the best way to solve the problem)

    Everytime I got new data (readyRead()) i pass this data to a class member and call setCurrentSource() again. Before I do this i save the time which has been played already and after calling setCurrentSource i seek that phonon media object to that time. it works pretty good even if i call stop to that media object and start again i don't get any kinds of lags or so on

  3. #3
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Playing file with Phonon while stil downloading it.

    That sound really durty. Isn't there any other method?

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

    Default Re: Playing file with Phonon while stil downloading it.

    Hi Sven !
    I AM NEW IN QT MOBILE APPLICATION. I ALSO WANT TO DO IT. BUT I GET ERROR MediaSource::Stream not yet handled.
    PLEASE GIVE YOUR CODE.

Similar Threads

  1. Playing Ogg Vorbis with Qt Phonon on Symbian^1
    By freemind in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 16th September 2010, 14:11
  2. Trouble with playing custom format in phonon
    By lilesh in forum Qt Programming
    Replies: 0
    Last Post: 3rd October 2009, 12:03
  3. Playing only some channels with Phonon
    By jfrousval in forum Qt Programming
    Replies: 0
    Last Post: 10th March 2009, 13:30
  4. Playing a stream using phonon module
    By ram136682 in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 28th August 2008, 14:42
  5. Phonon video not playing
    By SidGBF in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2008, 15:30

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.