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" >