[Android] It fails when I try to programmatically change the surfaceView while the video is playing.

dai majia daimajia at gmail.com
Thu Jul 23 02:23:14 CEST 2015


code:

Step 1, click detach button :
mMediaPlayer.getVLCVout().detachViews(); ( just detach the view, so the audio is
still playing )

Step 2 , click the attachNew button.

mMediaPlayer.getVLCVout().setVideoView(newSurfaceView); mMediaPlayer.attachViews();

while, it’s not as expected. the surfaceView is still empty.

Am I using the correct way to change the surfaceView?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20150723/81326679/attachment.html>


More information about the Android mailing list