mengzhidaren / Vlc-sdk-lib

vlc-android The latest compilation video playback libraries 最新视频库支持录屏 欢迎star
491 stars 121 forks source link

Previous video image cache show on second video start #146

Closed MinChanSike closed 4 years ago

MinChanSike commented 6 years ago

When I try to play/stop two rtsp stream, first video image is show a while before second video frames are received. How to clean first video frame on stop?

mengzhidaren commented 6 years ago

Try closing video is MediaPlayer.setVideoTrackEnabled(false)

MinChanSike commented 6 years ago

Although I try to set VideoTrackEnabled: false, still not working.

player.onStop(); player.getMediaPlayer().setVideoTrackEnabled(false);

First video's last frame is still showing when second video is buffering.

mengzhidaren commented 6 years ago

SetVideoTrack Enabled (false) doesn't seem to work , so try hiding the front with a picture or drawing a solid background use onSurfaceTextureUpdated(SurfaceTexture surface)