“人生一梦,白云苍狗。错错对对,恩恩怨怨,终不过日月无声、水过无痕。所难弃者,一点痴念而已!”
昨天折腾了下和HTTP Live Streaming 相关的咚咚。。。其实,这个水很深,要看要学的还很多,粗略记几笔。
HTTP Live Streaming lets you send audio and video over HTTP from an ordinary web server for playback on iOS-based devices—including iPhone, iPad, iPod touch, and Apple TV—and on desktop computers (Mac OS X). HTTP Live Streaming supports both live broadcasts and prerecorded content (video on demand). HTTP Live Streaming supports multiple alternate streams at different bit rates, and the client software can switch streams intelligently as network bandwidth changes. HTTP Live Streaming also provides for media encryption and user authentication over HTTPS, allowing publishers to protect their work.
详细的资料: HTTP Live Streaming (draft-pantos-http-live-streaming-06 ) &http://en.wikipedia.org/wiki/HTTP_Live_Streaming
还是图片比文字要更直观易懂些: ( 前2张来自APPLE <HTTP Live Streaming Overview>, 后一张来自Akami <Akamai_HDNetwork_Encoding_BP_iPhone_iPad> )
# APPLE
# Akamai 解决方案
看过了这三张图,是不是一目了然了呢?...
# 再来看些访问log...
192.168.0.101 - - [23/Sep/2011:15:14:45 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8L1 (iPhone; U; CPU OS 4_3_5 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:45 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 93 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:45 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:46 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:46 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 93 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 0
192.168.0.101 - - [23/Sep/2011:15:14:46 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 93 "-" "AppleCoreMedia/1.0.0.8L1 (iPhone; U; CPU OS 4_3_5 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:48 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 200 93 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 0
192.168.0.101 - - [23/Sep/2011:15:14:49 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 2 "-" "AppleCoreMedia/1.0.0.8L1 (iPhone; U; CPU OS 4_3_5 like Mac OS X; zh_cn)" 0
192.168.0.100 - - [23/Sep/2011:15:14:50 +0800] "GET /hls_test/sample_ep_512k-00001.ts HTTP/1.1" 200 1391200 "-" "AppleCoreMedia/1.0.0.8J2 (iPad; U; CPU OS 4_3_3 like Mac OS X; zh_cn)" 2
192.168.0.101 - - [23/Sep/2011:15:14:52 +0800] "GET /hls_test/stream_ep_512k.m3u8 HTTP/1.1" 206 93 "-" "AppleCoreMedia/1.0.0.8L1 (iPhone; U; CPU OS 4_3_5 like Mac OS X; zh_cn)" 0
其实这个也还是蛮好玩的 ;-)
(K.Ï.Ï.S) |