Recording URLs don't work on iPhone
I can't get the recording URLs to work on my iPhone. I just get the error "This movie could not be played." However, if I copy the file to my own server, it works when loading the file from there. Could you guys figure out what's going on and hopefully fix it? My guess is that its something in the HTTP headers. I noticed you guys don't send out a content length.
Here's an example:
Original:
http://api.twilio.com/2008-08-01/Acco...
Copied to my server:
http://twilio.kylemulka.com/monkey.wav
Same thing happened with the mp3 version:
http://api.twilio.com/2008-08-01/Acco...
And...
http://twilio.kylemulka.com/monkey.mp3
Here's an example:
Original:
http://api.twilio.com/2008-08-01/Acco...
Copied to my server:
http://twilio.kylemulka.com/monkey.wav
Same thing happened with the mp3 version:
http://api.twilio.com/2008-08-01/Acco...
And...
http://twilio.kylemulka.com/monkey.mp3
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hey Kyle, good find and thanks for testing with your server. There is indeed a problem with mp3/wav recording playback on the iPhone and looks like it might a HTTP header issue. We'll post something when we have a fix.
-evan -
Inappropriate?Any progress on this anyone?
Kyle's give me the same "Cannot play movie."
Can anyone else play the recordings through mobile safari?
I’m confused
-
Inappropriate?I actually found something interesting. If I turned off Wifi on my iphone, mp3s will play. That's odd, but some progress at least.
-
Inappropriate?Hi mterenzio, thanks for the additional information. We've fixed some issues but apparently not all.
-Evan -
Inappropriate?I'm also (still) seeing this problem. It's definitely some interaction between the twilio server and the iphone, as I can take a Twilio mp3 which the iPhone claims it can't play, move it to my apache server, and play it with no problems.
Here are the headers for a twilio mp3 moved to my apache server:
HTTP/1.1 200 OK
Date: Tue, 16 Jun 2009 06:14:37 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 16 Jun 2009 05:55:49 GMT
ETag: "200e805-a273-d3990340"
Accept-Ranges: bytes
Content-Length: 41587
Connection: close
Content-Type: audio/mpeg
And here's what Twilio serves for the same mp3:
HTTP/1.1 200 OK
Date: Tue, 16 Jun 2009 06:16:39 GMT
Server: Apache
X-Powered-By: PHP/5.1.6
Etag: 76b57e3b5d2aa2d385c9c83ff6bb7208
Last-Modified: Sat, 13 Jun 2009 11:23:06 PDT
Accept-Ranges: bytes
Content-Length: 41587
X-Served-By: HO3b26da6d6844df0967a1e02ad21f7015
Connection: close
Content-Type: audio/mpeg -
Thanks for pinging us Trevor. Unfortunately, I don't have a work around yet. The iPhone doesn't the honor the Accept-Ranges: none directive when fetching media files directly and we don't have Range request support for fetching audio recordings yet. -
Dang. -
Evan: Could you guys just link us straight to the S3 file? I'm pretty sure S3 supports range requests. I'm not 100% sure, but I think the iPhone supports 301 and 302 redirects. -
There is magic behind the scenes such as transcoding so your best bet is to host recordings yourself for the moment. -
Inappropriate?Out of curiosity, I tried turning off my iPhone's WiFi and could not play the mp3s, either using links (from email or Safari) or via embed elements in pages viewed via Safari.
I suppose that my app could push the recording mp3s somewhere like S3, but part of what I like about Twilio is that I don't have to do that.
I’m hopeful that you'll fix this.
Loading Profile...




EMPLOYEE

