We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大神你好,应用场景是这样的,一个recyclerview中的一个item在播视频,然后我需要将这个播视频的view添加到其他的viewgruop中去,但是在removeview的时候texureview会destory然后再重新avaliable,这样会导致视频黑一下,有没有办法可以解决黑一下的问题?
The text was updated successfully, but these errors were encountered:
在remove之前可以设置播放器setVisibility(INVISIBLE)不可见,在重新avaliable后再设置播放器setVisibility(VISIBLE)可见,就算是闪烁也是看不见的,希望对你有帮助!
Sorry, something went wrong.
多谢,已经找到不闪的办法了。在textureview的avaliable的时候保存一个surfacetexure,在destory的时候判断一下保存的surfacetexture是不是null,如果不是null返回true,再一次avaliable的时候setSurfaceTexure一下保存的的surfacetexure就可以了。
No branches or pull requests
大神你好,应用场景是这样的,一个recyclerview中的一个item在播视频,然后我需要将这个播视频的view添加到其他的viewgruop中去,但是在removeview的时候texureview会destory然后再重新avaliable,这样会导致视频黑一下,有没有办法可以解决黑一下的问题?
The text was updated successfully, but these errors were encountered: