[Android] It fails when I try to programmatically change the surfaceView while the video is playing.
Thomas Guillem
thomas at gllm.fr
Thu Jul 23 10:00:15 CEST 2015
On Thu, Jul 23, 2015, at 02:23, dai majia wrote:
> 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?
>
Yes, you are using it the correct way. I may have fixed it, could you
check with this commit:
http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=d2460db5add0227e61c2c3a54f6713093e60a9c8
Thanks for your report.
>
> _________________________________________________
> Android mailing list Android at videolan.org
> https://mailman.videolan.org/listinfo/android
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20150723/6cd6a3e3/attachment.html>
More information about the Android
mailing list