Changeset 273730 in webkit
- Timestamp:
- Mar 2, 2021, 7:37:23 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 24 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/mediastream/MediaStream-video-element-expected.txt (modified) (2 diffs)
-
LayoutTests/fast/mediastream/MediaStream-video-element.html (modified) (2 diffs)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/Scripts/Preferences/WebPreferences.yaml (modified) (1 diff)
-
Source/WTF/wtf/PlatformEnableCocoa.h (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/AudioTrack+MediaSource.idl (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/DOMURL+MediaSource.idl (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/SourceBuffer.idl (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/SourceBufferList.idl (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/TextTrack+MediaSource.idl (modified) (1 diff)
-
Source/WebCore/Modules/mediasource/VideoTrack+MediaSource.idl (modified) (1 diff)
-
Source/WebCore/PAL/ChangeLog (modified) (1 diff)
-
Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj (modified) (4 diffs)
-
Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h (modified) (1 diff)
-
Source/WebCore/PAL/pal/spi/cocoa/AVStreamDataParserSPI.h (added)
-
Source/WebCore/bindings/js/WebCoreBuiltinNames.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLMediaElement.idl (modified) (1 diff)
-
Source/WebCore/html/track/AudioTrack.idl (modified) (1 diff)
-
Source/WebCore/html/track/TextTrack.idl (modified) (1 diff)
-
Source/WebCore/html/track/VideoTrack.idl (modified) (1 diff)
-
Source/WebCore/platform/graphics/MediaPlayer.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/ios/TestControllerIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r273727 r273730 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Enable MEDIA_SOURCE in IOS Simulator 4 https://bugs.webkit.org/show_bug.cgi?id=222041 5 6 Reviewed by Eric Carlson. 7 8 * fast/mediastream/MediaStream-video-element.html: 9 Update to sort properties lexicographically. 10 * fast/mediastream/MediaStream-video-element-expected.txt: 11 1 12 2021-03-02 Rob Buis <rbuis@igalia.com> 2 13 -
trunk/LayoutTests/fast/mediastream/MediaStream-video-element-expected.txt
r267644 r273730 32 32 33 33 video.videoTracks[0] properties: 34 track.id = <UUID>35 track.kind = main36 track.label = Mock video device 137 track.language =38 track.selected = true34 id = <UUID> 35 kind = main 36 label = Mock video device 1 37 language = 38 selected = true 39 39 40 40 **** check audio tracks **** … … 45 45 46 46 video.audioTracks[0] properties: 47 track.id = <UUID>48 track.kind = main49 track.label = Mock audio device 150 track.language =51 track.enabled = true47 enabled = true 48 id = <UUID> 49 kind = main 50 label = Mock audio device 1 51 language = 52 52 53 53 PASS successfullyParsed is true -
trunk/LayoutTests/fast/mediastream/MediaStream-video-element.html
r258255 r273730 45 45 function checkElementTrack(track) 46 46 { 47 let properties = []; 47 48 enumerateProperties(track, function(property, value) { 48 49 if (property == "sourceBuffer") … … 50 51 if (property == "id") 51 52 value = "<UUID>"; 52 debug(` track.${property} = ${value}`);53 properties.push({property:property, value:value}); 53 54 }); 55 properties.sort((a, b) => { return a.property.localeCompare(b.property); }); 56 properties.forEach(item => debug(` ${item.property} = ${item.value}`)); 54 57 } 55 58 -
trunk/Source/WTF/ChangeLog
r273700 r273730 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Enable MEDIA_SOURCE in IOS Simulator 4 https://bugs.webkit.org/show_bug.cgi?id=222041 5 6 Reviewed by Eric Carlson. 7 8 * Scripts/Preferences/WebPreferences.yaml: 9 Move this settings out of ENABLE(MEDIA_SOURCE) to allow existing binding code to compile. 10 * wtf/PlatformEnableCocoa.h: 11 1 12 2021-03-01 Truitt Savell <tsavell@apple.com> 2 13 -
trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml
r272987 r273730 1423 1423 MediaSourceEnabled: 1424 1424 type: bool 1425 condition: ENABLE(MEDIA_SOURCE)1426 1425 defaultValue: 1427 1426 WebKitLegacy: -
trunk/Source/WTF/wtf/PlatformEnableCocoa.h
r273657 r273730 329 329 #endif 330 330 331 #if !defined(ENABLE_MEDIA_SOURCE) && !PLATFORM(MACCATALYST) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) && !PLATFORM(IOS_FAMILY_SIMULATOR)331 #if !defined(ENABLE_MEDIA_SOURCE) && !PLATFORM(MACCATALYST) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) 332 332 #define ENABLE_MEDIA_SOURCE 1 333 333 #endif -
trunk/Source/WebCore/ChangeLog
r273728 r273730 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Enable MEDIA_SOURCE in IOS Simulator 4 https://bugs.webkit.org/show_bug.cgi?id=222041 5 <rdar://problem/74433510> 6 7 Reviewed by Eric Carlson. 8 9 MediaSource IDLs were protected by MEDIA_SOURCE but not by MediaSource runtime flag. 10 Update IDLs accordingly. 11 12 Covered by existing tests. 13 14 * Modules/mediasource/AudioTrack+MediaSource.idl: 15 * Modules/mediasource/DOMURL+MediaSource.idl: 16 * Modules/mediasource/SourceBuffer.idl: 17 * Modules/mediasource/SourceBufferList.idl: 18 * Modules/mediasource/TextTrack+MediaSource.idl: 19 * Modules/mediasource/VideoTrack+MediaSource.idl: 20 * bindings/js/WebCoreBuiltinNames.h: 21 * html/HTMLMediaElement.idl: 22 Minor change to kick in binding generator. 23 * html/track/AudioTrack.idl: 24 * html/track/TextTrack.idl: 25 * html/track/VideoTrack.idl: 26 * platform/graphics/MediaPlayer.cpp: 27 (WebCore::MediaPlayer::mediaEngine): 28 If AVStreamDataParser is not available, MSE backend will not be available. 29 Update assertion accordingly. 30 1 31 2021-03-02 Zalan Bujtas <zalan@apple.com> 2 32 -
trunk/Source/WebCore/Modules/mediasource/AudioTrack+MediaSource.idl
r267449 r273730 27 27 [ 28 28 Conditional=MEDIA_SOURCE, 29 EnabledBySetting=MediaSource, 29 30 ImplementedBy=AudioTrackMediaSource 30 31 ] partial interface AudioTrack { -
trunk/Source/WebCore/Modules/mediasource/DOMURL+MediaSource.idl
r267449 r273730 33 33 [ 34 34 Conditional=MEDIA_SOURCE, 35 EnabledBySetting=MediaSource, 35 36 ImplementedBy=DOMURLMediaSource 36 37 ] partial interface DOMURL { -
trunk/Source/WebCore/Modules/mediasource/SourceBuffer.idl
r267813 r273730 37 37 ActiveDOMObject, 38 38 Conditional=MEDIA_SOURCE, 39 EnabledBySetting=MediaSource, 39 40 ExportMacro=WEBCORE_EXPORT, 40 41 Exposed=Window -
trunk/Source/WebCore/Modules/mediasource/SourceBufferList.idl
r267813 r273730 33 33 Conditional=MEDIA_SOURCE, 34 34 GenerateIsReachable=Impl, 35 EnabledBySetting=MediaSource, 35 36 Exposed=Window 36 37 ] interface SourceBufferList : EventTarget { -
trunk/Source/WebCore/Modules/mediasource/TextTrack+MediaSource.idl
r267449 r273730 27 27 [ 28 28 Conditional=MEDIA_SOURCE, 29 EnabledBySetting=MediaSource, 29 30 ImplementedBy=TextTrackMediaSource 30 31 ] partial interface TextTrack { -
trunk/Source/WebCore/Modules/mediasource/VideoTrack+MediaSource.idl
r267449 r273730 26 26 [ 27 27 Conditional=MEDIA_SOURCE, 28 EnabledBySetting=MediaSource, 28 29 ImplementedBy=VideoTrackMediaSource 29 30 ] partial interface VideoTrack { -
trunk/Source/WebCore/PAL/ChangeLog
r273700 r273730 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Enable MEDIA_SOURCE in IOS Simulator 4 https://bugs.webkit.org/show_bug.cgi?id=222041 5 6 Reviewed by Eric Carlson. 7 8 Add missing header declarations in AVStreamDataParserSPI.h and use it for simulator. 9 10 * PAL.xcodeproj/project.pbxproj: 11 * pal/spi/cocoa/AVFoundationSPI.h: 12 * pal/spi/cocoa/AVStreamDataParserSPI.h: Added. 13 1 14 2021-03-01 Truitt Savell <tsavell@apple.com> 2 15 -
trunk/Source/WebCore/PAL/PAL.xcodeproj/project.pbxproj
r273214 r273730 129 129 416E995323DAE6BE00E871CB /* AudioToolboxSoftLink.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 416E995123DAE6BD00E871CB /* AudioToolboxSoftLink.cpp */; }; 130 130 416E995423DAE6BE00E871CB /* AudioToolboxSoftLink.h in Headers */ = {isa = PBXBuildFile; fileRef = 416E995223DAE6BE00E871CB /* AudioToolboxSoftLink.h */; }; 131 41B99E4625DD70160007829A /* AVStreamDataParserSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 41B99E4525DD70150007829A /* AVStreamDataParserSPI.h */; }; 131 132 41E1F344248A6A000022D5DE /* VideoToolboxSoftLink.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 416E995523DAEFF700E871CB /* VideoToolboxSoftLink.cpp */; }; 132 133 442956CD218A72DF0080DB54 /* RevealSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 442956CC218A72DE0080DB54 /* RevealSPI.h */; }; … … 336 337 416E995523DAEFF700E871CB /* VideoToolboxSoftLink.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VideoToolboxSoftLink.cpp; sourceTree = "<group>"; }; 337 338 416E995623DAEFF700E871CB /* VideoToolboxSoftLink.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VideoToolboxSoftLink.h; sourceTree = "<group>"; }; 339 41B99E4525DD70150007829A /* AVStreamDataParserSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AVStreamDataParserSPI.h; sourceTree = "<group>"; }; 338 340 442956CC218A72DE0080DB54 /* RevealSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RevealSPI.h; sourceTree = "<group>"; }; 339 341 4450FC9D21F5F602004DFA56 /* QuickLookSoftLink.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = QuickLookSoftLink.mm; sourceTree = "<group>"; }; … … 491 493 0C7785701F45130F00F4EBB6 /* AVFoundationSPI.h */, 492 494 0C2DA1221F3BEB4900DBC317 /* AVKitSPI.h */, 495 41B99E4525DD70150007829A /* AVStreamDataParserSPI.h */, 493 496 29CDEB9E2548D055007C07B7 /* AXSpeechManagerSPI.h */, 494 497 0C2DA1231F3BEB4900DBC317 /* CFNSURLConnectionSPI.h */, … … 818 821 0C7785891F45130F00F4EBB6 /* AVFoundationSPI.h in Headers */, 819 822 0C2DA13E1F3BEB4900DBC317 /* AVKitSPI.h in Headers */, 823 41B99E4625DD70160007829A /* AVStreamDataParserSPI.h in Headers */, 820 824 29CDEBA62548D57F007C07B7 /* AXSpeechManagerSPI.h in Headers */, 821 825 CDF91113220E4EEC001EA39E /* CelestialSPI.h in Headers */, -
trunk/Source/WebCore/PAL/pal/spi/cocoa/AVFoundationSPI.h
r272188 r273730 42 42 43 43 #if ENABLE(MEDIA_SOURCE) 44 #if PLATFORM(IOS_FAMILY_SIMULATOR) 45 #import "AVStreamDataParserSPI.h" 46 #else 44 47 #import <AVFoundation/AVStreamDataParser.h> 48 #endif 45 49 #endif 46 50 -
trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h
r272852 r273730 255 255 macro(SpeechRecognitionResult) \ 256 256 macro(SpeechRecognitionResultList) \ 257 macro(SourceBuffer) \ 258 macro(SourceBufferList) \ 257 259 macro(StaticRange) \ 258 260 macro(StereoPannerNode) \ … … 370 372 macro(isLoading) \ 371 373 macro(isSecureContext) \ 374 macro(kind) \ 375 macro(language) \ 372 376 macro(localStreams) \ 373 377 macro(location) \ -
trunk/Source/WebCore/html/HTMLMediaElement.idl
r267813 r273730 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 25 27 26 typedef ( -
trunk/Source/WebCore/html/track/AudioTrack.idl
r267813 r273730 32 32 ] interface AudioTrack { 33 33 readonly attribute DOMString id; 34 [ ConditionallyReadWrite=MEDIA_SOURCE] attribute DOMString kind;34 [SettingsConditionallyReadWrite=MediaSource] attribute DOMString kind; 35 35 readonly attribute DOMString label; 36 [ ConditionallyReadWrite=MEDIA_SOURCE] attribute DOMString language;36 [SettingsConditionallyReadWrite=MediaSource] attribute DOMString language; 37 37 38 38 attribute boolean enabled; -
trunk/Source/WebCore/html/track/TextTrack.idl
r267813 r273730 38 38 [ImplementedAs=kindForBindings] attribute TextTrackKind kind; 39 39 readonly attribute DOMString label; 40 [ ConditionallyReadWrite=MEDIA_SOURCE] attribute DOMString language;40 [SettingsConditionallyReadWrite=MediaSource] attribute DOMString language; 41 41 readonly attribute DOMString inBandMetadataTrackDispatchType; 42 42 -
trunk/Source/WebCore/html/track/VideoTrack.idl
r267813 r273730 31 31 ] interface VideoTrack { 32 32 readonly attribute DOMString id; 33 [ ConditionallyReadWrite=MEDIA_SOURCE] attribute DOMString kind;33 [SettingsConditionallyReadWrite=MediaSource] attribute DOMString kind; 34 34 readonly attribute DOMString label; 35 [ ConditionallyReadWrite=MEDIA_SOURCE] attribute DOMString language;35 [SettingsConditionallyReadWrite=MediaSource] attribute DOMString language; 36 36 37 37 attribute boolean selected; -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r273568 r273730 326 326 327 327 if (currentIndex == notFound) { 328 #if PLATFORM(IOS_FAMILY_SIMULATOR) 329 ASSERT(identifier == MediaPlayerEnums::MediaEngineIdentifier::AVFoundationMSE); 330 #else 328 331 ASSERT_NOT_REACHED(); 332 #endif 329 333 return nullptr; 330 334 } -
trunk/Tools/ChangeLog
r273729 r273730 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Enable MEDIA_SOURCE in IOS Simulator 4 https://bugs.webkit.org/show_bug.cgi?id=222041 5 <rdar://problem/74433510> 6 7 Reviewed by Eric Carlson. 8 9 * WebKitTestRunner/ios/TestControllerIOS.mm: 10 (WTR::TestController::platformResetPreferencesToConsistentValues): 11 Disable MediaSource runtime flag on simulator since it lacks implementation of AVStreamDataParser. 12 1 13 2021-03-02 Aakash Jain <aakash_jain@apple.com> 2 14 -
trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
r273610 r273730 151 151 #if PLATFORM(IOS_FAMILY_SIMULATOR) 152 152 WKPreferencesSetVP9DecoderEnabled(preferences, false); 153 WKPreferencesSetMediaSourceEnabled(preferences, false); 153 154 #endif 154 155 }
Note:
See TracChangeset
for help on using the changeset viewer.