Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
GameOfWords
Commits
45e15c44
Commit
45e15c44
authored
Apr 29, 2017
by
Mathieu Loiseau
Browse files
recording naming
parent
39bdde92
Changes
1
Hide whitespace changes
Inline
Side-by-side
controllersJS/oracle.recorder.js
View file @
45e15c44
...
...
@@ -40,7 +40,7 @@ function OracleRecorder(recordRTCOptions){
self
.
recorder
.
stopRecording
(
function
(
audioURL
){
self
.
stopRecordingSuccess
(
audioURL
,
self
.
recorder
.
blob
);
previewRec
(
audioURL
);
fileName
=
'
oracle
'
+
Math
.
round
(
Math
.
random
()
*
99
9999
+
1
);
fileName
=
'
rec_
'
+
Math
.
round
((
Date
.
now
()
-
1400000000000
)
/
92
)
+
""
+
Math
.
round
(
Math
.
random
()
*
99
);
var
fileReader
=
new
FileReader
();
fileReader
.
onload
=
function
(
event
)
{
var
newBlob
=
new
Blob
([
event
.
target
.
result
],
{
type
:
"
audio/ogg
"
,
endings
:
"
native
"
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment