关于Flash无间断播放音视频算法

来源:互联网 发布:淘宝达人和微淘区别 编辑:程序博客网 时间:2024/04/28 09:48

今日关于无间断预载机制从GLF那受教不少,仔细想了下可以这样公式:

 

//基本公式:
// waitTime + totalTimeLine = totalBytes / downloadSpeed (理想状态)
// waitTime + totalTimeLine + C = totalBytes / downloadSpeed (一般状态)
/*
waitTime --- 用户总共需要等待的时间,包含了载入等待和载入中等待时间
totalTimeLine ---全部播放时间
C --- 偏差常量
totalBytes -- 总数据量
downloadSpeed --- 下载速度
*/

 

原创粉丝点击