Preventing Restart on Tilt

This setting prevents the restarting of a video when the viewer changes the orientation of the device.

Use the following steps to prevent a video from restarting when the device changes orientation (vertical to horizontal or horizontal to vertical):
  1. Open the application's AndroidManifest.xml file.
  2. Add the following attribute to the activity element: android:configChanges="orientation|keyboardHidden".

    For example:

    <activity android:name=".TestOoyalaSDKActivity" android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden" >
https://help.ooyala.com/sites/all/libraries/dita/en/video-platform/concepts/mobile_sdk_android_preventrestart.html

Was this article helpful?