|Summary:||AVF: MediaPlayerPrivateAVFoundationObjC should not use -[AVPlayerItem isPlaybackBufferEmpty]|
|Product:||WebKit||Reporter:||Jer Noble <jer.noble>|
|Version:||528+ (Nightly build)|
|OS:||OS X 10.5|
Description Jer Noble 2011-04-06 14:11:38 PDT
-[AVPlayerItem isPlaybackBufferEmpty] often returns incorrect results. Instead, call -[AVPlayerItem loadedTimeRanges] and determine if the current time resides within those ranges.
Comment 2 Jer Noble 2011-04-06 14:22:57 PDT
This might result in the platformBufferedTimeRanges() being called more often. The tradeoff here is performance vs. correctness. As it stands, the current implementation, due to bugs in AVFoundation, is incorrect.
Comment 4 mitz 2011-04-06 14:43:10 PDT
Comment on attachment 88512 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=88512&action=review r!=me > Source/WebCore/ChangeLog:8 > + Query our cached loaded time array instead of asking AVPlayerItem if it's buffer is empty. it's -> its
Comment 5 Jer Noble 2011-04-06 14:53:28 PDT
Created attachment 88519 [details] Patch Fixed some inverted conditionals and extraneous apostrophes.
Comment 6 Darin Adler 2011-04-06 16:49:22 PDT
Comment on attachment 88519 [details] Patch That function name, contain, is really strange. It’s a verb.
Comment 7 Jer Noble 2011-04-06 16:58:38 PDT
(In reply to comment #6) > (From update of attachment 88519 [details]) > That function name, contain, is really strange. It’s a verb. I know, I intensely dislike it. Thanks for the review!
Comment 8 WebKit Commit Bot 2011-04-06 20:34:24 PDT
Comment on attachment 88519 [details] Patch Clearing flags on attachment: 88519 Committed r83135: <http://trac.webkit.org/changeset/83135>
Comment 9 WebKit Commit Bot 2011-04-06 20:34:27 PDT
All reviewed patches have been landed. Closing bug.