Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
743 stars 186 forks source link

[REQUEST]: WebRTC for tvOS (Apple TV) #772

Open lealon opened 2 years ago

lealon commented 2 years ago

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

karasusan commented 2 years ago

@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?

lealon commented 2 years ago

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

image
lealon commented 2 years ago

The specific error I'm getting (on Xcode): Building for tvOS, but the linked framework 'webrtc.framework' was built for iOS.

karasusan commented 2 years ago

@lealon Thanks for sharing the detail. It would be the native plugin should build for tvOS.

karasusan commented 2 years ago

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

karasusan commented 2 years ago

memo: WRS-370

raymondwelch33 commented 1 year ago

I also would like to see this.