TravisCI, master
branch:
This module is used to synchronize multiple videos. There is one main video and multiple synced videos. All actions (pause, play, sync) are synced from the main video the other ones.
- NodeJS >= 7 (check with
node --version
) - NPM >= 5.3 (check with
npm --version
)
In html5-video-sync project
npm install
npm run start:dev
npm start
It's very important (required) to launch lint before pushing any code on github repository
npm run lint
<!DOCTYPE html>
<html>
<body>
<video
id="main-video"
src="main-video.webm"
width="640"
controls autoplay>
</video>
<video
id="synced-video"
src="synced-video.webm"
width="640"
controls autoplay>
</video>
<script src="html5-video-sync.js"></script>
<script src="app.js"></script>
</body>
</html>
function initPlayer() {
var mainVideo = document.getElementById("main-video");
var syncedVideo = document.getElementById("synced-video");
videoSynchronizer.sync(
mainVideo,
syncedVideo
);
}
document.addEventListener("DOMContentLoaded", initPlayer);
synchronized