create an html5 video player from scratch

Solutions on MaxInterview for create an html5 video player from scratch by the best coders in the world

showing results for - "create an html5 video player from scratch"
Marge
03 May 2017
1$("video").prop('muted', true);
2
3$(".mute-video").click(function () {
4    if ($("video").prop('muted')) {
5        $("video").prop('muted', false);
6        $(this).addClass('unmute-video'); // changing icon for button
7
8    } else {
9        $("video").prop('muted', true);
10        $(this).removeClass('unmute-video'); // changing icon for button
11    }
12    console.log($("video").prop('muted'))
13});
Jessie
20 Jan 2016
1$("video").prop('muted', true);
2
3$(".mute-video").click(function () {
4    if ($("video").prop('muted')) {
5        $("video").prop('muted', false);
6        $(this).addClass('unmute-video'); // changing icon for button
7
8    } else {
9        $("video").prop('muted', true);
10        $(this).removeClass('unmute-video'); // changing icon for button
11    }
12    console.log($("video").prop('muted'))