Title: [264864] trunk/Source/WebCore
Revision
264864
Author
eric.carl...@apple.com
Date
2020-07-24 15:52:22 -0700 (Fri, 24 Jul 2020)

Log Message

[Cocoa] Tell AVAssetResourceLoadingContentInformationRequest that asset size is available immediately
https://bugs.webkit.org/show_bug.cgi?id=214759
<rdar://problem/63751958>

Reviewed by Jer Noble.

* platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
(WebCore::WebCoreAVFResourceLoader::responseReceived):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (264863 => 264864)


--- trunk/Source/WebCore/ChangeLog	2020-07-24 22:47:54 UTC (rev 264863)
+++ trunk/Source/WebCore/ChangeLog	2020-07-24 22:52:22 UTC (rev 264864)
@@ -1,3 +1,14 @@
+2020-07-24  Eric Carlson  <eric.carl...@apple.com>
+
+        [Cocoa] Tell AVAssetResourceLoadingContentInformationRequest that asset size is available immediately
+        https://bugs.webkit.org/show_bug.cgi?id=214759
+        <rdar://problem/63751958>
+
+        Reviewed by Jer Noble.
+
+        * platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm:
+        (WebCore::WebCoreAVFResourceLoader::responseReceived):
+
 2020-07-23  Simon Fraser  <simon.fra...@apple.com>
 
         steps() timing function on a transform animation triggers a render every frame

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm (264863 => 264864)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm	2020-07-24 22:47:54 UTC (rev 264863)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm	2020-07-24 22:52:22 UTC (rev 264864)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012-2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2012-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -40,6 +40,10 @@
 #import <wtf/SoftLinking.h>
 #import <wtf/text/CString.h>
 
+@interface AVAssetResourceLoadingContentInformationRequest (WebKitExtensions)
+@property (nonatomic, getter=isEntireLengthAvailableOnDemand) BOOL entireLengthAvailableOnDemand;
+@end
+
 namespace WebCore {
 
 class CachedResourceMediaLoader final : CachedRawResourceClient {
@@ -298,6 +302,9 @@
 
         [contentInfo setContentLength:contentRange.isValid() ? contentRange.instanceLength() : response.expectedContentLength()];
         [contentInfo setByteRangeAccessSupported:YES];
+        
+        if ([contentInfo respondsToSelector:@selector(setEntireLengthAvailableOnDemand:)])
+            [contentInfo setEntireLengthAvailableOnDemand:YES];
 
         if (![m_avRequest dataRequest]) {
             [m_avRequest.get() finishLoading];
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to