diff --git a/README.md b/README.md index 663d786..4271a73 100755 --- a/README.md +++ b/README.md @@ -20,3 +20,24 @@ sudo apt-get install ffmpeg ## Srttojs python3 srttojs.py description-alex1-A.srt + +# eaiaiaiaoi +Give access to apache for uploading audio through php +`sudo chown www-data:www-data /uploads/` + +## record and save user's microphone +Updated script: https://developers.google.com/web/fundamentals/media/recording-audio + +errors: +https://stackoverflow.com/questions/34215937/getusermedia-not-supported-in-chrome + +Chrome finally implemented the new navigator.mediaDevices.getUserMedia() method, but they added a security that will prevent the calls from unsecure address (non https or non localhost servers) + +You will call it like this : + +var video = document.querySelector('video'); +navigator.mediaDevices.getUserMedia({video:true}).then(function(mediaStream){ + window.stream = mediaStream; + video.src = URL.createObjectURL(mediaStream); + video.play(); +}); diff --git a/js/main.js b/js/main.js index fb22ed1..2ec7f91 100755 --- a/js/main.js +++ b/js/main.js @@ -44,6 +44,7 @@ window.onclick2 = function(event) { // + var a1 = document.getElementById("a1"), a2 = document.getElementById("a2"), but = document.getElementById("but"); diff --git a/player.php b/player.php index 340c463..e649169 100755 --- a/player.php +++ b/player.php @@ -333,6 +333,10 @@
+ | EPISODES |
+
+'; +echo ' |
Dear listener,
+you are invited toMaximum duration: 1 min
+Best recorded from a computer
+Something like a Privacy Policy
+ +Dear listener,
+you are invited toMaximum duration: 1 min
+Best recorded from a computer
+ + + diff --git a/web-dictaphone b/web-dictaphone new file mode 160000 index 0000000..3d9dee2 --- /dev/null +++ b/web-dictaphone @@ -0,0 +1 @@ +Subproject commit 3d9dee2cd294eb58d46c31b17855f2ceee5cde21