Skip to content
New issue

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

各位大佬有做过视频双指放大的功能吗? #843

Open
mynameispp opened this issue Dec 25, 2023 · 2 comments
Open

各位大佬有做过视频双指放大的功能吗? #843

mynameispp opened this issue Dec 25, 2023 · 2 comments

Comments

@mynameispp
Copy link

No description provided.

@mynameispp
Copy link
Author

目前自己的解决方案是重写部分代码,但很粗糙,作为demo参考
MyStandardVideoController.txt
MyTextureRenderViewFactory.txt
MyZoomableTextureView.txt
复制上面三个文件,后缀记得改成java:
1.设置自定义的TextureRenderView:
MyTextureRenderViewFactory myTextureRenderViewFactory=new MyTextureRenderViewFactory();
videoPlayView.setRenderViewFactory(myTextureRenderViewFactory);
2.设置控制器
MyStandardVideoController controller = new MyStandardVideoController(myViewBinding.getRoot().getContext());
controller.setMyTextureRenderViewFactory(myTextureRenderViewFactory);//放大操作
videoPlayView.setVideoController(controller); //设置控制器

@Roben1016
Copy link

大哥, 效果不错, 但是你里面的代码太难读了
微信截图_20240419153436

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants