Hi, I have an app which uses AR.context.startVideoPlayer and opens the video in android media player. The problem I have is that the display turns off and I want to make the to keep the screen on while the video is playing. In normal activities you could use getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
but here since I don't have access to mediaplayer class I don't know how to tell my app to set the flag of media player class to set the screen on. I'll appreciate if you can help me with this.
Thanks very much
about 3 years ago
Please implement custom behaviour for this scenario to enjoy full control.
Have a look at the Native POI Detail Page example to see how you can notify your native code about changes in the AR- context. That way you can tell native environment to play a certain video and e.g. preview it as centered VideoView on top of the camera.