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

mode值为top时不显示弹幕,自动添加了visibility: hidden;样式 #1373

Open
startjava opened this issue Apr 9, 2024 · 1 comment

Comments

@startjava
Copy link

startjava commented Apr 9, 2024

"name": "xgplayer",
"version": "3.0.14"

我的测试代码:

const comments = [{
                duration: 10000,
                id: 1,
                start: 1000,
                txt: "我是弹幕1",
                mode: "top"
            }, {
                duration: 10000,
                id: 2,
                start: 2000,
                txt: "我是弹幕2",
                mode: "scroll"
            }, {
                duration: 10000,
                id: 3,
                start: 3000,
                txt: "我是弹幕3",
                mode: "bottom"
            }
            ];

            let player = new Player({
                id: 'xgplayerDiv',
                url: '../xgplayer-demo-720p.mp4',
                height: '100%',
                width: '100%',
                plugins: [Danmu],
                danmu: {
                    comments: comments
                }
            });
@startjava
Copy link
Author

@hongqx

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

1 participant