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

动态修改thumbnails无效 #772

Closed
qwer130140190 opened this issue Jun 17, 2024 · 6 comments
Closed

动态修改thumbnails无效 #772

qwer130140190 opened this issue Jun 17, 2024 · 6 comments

Comments

@qwer130140190
Copy link

art = new Artplayer(options);
art.thumbnails.column = 10;
art.thumbnails.number = 123;
art.thumbnails.url = 'aaa.webp';
修改了没有显示,如果放到options初始化是显示的

@zhw2590582
Copy link
Owner

目前不支持动态修改thumbnails

@qwer130140190
Copy link
Author

目前不支持动态修改thumbnails

目前想要实现的是,先初始化一个播放器loading占位,然后去后端获取视频的各种信息,这个期间不会白屏,然后再动态的修改覆盖各个配置,subtitle,quality,url等都没问题,如果thumbnails目前不支持,是否有办法能让整个播放器重新刷新一下options

@zhw2590582
Copy link
Owner

那不如直接销毁占位的播放器,重新new一个新播放器就行

@qwer130140190
Copy link
Author

qwer130140190 commented Jun 17, 2024

那不如直接销毁占位的播放器,重新new一个新播放器就行

这个思路没毛病,这样重新渲染,页面上可能会闪烁一下,loading的动画也会中断不连续

@zhw2590582
Copy link
Owner

是的,不过目前这是最好的办法

@qwer130140190
Copy link
Author

是的,不过目前这是最好的办法

好的,希望后续能支持动态修改

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