Skip to content

Commit 75004f7

Browse files
authored
Merge pull request #3 from canwdev/dev-kvm
optimize ui
2 parents 71967d9 + 4166b7d commit 75004f7

21 files changed

+835
-335
lines changed

.eslintrc.cjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ require('@rushstack/eslint-patch/modern-module-resolution')
33

44
module.exports = {
55
root: true,
6-
'extends': [
6+
extends: [
77
'plugin:vue/vue3-essential',
88
'eslint:recommended',
99
'@vue/eslint-config-typescript',
10-
'@vue/eslint-config-prettier'
10+
'@vue/eslint-config-prettier',
1111
],
1212
parserOptions: {
13-
ecmaVersion: 'latest'
14-
}
13+
ecmaVersion: 'latest',
14+
},
1515
}

README-en.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Web MediaDevices Player
2+
3+
A web application for playing system [video/audio] input devices using the [Media Capture and Streams API](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) technology.
4+
5+
- Web version: https://canwdev.github.io/web-mediadevices-player/
6+
- Tauri packaged client: [Releases](https://github.com/canwdev/web-mediadevices-player/releases)
7+
- [Chinese Readme](./README.md)
8+
9+
Main purposes:
10+
- View HDMI to USB capture card
11+
- Play webcam videos, desktop screen recording
12+
- Capture screenshots and record in webm format
13+
- v1.1.5 New features
14+
- [CH9329](https://one-kvm.mofeng.run/ch9329_hid/) KVM keyboard and mouse control, ref: [webusbkvm](https://github.com/kkocdko/kblog/blob/master/source/toys/webusbkvm/README.md)
15+
- Supports relative mouse, absolute mouse, hotkeys, and ASCII text sending.
16+
- Video screen QR code scanning
17+
18+
![screenshot](docs/screenshot-2.jpg)
19+
![screenshot](docs/screenshot-3.jpg)
20+
![screenshot](docs/screenshot.png)
21+
22+
Tips:
23+
- The first time you use it, it will request camera and microphone permissions. You can reject microphone permissions if not needed. After requesting, it will wait a few seconds to load the devices.
24+
- This page must run in https or localhost environments. Other environments (such as: filesystem) do not have access to devices.
25+
- There may be issues with dragging the progress bar of the recorded webm video. Manually transcoding it to mp4 can solve the problem.
26+
27+
## Development
28+
29+
> Contributions are welcome
30+
31+
```sh
32+
# Install dependencies
33+
yarn install
34+
35+
# Development mode
36+
yarn dev
37+
38+
# Build the Web version
39+
yarn build
40+
41+
# Build Tauri App
42+
yarn build:tauri
43+
```
44+
45+
---
46+
47+
## Star History
48+
49+
- Thanks for your stars https://www.ruanyifeng.com/blog/2024/06/weekly-issue-303.html
50+
51+
[![Star History Chart](https://api.star-history.com/svg?repos=canwdev/web-mediadevices-player&type=Date)](https://star-history.com/#canwdev/web-mediadevices-player&Date)

README.md

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- 网页版:https://canwdev.github.io/web-mediadevices-player/
66
- Tauri 打包的客户端:[Releases](https://github.com/canwdev/web-mediadevices-player/releases)
7-
- [English Readme](https://github.com/canwdev/web-mediadevices-player/tree/master?tab=readme-ov-file#english)
7+
- [English Readme](./README-en.md)
88

99
主要用途:
1010
- HDMI to USB 采集卡查看
@@ -15,9 +15,9 @@
1515
- 支持相对鼠标、绝对鼠标、快捷键、ASCII文本发送
1616
- 视频画面二维码扫描
1717

18-
![screenshot](screenshot-2.jpg)
19-
![screenshot](screenshot-3.jpg)
20-
![screenshot](screenshot.png)
18+
![screenshot](docs/screenshot-2.jpg)
19+
![screenshot](docs/screenshot-3.jpg)
20+
![screenshot](docs/screenshot.png)
2121

2222
提示:
2323
- 首次使用会请求摄像头和麦克风权限,如果不需要麦克风权限可以拒绝,请求过后会等待几秒钟加载设备。
@@ -46,45 +46,8 @@ yarn build:tauri
4646

4747
---
4848

49-
## English
49+
## Star History
5050

51-
A web application for playing system [video/audio] input devices using the [Media Capture and Streams API](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) technology.
51+
- Thanks for your stars https://www.ruanyifeng.com/blog/2024/06/weekly-issue-303.html
5252

53-
- Web version: https://canwdev.github.io/web-mediadevices-player/
54-
- Tauri packaged client: [Releases](https://github.com/canwdev/web-mediadevices-player/releases)
55-
56-
Main purposes:
57-
- View HDMI to USB capture card
58-
- Play webcam videos, desktop screen recording
59-
- Capture screenshots and record in webm format
60-
- v1.1.5 New features
61-
- [CH9329](https://one-kvm.mofeng.run/ch9329_hid/) KVM keyboard and mouse control, ref: [webusbkvm](https://github.com/kkocdko/kblog/blob/master/source/toys/webusbkvm/README.md)
62-
- Supports relative mouse, absolute mouse, hotkeys, and ASCII text sending.
63-
- Video screen QR code scanning
64-
65-
![screenshot](screenshot-2.jpg)
66-
![screenshot](screenshot-3.jpg)
67-
![screenshot](screenshot.png)
68-
69-
Tips:
70-
- The first time you use it, it will request camera and microphone permissions. You can reject microphone permissions if not needed. After requesting, it will wait a few seconds to load the devices.
71-
- This page must run in https or localhost environments. Other environments (such as: filesystem) do not have access to devices.
72-
- There may be issues with dragging the progress bar of the recorded webm video. Manually transcoding it to mp4 can solve the problem.
73-
74-
## Development
75-
76-
> Contributions are welcome
77-
78-
```sh
79-
# Install dependencies
80-
yarn install
81-
82-
# Development mode
83-
yarn dev
84-
85-
# Build the Web version
86-
yarn build
87-
88-
# Build Tauri App
89-
yarn build:tauri
90-
```
53+
[![Star History Chart](https://api.star-history.com/svg?repos=canwdev/web-mediadevices-player&type=Date)](https://star-history.com/#canwdev/web-mediadevices-player&Date)
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-mediadevices-player",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -15,6 +15,7 @@
1515
"build:tauri": "tauri build"
1616
},
1717
"dependencies": {
18+
"@mdi/font": "^7.4.47",
1819
"@tauri-apps/api": "^1.5.3",
1920
"@vueuse/core": "^10.10.0",
2021
"jsqr": "^1.4.0",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "web-mediadevices-player",
11-
"version": "1.1.5"
11+
"version": "1.1.6"
1212
},
1313
"tauri": {
1414
"allowlist": {

src/assets/common.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,17 @@
164164
.fadeMove-leave-active {
165165
position: absolute;
166166
}
167+
168+
169+
// animation: linear blink-animation 3s infinite;
170+
@keyframes blink-animation {
171+
0% {
172+
opacity: 0.5;
173+
}
174+
50% {
175+
opacity: 1;
176+
}
177+
100% {
178+
opacity: 0.5;
179+
}
180+
}

0 commit comments

Comments
 (0)