Find the video dimension of the stream
How do I listen for the video dimensions so I can adjust my UX?
Is there a way to know what's the resolution/dimension of the current stream?
To determine the video dimensions, e.g., to see if the streaming source is landscape or portrait mode, register a handler for the renderer.setVideoDisplayDimensionsChangedCallback
. This API is described at the following URLs for the Phenix SDKs:
Web: https://phenixrts.com/docs/web/low-level/#handling-dimension-changes
Android: https://phenixrts.com/docs/android/low-level/#handling-dimension-changes
iOS: https://phenixrts.com/docs/ios/low-level/?objective_c#handling-dimension-changes
©2020-2021 Phenix Real Time Solutions, Inc.