HTTP Living Streaming(缩写HLS)是由苹果公司提出的基于 HTTP 的流媒体网络传输协议。在网络视频直播服务中,基于HLS协议构建的流媒体传输服务能更好的适应现有的网络,为用户提供接近实时的播放体验。本文介绍了Android平台上VLC开源播放器的HLS流解析部分实现,然后针对3G网络环境对播放器进行优化和改进。最后采用凤凰中文频道(支持HLS协议)作为测试源,结果表明改进后的播放器在3G网络环境播放体验大幅提升。%HTTP Live Streaming(also known as HLS) is an HTTP-based media streaming communications proto-col implemented by Apple Inc. On network live video services,the streaming media transport services based on HLS proto-cols can better adapt to the existing network,which can provide users with near real-time playback experience. This article describes implementation of HLS streaming parsing of VLC,which is a open-source media player on Android. Then opti-mize and improve the player aim at the 3G network environment. At last,taking the phoenix Chinese channel(support HLS protocol) as a test source,the results show that playback experience of the player significantly boost over the 3G network after improvement.
展开▼