How to reduce iOS AVPlayer start delay

前端 未结 6 703
渐次进展
渐次进展 2020-12-22 15:06

Note, for the below question: All assets are local on the device -- no network streaming is taking place. The videos contain audio tracks.

I\'m working on an iOS a

6条回答
  •  鱼传尺愫
    2020-12-22 15:45

    Here are several properties and methods provided by the AVAsset class that may help:

    - (void)_pu_setCachedDuration:(id)arg1;
    - (id)pu_cachedDuration; 
    - (struct
     { 
       long long x1; 
       int x2;
       unsigned int x3; 
       long long x4; 
    })pu_duration;
    - (void)pu_loadDurationWithCompletionHandler:(id /* block */)arg1;
    

提交回复
热议问题