|
| 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/ |
0 commit comments