@sondh0127/vite-srs-player
Star me:
https://github.com/sondh0127/vite-srs-player
Vite SRS Player
- RTC Vue
- RTC React
- RTC Svelte
- Hls
Installation
pnpm install @sondh0127/vite-srs-player
yarn install @sondh0127/vite-srs-player
npm install @sondh0127/vite-srs-player
Usage
import SrsRtcPlayer from '@sondh0127/vite-srs-player'
<SrsRtcPlayer
:url="url"
:autoStart="true"
:images="[
{ src: 'logo.png', x: 10, y: 10, w: 60, h: 50 },
]"
/>
Configuration:
- url: string - Web RTC stream link
- autoStart: boolean should video autoplay
- images: Array<{src: string, x: number, y: number, w: number, h: number}> watermark image, support multiple image
Limitation:
- Can not load image from external source => workaround: you need to put your image in public asset then fill the 'src' with relative path
Related Packages
vite-plugin-git-revision
Vite plugin that generates VERSION and COMMITHASH files during build based on a...
21,961
11
vite-plugin-resolve-extension-vue
A temporary workaround for issue No loader is configured for ".vue"
6,993
5
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.2.4 | ^2.0.0 || | ||
| 0.2.3 | ^2.0.0 || | ||
| 0.2.2 | ^2.0.0 || | ||
| 0.2.1 | ^2.0.0 || | ||
| 0.2.0 | ^2.0.0 || | ||
| 0.1.1 | ^2.0.0 || | ||
| 0.1.0 | ^2.0.0 || | ||
| 0.0.5 | ^2.0.0 || | ||
| 0.0.4 | ^2.0.0 || | ||
| 0.0.3 | ^2.0.0 || | ||
| 0.0.2 | ^2.0.0 || | ||
| 0.0.1 | ^2.0.0 || |