Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
753 stars 191 forks source link

fix: Exclude unit-tests for macOS plattform with OpenGL #823

Closed karasusan closed 1 year ago

karasusan commented 2 years ago

This pull request changes the behaviour of WebRTC initialization when using OpenGL on macOS or Windows.

After the change, WebRTC.Initialize method doesn't throw NotSupportedException even if you use OpenGL on all platforms. Alternatively, the constructor of VideoStreamTrack throws exception when using OpenGL graphics type on macOS and Windows.

It will makes availale to use the package for audio or data streaming with no supported graphics device.