<div dir="ltr"><div><div><div>Hi,<br><br>In this class there is the following comment in onPause method.<br><br>/*<br> * Pausing here generates errors because the vout is constantly<br> * trying to refresh itself every 80ms while the surface is not<br> * accessible anymore.<br> * To workaround that, we keep the last known position in the playlist<br> * in savedIndexPosition to be able to restore it during onResume().<br> */<br><br></div>Instead of doing this, I propose another solution, where the surface is detached and re-attached on resume (using surfaceCreate and surfaceDestroy methods) and the pause method of LibVLC is used (instead of stop). It wouldn't be necessary to save the current position and time anymore.<br><br>There are also some minor changes needed in the VLC library to support this - need to stop refreshing the surface and wait for a new one to be created again.<br><br>However, I would like to introduce it along with the multiple video instances patch. At this point, it would take me a very long time to apply this change to the current code.<br><br></div>Can I submit both changes together ?<br><br>Thank you,<br></div>Paulo<br></div>