确定MPMovieController比特率 [英] Determening MPMovieController bit-rate

查看:104
本文介绍了确定MPMovieController比特率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法确定MPMovieController正在播放的流的比特率?
我在iOS上的objective-c编程

Is there a way to determine the bit-rate of the stream an MPMovieController is playing? I am programming in objective-c on iOS

推荐答案

找到它,accessLog为您提供定期统计数据包括观察到的比特率:

Found it, the "accessLog" gives you periodic stats which include the observed bitrate:

MPMovieAccessLogEvent *evt=nil;
MPMovieAccessLog *accessL=[moviePlayer accessLog];
NSArray *events = accessL.events;
for (int i=0; i<[events count]; i++) {
    evt=[events objectAtIndex:i];
}
return evt.observedBitrate

这篇关于确定MPMovieController比特率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆