Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/anii
A modern web video player.
https://github.com/egoist/anii
Last synced: 22 days ago
JSON representation
A modern web video player.
- Host: GitHub
- URL: https://github.com/egoist/anii
- Owner: egoist
- Created: 2017-06-02T11:42:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T14:30:14.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T12:01:14.856Z (about 1 month ago)
- Language: Vue
- Homepage: http://anii.surge.sh
- Size: 153 KB
- Stars: 22
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-poi - ANII - A minimalistic web video player. (Projects / Open-source projects)
README
# ANII
An alternative web app to the awesome video player [IINA](https://lhc70000.github.io/iina/) (Obviously IINA is much more powerful)
As it's using HTML5 video tag, it only supports these formats: MP4, Ogg, WebM.
You can visit https://anii.surge.sh for an offline version.
## Commands
You can replace `yarn` with `npm run` here.
```bash
# build for production
yarn build# development mode
yarn dev# serve the bundled dist folder in production mode
yarn serve
```## Polyfills
By default we only polyfill `window.Promise` and `Object.assign`. You can add more polyfills in `./src/polyfills.js`.
## Code splitting
As webpack supports both [dynamic import](https://webpack.js.org/guides/code-splitting-async/#dynamic-import-import-) and [`require.ensure`](https://webpack.js.org/guides/code-splitting-async/#require-ensure-) syntax, we would recommend you to stick to `require.ensure` for now because of [performance issue](https://github.com/webpack/webpack/issues/4636).
## Analyze bundle size
Run `yarn report` to get a report of bundle size which helps you:
- Realize what's really inside your bundle
- Find out what modules make up the most of it's size
- Find modules that got there by mistake
- Optimize it!## Progress Web App
Your app is now offline-ready (only in production bundle), which means you can visit it without network.
Here we use a default [manifest.json](./static/manifest.json) to configurure your pwa, for example, to enable [Add to Home Screen] feature on Android. It will be copied directly to `./dist/manifest.json`.
For all the available options, please head to [poi-preset-offline](https://github.com/egoist/poi/tree/master/packages/poi-preset-offline#api).
---
This project is generated from [template-vue](https://github.com/egoist/template-vue).