|
1 | | -# 🎬 SlidevVideo Playback Demo |
2 | | - |
3 | | -A simple demo showcasing **multi-step controlled video playback** using `pause` prop. |
4 | | - |
5 | | -透過 `pause` 參數控制影片分段播放,支援數值與 `'end'`,可用於教學投影片互動控制。 |
6 | | - |
7 | | ---- |
8 | | - |
9 | | -## 🚀 How to Run |
| 1 | +<br> |
| 2 | +<p align="center"> |
| 3 | +<a href="https://sli.dev" target="_blank"> |
| 4 | +<img src="https://sli.dev/logo-title.png" alt="Slidev" height="250" width="250"/> |
| 5 | +</a> |
| 6 | +</p> |
| 7 | + |
| 8 | +<p align="center"> |
| 9 | +Presentation <b>slide</b>s for <b>dev</b>elopers 🧑💻👩💻👨💻 |
| 10 | +</p> |
| 11 | + |
| 12 | +<p align="center"> |
| 13 | +<a href="https://www.npmjs.com/package/@slidev/cli" target="__blank"><img src="https://img.shields.io/npm/v/@slidev/cli?color=2B90B6&label=" alt="NPM version"></a> |
| 14 | +<a href="https://www.npmjs.com/package/@slidev/cli" target="__blank"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@slidev/cli?color=349dbe&label="></a> |
| 15 | +<a href="https://sli.dev/" target="__blank"><img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20demos&color=45b8cd" alt="Docs & Demos"></a> |
| 16 | +<a href="https://sli.dev/resources/theme-gallery" target="__blank"><img src="https://img.shields.io/static/v1?label=&message=themes&color=4ec5d4" alt="Themes"></a> |
| 17 | +<br> |
| 18 | +<a href="https://github.com/slidevjs/slidev" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/slidevjs/slidev?style=social"></a> |
| 19 | +</p> |
| 20 | + |
| 21 | +<p align="center"> |
| 22 | + <a href="https://twitter.com/antfu7/status/1389604687502995457">Video Preview</a> | <a href="https://sli.dev">Documentation</a> |
| 23 | +</p> |
| 24 | + |
| 25 | +<div align="center"> |
| 26 | +<table> |
| 27 | +<tbody> |
| 28 | +<td align="center"> |
| 29 | +<img width="2000" height="0" alt="" aria-hidden><br> |
| 30 | +<sub>Made possible by my <a href="https://github.com/sponsors/antfu">Sponsor Program 💖</a></sub><br> |
| 31 | +<img width="2000" height="0" alt="" aria-hidden> |
| 32 | +</td> |
| 33 | +</tbody> |
| 34 | +</table> |
| 35 | +</div> |
| 36 | + |
| 37 | +## Features |
| 38 | + |
| 39 | +- 📝 [**Markdown-based**](https://sli.dev/guide/syntax) - focus on content and use your favorite editor |
| 40 | +- 🧑💻 [**Developer Friendly**](https://sli.dev/guide/syntax#code-blocks) - built-in code highlighting, live coding, etc. |
| 41 | +- 🎨 [**Themable**](https://sli.dev/resources/theme-gallery) - theme can be shared and used with npm packages |
| 42 | +- 🌈 [**Stylish**](https://sli.dev/guide/syntax#embedded-styles) - on-demand utilities via [UnoCSS](https://github.com/unocss/unocss). |
| 43 | +- 🤹 [**Interactive**](https://sli.dev/custom/directory-structure#components) - embedding Vue components seamlessly |
| 44 | +- 🎙 [**Presenter Mode**](https://sli.dev/guide/ui#presenter-mode) - use another window, or even your phone to control your slides |
| 45 | +- 🎨 [**Drawing**](https://sli.dev/features/drawing) - draw and annotate on your slides |
| 46 | +- 🧮 [**LaTeX**](https://sli.dev/features/latex) - built-in LaTeX math equations support |
| 47 | +- 📰 [**Diagrams**](https://sli.dev/guide/syntax#diagrams) - creates diagrams using textual descriptions with [Mermaid](https://mermaid.js.org/) |
| 48 | +- 🌟 [**Icons**](https://sli.dev/features/icons) - access to icons from any icon set directly |
| 49 | +- 💻 [**Editor**](https://sli.dev/guide/index#editor) - integrated editor, or the [VSCode extension](https://sli.dev/features/vscode-extension) |
| 50 | +- 🎥 [**Recording**](https://sli.dev/features/recording) - built-in recording and camera view |
| 51 | +- 📤 [**Portable**](https://sli.dev/guide/exporting) - export into PDF, PNGs, or PPTX |
| 52 | +- ⚡️ [**Fast**](https://vitejs.dev) - instant reloading powered by [Vite](https://vitejs.dev) |
| 53 | +- 🛠 [**Hackable**](https://sli.dev/custom/) - using Vite plugins, Vue components, or any npm packages |
| 54 | + |
| 55 | +## Getting Started |
| 56 | + |
| 57 | +### Try it Online ⚡️ |
| 58 | + |
| 59 | +[sli.dev/new](https://sli.dev/new) |
| 60 | + |
| 61 | +[](https://sli.dev/new) |
| 62 | + |
| 63 | +### Init Project Locally |
| 64 | + |
| 65 | +Install [Node.js >=18](https://nodejs.org/) and run the following command: |
10 | 66 |
|
11 | 67 | ```bash |
12 | | -pnpm install |
13 | | -pnpm dev |
| 68 | +npm init slidev |
14 | 69 | ``` |
15 | 70 |
|
16 | | -Then open [http://localhost:3030](http://localhost:3030) |
17 | | - |
18 | | ---- |
| 71 | +Documentation: |
| 72 | +**[English](https://sli.dev)** | [中文文档](https://cn.sli.dev) | [Français](https://fr.sli.dev) | [Español](https://es.sli.dev) | [Русский](https://ru.sli.dev) | [Português-BR](https://br.sli.dev) |
19 | 73 |
|
20 | | -## 🌐 Slide Demos | 投影片展示 |
| 74 | +Discord: [chat.sli.dev](https://chat.sli.dev) |
21 | 75 |
|
22 | | -- 👉 [Home Page](/dev.md) |
| 76 | +For a full example, you can check the [demo](https://github.com/slidevjs/slidev/blob/main/demo) folder, which is also the source file for [my previous talk](https://antfu.me/posts/composable-vue-vueday-2021). |
23 | 77 |
|
24 | | ---- |
| 78 | +## Tech Stack |
25 | 79 |
|
26 | | -## 💡 Example |
| 80 | +- [Vite](https://vitejs.dev) - An extremely fast frontend tooling |
| 81 | +- [Vue 3](https://v3.vuejs.org/) powered [Markdown](https://daringfireball.net/projects/markdown/syntax) - Focus on the content while having the power of HTML and Vue components whenever needed |
| 82 | +- [UnoCSS](https://github.com/unocss/unocss) - On-demand utility-first CSS engine, style your slides at ease |
| 83 | +- [Shiki](https://github.com/shikijs/shiki), [Monaco Editor](https://github.com/Microsoft/monaco-editor) - First-class code snippets support with live coding capability |
| 84 | +- [RecordRTC](https://recordrtc.org) - Built-in recording and camera view |
| 85 | +- [VueUse](https://vueuse.org) family - [`@vueuse/core`](https://github.com/vueuse/vueuse), [`@vueuse/motion`](https://github.com/vueuse/motion), etc. |
| 86 | +- [Iconify](https://iconify.design/) - Icon sets collection. |
| 87 | +- [Drauu](https://github.com/antfu/drauu) - Drawing and annotations support |
| 88 | +- [KaTeX](https://katex.org/) - LaTeX math rendering. |
| 89 | +- [Mermaid](https://mermaid-js.github.io/mermaid) - Textual Diagrams. |
27 | 90 |
|
28 | | -```vue |
29 | | -<SlidevVideo :pause="[3.5, 2.5, 3]" controls> |
30 | | - <source src="https://www.w3schools.com/html/mov_bbb.mp4" /> |
31 | | -</SlidevVideo> |
32 | | -``` |
33 | | - |
34 | | -Will play **3.5s**, then pause, then **2.5s**, then pause, then **3s**, then pause, then end. |
| 91 | +## Sponsors |
35 | 92 |
|
36 | | ---- |
| 93 | +This project is made possible by all the sponsors supporting my work: |
37 | 94 |
|
38 | | -## 🧩 Credit |
| 95 | +<p align="center"> |
| 96 | + <a href="https://github.com/sponsors/antfu"> |
| 97 | + <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt="Logos from Sponsors" /> |
| 98 | + </a> |
| 99 | +</p> |
39 | 100 |
|
40 | | -Based on [`Slidev`](https://github.com/slidevjs/slidev), with custom `SlidevVideo` component. |
| 101 | +## License |
41 | 102 |
|
42 | | -``` |
43 | | -
|
44 | | -``` |
| 103 | +MIT License © 2021 [Anthony Fu](https://github.com/antfu) |
0 commit comments