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

几个提议 #5

Open
zhangminge opened this issue Jan 15, 2018 · 1 comment
Open

几个提议 #5

zhangminge opened this issue Jan 15, 2018 · 1 comment

Comments

@zhangminge
Copy link

有幸看到这个h5播放器,打算在项目中使用,非常感谢作者!
以下是我使用过程中发现的几个改良处:

  1. 鼠标拖动播放进度条,然后再将鼠标移开,该区域出现了蓝色的outline,我对.hi-video-controlbar input[type=range]设置了outline: none;
  2. 播放结束的时候视频中央的大播放按钮应该出现,我认为这样体验会好些。在监听播放结束的事件中我加了如下代码
    hivideo.removeClass(hivideo.querySelector('.hi-video-playIcon'), 'offBtn');
  3. 如果是单击ESC退出全屏播放,全屏按钮的状态没有恢复,所以在监听到退出全屏时需要将全屏按钮的状态恢复,我添加了如下代码
    if(hivideo.hasClass(self.fullBtn, 'offBtn')) {self.exchangeBtnStatus(self.fullBtn, true);}
@Nan-hai
Copy link

Nan-hai commented Feb 10, 2018

@zhangminge,你好,我也是正在用这个播放器,请教一个问题如下:
怎么在一开始就隐藏控制条,只有鼠标略过视频播放器才显示控制条呢?谢谢

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