UNPKG

me-vp

Version:

change the default style of the video player

7 lines (6 loc) 905 B
import VideoPlayer from "./class/index.js"; const videoPlayer = new VideoPlayer("container", "https://ia600207.us.archive.org/15/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4", "500px", 2, { color: "orange", backgroundColor: "black", accent: "orange" }); const videoPlayer1 = new VideoPlayer("container", "https://ia600207.us.archive.org/15/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4", "500px", 4); const videoPlayer2 = new VideoPlayer("container", "https://ia600207.us.archive.org/15/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4", "500px", 6, { color: "#2196f3", backgroundColor: "black", accent: "#2196f3" }); const videoPlayer3 = new VideoPlayer("container", "https://ia600207.us.archive.org/15/items/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4", "500px", 8, { color: "#cddc39", backgroundColor: "black", accent: "#cddc39" }); //