video-player禁止拖拽
时间: 2023-08-19 18:06:59 浏览: 265
要禁止video-player组件的拖拽功能,你可以使用CSS样式来实现。根据引用中的建议,可以添加以下样式代码来禁用拖拽进度条功能:
.vjs-progress-control{
pointer-events: none !important;
}
这样一来,用户将无法通过拖拽来改变视频的播放进度。请注意,你需要确保这段样式代码被正确地应用到video-player组件上。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vue-video-player 拖动进度条触发暂停&移动端展示倍速菜单](https://blog.csdn.net/u013444642/article/details/126647057)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [VideoPlayer.unitypackage](https://download.csdn.net/download/qq_33179161/11974688)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [vue-video-player 如何禁止拖动进度条](https://blog.csdn.net/webCandy/article/details/121228250)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文