V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
chipmuck
V2EX  ›  iDev

AV...Player 的坑坑坑。

  •  
  •   chipmuck · 2017-05-25 14:41:17 +08:00 · 4099 次点击
    这是一个创建于 2520 天前的主题,其中的信息可能已经有所发展或是发生改变。

    已经实现了基本播放的流程,现在有几个问题:

    1. 是否需要根据系统判断来兼容 avplayer.automaticallyWaitsToMinimizeStalling 的属性?

    2. 当上述属性设置为 YES 时,需要监听 avplayer.timeControlStatus,当缓冲量不够时,reasonForWaitingToPlay 的状态是 AVPlayerWaitingWhileEvaluatingBufferingRateReason / AVPlayerWaitingToMinimizeStallsReason。 然后对于前者,文档中说到:

    ... monitoring the playback buffer fill rate to determine if playback is likely to complete without interruptions ...

    所以经常会出现( always )一个一分多钟的视频需要加载到一大半才会开始播放,然而我需要在有一定缓冲后就开始播放,所以这该如何解决?

    1. 不用 HLS 流,能正常上架否?

    诚恳求解。

    2 条回复    2017-08-11 00:00:54 +08:00
    caniuse
        1
    caniuse  
       2017-05-26 09:44:44 +08:00
    上炕都费劲
    casatwy
        2
    casatwy  
       2017-08-11 00:00:54 +08:00
    我特么也遇到了,无解啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1205 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:21 · PVG 07:21 · LAX 16:21 · JFK 19:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.