1.0.9 • Published 5 years ago
vue-multi-player-test v1.0.9
vue-multi-player-test
A video player supporting multiple video video source
Install
# Using npm:
npm install vue-multi-player-test
# Using a script tag for global use:
<script type="text/javascript" src="multi-player.min.js"></script>
<link rel="stylesheet" href="multi-player.css">
Usage
<template>
<multi-player :videos="videos"/>
</template>
<script>
export default {
data() {
return {
videos: [{
'index': 0,
'src': 'http://localhost:8002/videos/ROOM_3_VIDEO/20181217/101000-102500/cam_encoder?ts=1561462698&token=f6ea8cdc64bcf2df8b9e',
'type': 'video/mp4',
'volume': 0.8,
'videoType': 'INSTRUCTOR'
}, {
'index': 1,
'src': 'http://localhost:8002/videos/ROOM_3_VIDEO/20181217/101000-102500/cam_encoder?ts=1561462698&token=f6ea8cdc64bcf2df8b9e',
'type': 'video/mp4',
'volume': 0.8,
'videoType': 'STUDENTS'
}, {
'index': 2,
'src': 'http://localhost:8002/videos/ROOM_3_VIDEO/20181217/101000-102500/cam_encoder?ts=1561462698&token=f6ea8cdc64bcf2df8b9e',
'type': 'video/mp4',
'volume': 0.8,
'videoType': 'ENCODER'
}]
};
}
};
</script>