diff options
author | Herbert Dürr <hdu@apache.org> | 2014-05-15 09:46:26 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-05-15 19:03:28 +0300 |
commit | 75c804c1be8acf4c3fc9935b81e696918f33fd9d (patch) | |
tree | 038226742d13cda689c06b1439bf89411985aac5 /desktop/uiconfig | |
parent | c0a3bc0570439bad6f2e105cb38b4bd073839e05 (diff) |
AOO: #i124875# use AVAsset's best guess duration if AVPlayerItem isn't ready yet
in AV Foundation the most accurate media asset duration is available when the
AVPlayerItem's status changes to AVPlayerItemStatusReadyToPlay. There already
is an observer for this, but the upper layers expect getDuration() to be
synchronous and to return within a reasonable time. Since returning an
approximation is sufficient using the AVAsset's duration as fallback is fine.
Diffstat (limited to 'desktop/uiconfig')
0 files changed, 0 insertions, 0 deletions