画面の暗転/ちらつきの防止
ビデオ再生開始時にデバイスの画面が暗転またはちらつくのを防止するための設定です。
状況により、デバイスの画面が暗くなることがあります。これはSDK自体の問題 ではなく、Androidシステムに起因しており、おそらくはSurfaceView が関係しています。
デバイスの暗転またはちらつきを防止するには、アプリケーションの最初のレイアウトアクティビティに 次のXMLを追加します。
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/ooyala_container" android:layout_width="fill_parent" android:layout_height="fill_parent" > <SurfaceView android:layout_width="0dp" android:layout_height="0dp"/> . . your first layout here .