A <video> element with an http live stream displays the first frame of video but can not be played.
<rdar://9284748>
Created attachment 90305 [details] Proposed patch.
Attachment 90305 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:480: A case label should not be indented, but line up with its switch statement. [whitespace/indent] [4] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
http://trac.webkit.org/changeset/84497
Live streams still sometimes won't play.
The problem happens when seekToTime: is called on the AVPlayerItem immediately after AVFoundation reports that the stream's metadata is available, and neither the completion handler nor the periodic time observer fires. This leaves WebKit waiting for the seek to complete.
Two issues here: 1) the periodic time observer is an autorelease object, but we don't retain it so it it is deleted and *can't* ever fire. 1) our AVFoundation media engine state machine should not try to track when a seek is in progress, and should instead depend on AVFoundation to notify of buffering state changes.
Created attachment 92467 [details] Proposed patch.
Attachment 92467 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 92475 [details] Patch, with bug number.
http://trac.webkit.org/changeset/85913