跳至主要内容

博文

目前显示的是 十二月, 2008的博文

解决iPhone无法播放站点提供的MP3的问题

正在开发的web站点提供语音文件给用户播放,发现iPhone 在播放MP3文件的时候遇到了一些问题,而从其他一些类似网站上下载的MP3文件却没有遇到这个问题。 第一直觉是MIME类型不对,但是比较了一下,都是一样的。iPhone里面点击MP3的连接之后会自动使用QuickTime播放器打开,然而QT直接弹出无法识别该链接…… 经过一番搜索,终于在Google的iPhoneWebDev论坛上找到了一个很有用的帖子: [quote] Configure Your Server HTTP servers hosting media files for iPhone must support byte-range requests, which iPhone uses to perform random access in media playback. (Byte-range support is also known as content-range or partial-range support.) Most, but not all, HTTP 1.1 servers already support byte-range requests. If you are not sure whether your media server supports byte-range requests, you can open the Terminal application in Mac OS X and use the curl command-line tool to download a short segment from a file on the server: curl -range 0-99http://example.com/test.mov-o/dev/null If the tool reports that it downloaded 100 bytes, the media server correctly handled the byte-range request. If it downloads the entire file, you may need to update the media server. Fo...

喝茶

办公室里头喝茶。 有朋友从尼泊尔带回来的柠檬茶, 也有上百元的铁观音, 但喝来喝去, 都觉得不如家乡的茉莉花茶口感亲切。 淡淡的清香, 冬日的早上喝着觉得很温暖。