Bug 173269

Summary: Seeking an MSE video will begin playing audio long before rendering video
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, jlewis3, jonlee, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=173331
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing none

Description Jer Noble 2017-06-12 13:00:59 PDT
Seeking an MSE video will begin playing audio long before rendering video
Comment 1 Jer Noble 2017-06-12 13:25:01 PDT
Created attachment 312688 [details]
Patch
Comment 2 Eric Carlson 2017-06-12 13:43:18 PDT
Comment on attachment 312688 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=312688&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:440
> +    if (!CFEqual(kCMSampleBufferConsumerNotification_BufferConsumed, notificationName))

Nit: kCMSampleBufferConsumerNotification_BufferConsumed should be soft linked.

> Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:983
> +                CMSetAttachment(sampleCopy.get(), kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed, @{kBufferConsumedContext: context.get()}, kCMAttachmentMode_ShouldNotPropagate);

Nit: ditto for kCMSampleBufferAttachmentKey_PostNotificationWhenConsumed.
Comment 3 Jer Noble 2017-06-12 15:16:06 PDT
Created attachment 312707 [details]
Patch for landing
Comment 4 Jer Noble 2017-06-12 15:17:28 PDT
<rdar://problem/32448773>
Comment 5 Radar WebKit Bug Importer 2017-06-12 15:17:58 PDT
<rdar://problem/32723702>
Comment 6 Jon Lee 2017-06-12 15:30:32 PDT
<rdar://problem/32448773>
Comment 7 Jer Noble 2017-06-12 15:42:48 PDT
Created attachment 312711 [details]
Patch for landing
Comment 8 WebKit Commit Bot 2017-06-12 15:57:22 PDT
Comment on attachment 312711 [details]
Patch for landing

Clearing flags on attachment: 312711

Committed r218150: <http://trac.webkit.org/changeset/218150>
Comment 9 WebKit Commit Bot 2017-06-12 15:57:23 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Matt Lewis 2017-06-12 17:11:06 PDT
Follow-up build fix:
https://trac.webkit.org/changeset/218158/webkit