User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:22.214.171.124) Gecko/20110616 Thunderbird/3.1.11
I have a problem with delivering video content through PHP to QuickTime
X. When I hit the url for the video file being generated by our code,
QuickTime X will open up, display a "Loading Video" message and then
proceed to do nothing. Watching the process in wireshark, it gets
delivered roughly 7kb before just ceasing to get any content. I've
checked PHP and Apache logs, and there are no errors, no timeouts. It's
like QTX just stops listening but isn't aware that it has.
I get intermittent playback when I mess around with rapidly trying to
play it multiple times. Watching the logs as I hit the php file that is
to return video content, I see the following headers come through when
it stalls and fails to play.
[Host] => -snip-
[Range] => bytes=0-1
[Connection] => close
[User-Agent] => Apple Mac OS X v10.6.8 CoreMedia v126.96.36.199K549
[Accept] => */*
[Accept-Encoding] => identity
I've tried to reply to this with various header responses, including
HTTP/1.1 200 OK, HTTP/1.1 416 Requested range not satisfiable, setting
Accept-Ranges: None, returning a single byte with Content-Length of 1,
trying to give it a content-encoding it's happy with... nothing seems to
constistently work. I usually get one or two plays before it just stops
working again. Each time I test playback I'm clearing my quicktime cache
and my firefox cache.
On the few times I'm lucky and it either asks a second time for data
after I feed it my headers, I get:
Why is it saying that it is QuickTime/7.6.6? It certainly is QuickTime X
that is hitting the server. When it gives me this user agent and
non-range request, it works fine. When it asks for the range request
first, it 98% of the time fails utterly, just pausing middownload.
If I close QTX and open QT7 so that the browser defaults to 7 for
playback, I never get the CoreMedia thing, only the QT7 headers, and the
video is downloaded and plays perfectly.
Is there any advice anyone can offer me on this? I apologise if this is
something terribly obvious I'm missing. My background is Linux and
Windows, so I'm not entirely familiar with the Mac OSX methodologies,
and processes. Also please note I'm not using QT Kit or any such
libraries, it's a pure PHP script. Even testing using a simple echo
fread() results in the same thing.
Thanks in advance for any help you can give,
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden