25 Star 102 Fork 19

meetqy / hapv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

hapv

electron 开发的一个可以播放,下载国内主流视频的播放器。A player developed by electron that can play and download domestic mainstream video.

项目想法来源于ivideo,另外增加了视频下载功能。

下载

windows 可拉取代码自行打包.

界面

- -

技术栈&插件

  • Electron
  • Vue
  • Vuex
  • vue-cli-plugin-electron-builder
  • Element

下载功能需安装 annie

如何运行

git clone git@github.com:meetqy/hapv.git
cd hapv
npm install

如果安装失败或者慢,建议使用 cnpm install.

npm start

项目结构

src
├─App.vue
├─background.js // electron后台文件
├─element-variables.scss
├─main.js
├─views
├─store
├─router
├─plugins
├─config
|   ├─analysis.js // 解释视频的配置文件
|   ├─index.js
|   └platform.js  // 各大视频平台url,视频解析规则的配置文件
├─components
├─assets

播放视频原理

  1. 利用electron框架,返回 web 页面
  2. 页面中嵌入 webview,url 为各平台官网
  3. 利用electron提供的 api,监听页面跳转,劫持链接,返回解析之后的视频链接。

快捷小技巧

  • ESC取消全屏

开发规范

版本记录

最近更新:

  • 0.4.1-alpha

  • 取消双击导航栏全屏功能

  • mac 系统自带全屏功能,header 显示隐藏功能失效

参与贡献

MIT License Copyright (c) 2020 meetqy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

electron 开发的一个可以播放,下载国内主流视频的播放器。A player developed by electron that can play and download domestic mainstream video. 展开 收起
JavaScript 等 4 种语言
MIT
取消

发行版 (11)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/meetqy/hapv.git
git@gitee.com:meetqy/hapv.git
meetqy
hapv
hapv
master

搜索帮助