Skip to content

Commit f2e50b9

Browse files
committed
feat: implemented uc-video base on videojs
0 parents  commit f2e50b9

28 files changed

+2126
-0
lines changed

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
*.env
27+
*.env.production

README.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<p align="center">
2+
<a href="https://uploadcare.com/?ref=react-uploader">
3+
<picture>
4+
<source media="(prefers-color-scheme: light)" srcset="https://ucarecdn.com/1b4714cd-53be-447b-bbde-e061f1e5a22f/logosafespacetransparent.svg">
5+
<source media="(prefers-color-scheme: dark)" srcset="https://ucarecdn.com/3b610a0a-780c-4750-a8b4-3bf4a8c90389/logotransparentinverted.svg">
6+
<img width=250 alt="Uploadcare logo" src="https://ucarecdn.com/1b4714cd-53be-447b-bbde-e061f1e5a22f/logosafespacetransparent.svg">
7+
</picture>
8+
</a>
9+
</p>
10+
11+
# Uploadcare Video Delivery
12+
The uc-video solution, powered by Video.js, offers a seamless and high-performance video streaming experience.
13+
14+
## Features
15+
- **Optimized Streaming Quality:** Dynamically adjusts video quality based on the viewer’s device and internet speed, ensuring the best possible viewing experience.
16+
- **Cost-Effective Bandwidth Usage:** Reduces data consumption by delivering only the necessary video resolution, saving on bandwidth costs, especially for users with slower connections or smaller screens.
17+
- **Enhanced User Experience:** Minimizes buffering and delays, providing smooth and uninterrupted playback, even on less reliable networks, leading to higher user engagement and satisfaction.
18+
- **Broad Device Compatibility:** Automatically adapts to a wide range of devices and network conditions, expanding accessibility and reach.
19+
- **Seamless Integration:** Easy to use—simply upload your video file, and instantly receive a link for adaptive streaming, enabling quick deployment and management without technical complexities.
20+
21+
## Quick Start
22+
23+
### From NPM
24+
1. Install the package: `npm install @uploadcare/uc-video`
25+
26+
2. Connect component from your script file
27+
28+
```js
29+
import '@uploadcare/uc-video';
30+
import '@uploadcare/uc-video/style'
31+
```
32+
33+
3. Add component in your application markup:
34+
```html
35+
<uc-video src="URL_FROM_UPLOADCARE"></uc-video>
36+
```
37+
38+
### From CDN
39+
40+
## Attributes
41+
UC Video is provided all the [options][video-js-options] from video.js and some unique proprietary attributes
42+
43+
- **UUID**: file uuid
44+
- **src**: cdn url
45+
- **data-offset**: attribute to get the right frame for the poster
46+
47+
## Framework support
48+
Uploadcare Video Delivery is built with Web Components, meaning you can integrate it into any environment—no adapters required.
49+
50+
[video-js-options]: https://videojs.com/guides/options/

biome.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": []
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space"
15+
},
16+
"organizeImports": {
17+
"enabled": true
18+
},
19+
"linter": {
20+
"enabled": true,
21+
"rules": {
22+
"recommended": true
23+
}
24+
},
25+
"javascript": {
26+
"formatter": {
27+
"quoteStyle": "double"
28+
}
29+
}
30+
}

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + TS</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)