Fixed: screen time out during streaming in mediacodec mode.
Also, print log to indicate if the device is provisioned or not. Change-Id: I674e2fe4531cc79b4bf307939c4b08ba19207244 related-to-bug: 6821614
This commit is contained in:
@@ -18,6 +18,7 @@ import android.widget.Button;
|
||||
import android.view.Display;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.content.Context;
|
||||
|
||||
import android.view.SurfaceHolder;
|
||||
@@ -62,6 +63,8 @@ public class VideoPlayerView extends Activity {
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Display display = getWindowManager().getDefaultDisplay();
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
|
||||
height = display.getHeight();
|
||||
width = display.getWidth();
|
||||
context = this;
|
||||
|
||||
Reference in New Issue
Block a user