<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div> </div>
<div>On Thu, Jul 23, 2015, at 02:23, dai majia wrote:<br></div>
<blockquote type="cite"><table style="width:100%;margin-top:6px;" valign="top" lang="container" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="line-height:1.31;color:rgb(34, 34, 34);font-family:arial,sans-serif;" valign="top"><div style="max-width:590px;">code: <br></div>
<div style="max-width:590px;"><div> </div>
</div>
<div style="max-width:590px;">Step 1, click detach button : <br></div>
<div style="max-width:590px;"> </div>
<div style="max-width:590px;">mMediaPlayer.getVLCVout().detachViews();      ( just detach the view, so the audio is still playing )<br></div>
<div style="max-width:590px;"> </div>
<div style="max-width:590px;"> </div>
<div style="max-width:590px;">Step 2 , click the attachNew button.<br></div>
<div style="max-width:590px;"><div> </div>
</div>
<div style="max-width:590px;">mMediaPlayer.getVLCVout().setVideoView(newSurfaceView);<br></div>
<div style="max-width:590px;">mMediaPlayer.attachViews();<br></div>
<div style="max-width:590px;"><div> </div>
</div>
<div style="max-width:590px;">while, it’s not as  expected. the surfaceView is still empty.<br></div>
<div style="max-width:590px;"><div> </div>
</div>
<div style="max-width:590px;">Am I using the correct way to change the surfaceView?<br></div>
<div style="max-width:590px;"> <br></div>
</td></tr></tbody></table></blockquote><div> </div>
<div>Yes, you are using it the correct way. I may have fixed it, could you check with this commit: <a href="http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d2460db5add0227e61c2c3a54f6713093e60a9c8">http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d2460db5add0227e61c2c3a54f6713093e60a9c8</a><br></div>
<div> </div>
<div>Thanks for your report.<br></div>
<div> </div>
<blockquote type="cite"><table style="width:100%;margin-top:6px;" valign="top" lang="container" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="line-height:1.31;color:rgb(34, 34, 34);font-family:arial,sans-serif;" valign="top"><div><img alt="" src="https://www.fastmailusercontent.com/proxy/e3e0cd8571e5d900aae71a0fe89cb918475ed7502394cd6b97c5cd30235f7480/8647470737a3f2f2160707e2d69687d61687e236f6d6f2160796f247271636b6f26723f273f6452524f42753c454a55436652625a4f294352667e4d6c437c675954746741586c6d616861375168625d694f27694e6a4332657437595379375a5b6c6d6461425751667a484a55764d694f2f33736d36616c63756" style="border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:-moz-use-text-color;border-right-color:-moz-use-text-color;border-bottom-color:-moz-use-text-color;border-left-color:-moz-use-text-color;-moz-border-top-colors:none;-moz-border-right-colors:none;-moz-border-bottom-colors:none;-moz-border-left-colors:none;border-image-source:none;border-image-slice:100% 100% 100% 100%;border-image-width:1 1 1 1;border-image-outset:0 0 0 0;border-image-repeat:stretch stretch;width:0px;height:0px;" height="0" width="0"><br></div>
</td></tr></tbody></table><div><u>_______________________________________________</u><br></div>
<div>Android mailing list<br></div>
<div><a style="word-wrap: normal;" href="mailto:Android@videolan.org">Android@videolan.org</a><br></div>
<div><a style="word-wrap: normal;" href="https://mailman.videolan.org/listinfo/android">https://mailman.videolan.org/listinfo/android</a><br></div>
</blockquote><div> </div>
</body>
</html>