ashqal / MD360Player4Android

It is a lite library to render 360 degree panorama video for Android. VR Player.
Apache License 2.0
1.08k stars 357 forks source link

Is that OK to call mVRLibrary.onPause when Activity is in state onStop? #239

Open ItsRay opened 5 years ago

ItsRay commented 5 years ago

When I use multi-window and click another app, the activity of my app is in state onPause. According to the Usage, I have to call mVRLibrary.onPause. But this will lead the renderer to stop rendering. Can I change the timing of call like following?

Activity#onStop -> mVRLibrary#onPause
Activity#onStart -> mVRLibrary#onResume

I used GLSurfaceView to initialize this library and I saw the document say that Activity#onStop is one of the timing we could call GLSurfaceView#onPause. So maybe it's OK to do this?