Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <video width="640" height="264" muted autoplay webkit-playsinline src="'+videoURL+'"></video>'
- $(document).on("click",".containerVolume",function(e){
- if(isMuted){
- $('video').prop('muted', false);
- }
- else{
- $('video').prop('muted',true);
- }
- });
- var videos = document.querySelectorAll('video');
- if (location.search === '?enabled=false')
- {
- } else if (location.search === '?enabled=true') {
- enableVideos(false);
- } else {
- enableVideos();
- }
- function enableVideos(everywhere) {
- for (var i = 0; i < videos.length; i++) {
- window.makeVideoPlayableInline(videos[i], !videos[i].hasAttribute('muted'), !everywhere);
- }
- }
- function toggleMute() {
- var video=document.getElementById("myVideo");
- if(video.muted){
- video.muted = false;
- } else {
- video.muted = true;
- }
- }
- var video=document.getElementById("myVideo") ;
- $(video).on("click", function(e){
- if(video.muted){
- video.muted = false;
- }
- else{
- video.muted = true;
- }
- });
- document.getElementById("theIdOfYourVideoGoesHere").volume=0.9;
- <video id="theIdOfYourVideoGoesHere" muted>
- <video id="theIdOfYourVideoGoesHere">
- document.getElementById("theIdOfYourVideoGoesHere").muted;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement