QTKit and shoutcast streams
QTKit and shoutcast streams
- Subject: QTKit and shoutcast streams
- From: Gueorgui Tcherednitchenko <email@hidden>
- Date: Thu, 2 Feb 2006 11:29:08 +0100
Hi list,
Sorry for double-posting (here and on quicktime-api), but since there
have been QTKit questions on this list as well, I figured I might
give it a shot.
I'm trying to play a shoutcast stream using QTKit. After limited
success with my own code (the stream was stopping after a variable
period of time and not resuming playing, this with each stream I
tried on shoutcast.com), I've tried to see if the QTKitPlayer (source
downloaded from http://developer.apple.com/samplecode/QTKitImport/
QTKitImport.html).
Same problem here, when I open a .pls file I downloaded from a
shoutcast server, QTKitPlayer starts playing the stream, but at some
point stops and doesn't restart the stream automatically.
I've been watching the HTTP traffic with tcpdump, and data download
from the shoutcast server stops a bit before playback halts. I
suppose at this point, iTunes for instance shows its
"Prebuffering..." dialog and restarts playback from the stream.
The problem is, however, that when the playback stops, there is no
notification fired by QT, the movie's -currentTime still returns
values incremented each time I check, etc.
So my question is, is there a way to have QTKit automatically
reconnect the stream, or at least be notified that the streaming
stopped?
Thanks a bunch,
--
Gueorgui.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden