how can i start video on load with volume in chrome.
I try this code for notification its work fine but I want sound to allow. Using Javascript
how can I do this?
navigator.mediaDevices.getUserMedia({ audio: true })
.then(function(stream) {
console.log('You let me use your mic!')
})
.catch(function(err) {
console.log('No mic for you!')
});
HTML code ( I want to run like this )
<video width="100%" height="100%" id="y2mate_play_auto" controls="controls" autoplay>
<source src="../img/y2mate.com.mp4" type="video/mp4" />
</video>
allow using code how can i ? please help me for the above.
thanks