com.unity.webrtc
com.unity.webrtc copied to clipboard
[REQUEST]: WebRTC for tvOS (Apple TV)
Is your feature request related to a problem?
I'm currently developing a tvOS app that allows peer-to-peer streaming from your iPhone to the TV. When building for tvOS, the build fails.
Describe the solution you'd like
A native support for tvOS. Probably not much work since iOS is already supported.
Describe alternatives you've considered
No response
Additional context
No response
@lealon Oh, I have never tested the package on tvOS. Additionally, I don't have the AppleTV to test it. Is there a compile error when building for tvOS?
It seems like Unity is unable to locate the com.unity.webrtc dlls, like there's a linkage issue or something. error CS0234: The type or namespace name 'WebRTC' does not exist in the namespace 'Unity' (are you missing an assembly reference?)
When building for other platforms it builds fine.
I believe it might be a matter of marking the "tvOS" checkmark under the inspector screen
The specific error I'm getting (on Xcode): Building for tvOS, but the linked framework 'webrtc.framework' was built for iOS.
@lealon Thanks for sharing the detail. It would be the native plugin should build for tvOS.
XCFramework is the best way to distribute multiple frameworks like iOS and tvOS, but Unity doesn't support it right now. https://developer.apple.com/documentation/xcode/distributing-binary-frameworks-as-swift-packages
memo: WRS-370
I also would like to see this.