<html><head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">Can I force it some how. I am still stuck with android surface.<br>Thanks</div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">De: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:thomas@gllm.fr">Thomas Guillem</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Enviada em: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">26/11/2014 19:19</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Para: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:android@videolan.org">android@videolan.org</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Assunto: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">Re: [Android] VideoPlayerActivity onPause changes</span><br><br></div><div>Last vlc master with last vlc-android master.<br></div>
<div>If your device is after android 2.3, android_window will be used.<br></div>
<div> </div>
<div>On Wed, Nov 26, 2014, at 22:16, Paulo Vitor Magacho da Silva wrote:<br></div>
<blockquote type="cite"><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">How do I use use the android window vout ?<br></div>
<div style="font-family: Calibri,sans-serif; font-size: 11pt;">Thanks<br></div>
<div><hr><b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">De: </span></span></b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;"><a href="mailto:thomas@gllm.fr">Thomas Guillem</a></span></span><br></div>
</div>
<div dir="ltr"><b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">Enviada em: </span></span></b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">26/11/2014 18:29</span></span><br></div>
<div dir="ltr"><b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">Para: </span></span></b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;"><a href="mailto:android@videolan.org">android@videolan.org</a></span></span><br></div>
<div dir="ltr"><b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">Assunto: </span></span></b><span class="font" style="font-family: Calibri,sans-serif;"><span class="size" style="font-size: 11pt;">Re: [Android] VideoPlayerActivity onPause changes</span></span><br></div>
<div dir="ltr"> </div>
<div> </div>
<div>On Wed, Nov 26, 2014, at 21:21, Edward Wang wrote:<br></div>
<div>> On Wed, Nov 26, 2014 at 11:02 AM, Paulo Vitor Magacho da Silva<br></div>
<div>> <pvmagacho@gmail.com> wrote:<br></div>
<div>> > Hi,<br></div>
<div>> ><br></div>
<div>> > In this class there is the following comment in onPause method.<br></div>
<div>> ><br></div>
<div>> > /*<br></div>
<div>> > * Pausing here generates errors because the vout is constantly<br></div>
<div>> > * trying to refresh itself every 80ms while the surface is not<br></div>
<div>> > * accessible anymore.<br></div>
<div>> > * To workaround that, we keep the last known position in the playlist<br></div>
<div>> > * in savedIndexPosition to be able to restore it during onResume().<br></div>
<div>> > */<br></div>
<div> </div>
<div>Hum, I don't think this hack is needed anyore after android 2.3 when<br></div>
<div>using the new android_window vout.<br></div>
<div>I'll chech tomorrow.<br></div>
<div> </div>
<div>> ><br></div>
<div>> > Instead of doing this, I propose another solution, where the surface is<br></div>
<div>> > detached and re-attached on resume (using surfaceCreate and surfaceDestroy<br></div>
<div>> > methods) and the pause method of LibVLC is used (instead of stop). It<br></div>
<div>> > wouldn't be necessary to save the current position and time anymore.<br></div>
<div>> ><br></div>
<div>> > There are also some minor changes needed in the VLC library to support this<br></div>
<div>> > - need to stop refreshing the surface and wait for a new one to be created<br></div>
<div>> > again.<br></div>
<div>> ><br></div>
<div>> > However, I would like to introduce it along with the multiple video<br></div>
<div>> > instances patch. At this point, it would take me a very long time to apply<br></div>
<div>> > this change to the current code.<br></div>
<div>> ><br></div>
<div>> > Can I submit both changes together ?<br></div>
<div>> <br></div>
<div>> <br></div>
<div>> I think that it would be cleaner to do them in two separate patches,<br></div>
<div>> since these are two separate functional changes.<br></div>
<div>> <br></div>
<div>> Regards,<br></div>
<div>> Edward<br></div>
<div>> _______________________________________________<br></div>
<div>> Android mailing list<br></div>
<div>> Android@videolan.org<br></div>
<div>> https://mailman.videolan.org/listinfo/android<br></div>
<div>_______________________________________________<br></div>
<div>Android mailing list<br></div>
<div>Android@videolan.org<br></div>
<div>https://mailman.videolan.org/listinfo/android<br></div>
<div><u>_______________________________________________</u><br></div>
<div>Android mailing list<br></div>
<div><a href="mailto:Android@videolan.org">Android@videolan.org</a><br></div>
<div><a href="https://mailman.videolan.org/listinfo/android">https://mailman.videolan.org/listinfo/android</a><br></div>
</blockquote><div> </div>
</body></html>