Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4de0f4880b7b12b8f995bfbe480b41503219ab67
https://github.com/WebKit/WebKit/commit/4de0f4880b7b12b8f995bfbe480b41503219ab67
Author: Andy Estes <[email protected]>
Date: 2024-01-30 (Tue, 30 Jan 2024)
Changed paths:
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
A Source/WebKit/WebKitSwift/LinearMediaKit/LinearMediaPlayer.swift
M Source/WebKit/WebKitSwift/LinearMediaKit/LinearMediaTypes.swift
A Source/WebKit/WebKitSwift/LinearMediaKit/WKSLinearMediaPlayer.h
M Source/WebKit/WebKitSwift/WebKitSwift.h
Log Message:
-----------
[Cocoa] Introduce WKSLinearMediaPlayer
https://bugs.webkit.org/show_bug.cgi?id=268361
rdar://121907476
Reviewed by Jer Noble.
Declared an Objective-C interface for WKSLinearMediaPlayer and a protocol for
WKSLinearMediaPlayerDelegate. The interface is implemented in Swift, where it
conforms to the
Playable protocol. The properties exposed to Objective-C are bound to
Publishers via key-value
observing, and Playable functions are exposed to Objective-C via the delegate.
Since
@_objcImplementation classes can only contain stored properties representable
in Objective-C,
Swift-only types are stored indirectly via SwiftOnlyData.
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebKitSwift/LinearMediaKit/LinearMediaPlayer.swift: Added.
* Source/WebKit/WebKitSwift/LinearMediaKit/LinearMediaTypes.swift: Drive-by fix
to support Public SDK builds on visionOS.
* Source/WebKit/WebKitSwift/LinearMediaKit/WKSLinearMediaPlayer.h: Added.
* Source/WebKit/WebKitSwift/WebKitSwift.h:
Canonical link: https://commits.webkit.org/273806@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes