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 · 5 comments
Open

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

mynameispp opened this issue Dec 25, 2023 · 5 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

@Xxj-star
Copy link

大哥 群主的框架不在维护更新 要不你接盘吧 我来给你宣传点赞

@michael007js
Copy link

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

他这个应该是哪里反编译来的,不过稍微改改可读性还是可以的

@zhangkun0018
Copy link

有没有好的解决方案呢,我把这个三个文件放到Demo里,没有效果

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

5 participants