From 9e37330b3ddf53e08b513a04ddaedf38677ac365 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Sat, 27 Oct 2018 00:35:26 +0100 Subject: [PATCH] Change URL --- index.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 08413e0..e0d663b 100644 --- a/index.js +++ b/index.js @@ -1,19 +1,35 @@ -const vids = [{ +const vids = [ + { url: "http://media.w3.org/2010/05/bunny/trailer.mp4", thumbnail: "images/gitea.png", name: "Big Buck Bunny", subtitle: "Short Desc", -}, { + }, + { url: "http://media.w3.org/2010/05/sintel/trailer.mp4", thumbnail: "images/gitea.png", name: "Sintel", subtitle: "Test", -}, { + }, + { url: "https://vdo.mwit.ac.th/vod/_definst_/mp4:02_description/2561/05/30-05-61/VOD/30-05-61-AV4.mp4/playlist.m3u8", thumbnail: "images/gitea.png", name: "HLS", - subtitle: "Woo", -}]; + subtitle: "Should use hls.js", + }, + { + url: "http://vjs.zencdn.net/v/oceans.mp4", + thumbnail: "images/gitea.png", + name: "DisneyOcean1", + subtitle: "555", + }, + { + url: "http://media.w3.org/2010/05/video/movie_300.mp4", + thumbnail: "images/gitea.png", + name: "5min", + subtitle: "Just countdown", + } +]; const videoListContainer = document.querySelector('#videoListContainer'); const titleText = document.querySelector('#titleText');