com.unity.webrtc icon indicating copy to clipboard operation
com.unity.webrtc copied to clipboard

[REQUEST]: WebRTC for tvOS (Apple TV)

Open lealon opened this issue 2 years ago • 7 comments

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 avatar Jul 10 '22 13:07 lealon

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

karasusan avatar Jul 11 '22 08:07 karasusan

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 avatar Jul 12 '22 12:07 lealon

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

lealon avatar Jul 12 '22 13:07 lealon

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

karasusan avatar Jul 13 '22 01:07 karasusan

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 avatar Jul 13 '22 01:07 karasusan

memo: WRS-370

karasusan avatar Jul 13 '22 02:07 karasusan

I also would like to see this.

raymondwelch33 avatar Oct 02 '22 11:10 raymondwelch33