프로젝트
GitHub에서 보기
savokiss/vue-videojs-demo
소개
Use video.js & vue to play RTMP && HLS streams && playback
웹 및 앱 개발What you can do
- Play RTMP & HLS videos
- Auto detect stream & tech
- Support auto switch streams
- Support manual switch techs
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalvue-videojs-demo
Use video.js with vue to play RTMP && HLS streams && playback
Get Started
See: https://vue-videojs-demo.vercel.app/
In RTMP you'll see a cartoon && in HLS you'll see a dummy video
Just switch tech to see the differences
Features
- Play RTMP & HLS videos
- Auto detect stream & tech
- Support auto switch streams
- Support manual switch techs
- Support custom stream link
- Support playback link( see https://vue-videojs-demo.vercel.app/#/playback
- Use local swf file
Live Player Options
playerOptions: {
autoplay: false,
controls: true,
techOrder: ['flash', 'html5'],
sourceOrder: true,
flash: { hls: { withCredentials: false } },
html5: { hls: { withCredentials: false } },
sources: [{
type: 'rtmp/mp4',
src: 'rtmp://184.72.239.149/vod/&mp4:BigBuckBunny_115k.mov'
}, {
withCredentials: false,
type: 'application/x-mpegURL',
src: 'http://playertest.longtailvideo.com/adaptive/bipbop/gear4/prog_index.m3u8'
}],
poster: '/static/images/logo.png'
}
To use local swf file, copy the swf file to /static/media/ folder && add:
swf: '/static/media/video-js.swf'
see source: live.vue
HLS Encryption Issue
see #1150
if you encounter the hls encryption issue, use the videojs-contrib-hls.js plugin instead.
edit main.js:
// import 'videojs-contrib-hls/dist/videojs-contrib-hls'
import 'videojs-contrib-hls.js/src/videojs.hlsjs'
Related Posts
License
관련 프로젝트 살펴보기
불러오는 중…