-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmedia.js
26 lines (26 loc) · 931 Bytes
/
media.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function vid1() {
var video = document.getElementById("mediavid"); video.src = ("medias/Morshu.mp4");
}
function vid2() {
var video = document.getElementById("mediavid"); video.src = ("medias/sigma.mp3");
}
function vid3() {
var video = document.getElementById("mediavid"); video.src = ("medias/bdp.mp4");
}
function vid4() {
var video = document.getElementById("mediavid"); video.src = ("medias/memeforest.wav");
}
function vid5() {
var video = document.getElementById("mediavid"); video.src = ("https://www.youtube.com/embed/0BNrTww3olE");
}
function custom_video(event) {
var reader = new FileReader();
reader.onload = function() {
var video = document.getElementById("mediavid"); video.src = reader.result;
}
reader.readAsDataURL(event.target.files[0]);
}
function loadlink() {
link = prompt("Enter Video Link");
document.getElementById("mediavid").src = link;
}