bytedance / xgplayer

A HTML5 video player with a parser that saves traffic
https://h5player.bytedance.com/
MIT License
8.06k stars 845 forks source link

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

Open startjava opened 3 months ago

startjava commented 3 months ago

"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 commented 3 months ago

@hongqx

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.