public class WOWZDeviceUtils
extends java.lang.Object
| Constructor and Description |
|---|
WOWZDeviceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDeviceOrientation(Context context)
Gets the current orientation of the device.
|
static int |
getDeviceRotation(Context context)
Gets the rotation, in degrees, of the device, with 0 being the natural landscape orientation and 90 being the natural portrait orientation.
|
static int |
getSurfaceRotation(Context context)
Deprecated.
Use
getDeviceRotation(Context) instead. |
public static int getDeviceOrientation(Context context)
context - The application context.WOWZMediaConfig.ORIENTATION_LANDSCAPE or WOWZMediaConfig.ORIENTATION_PORTRAIT.public static int getDeviceRotation(Context context)
context - The application context.public static int getSurfaceRotation(Context context)
getDeviceRotation(Context) instead.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal