| 123456789101112131415161718192021222324 |
- var Recorders = function(){
- this.recorders = new Array();
- this.audios = new Array();
- }
- Recorders.prototype = {
- getLength : function(){
- return this.recorders.length;
- },
- getAudioByIndex : function(index){
- return this.audios[i];
- },
- getRecorderByIndex : function(index){
- return this.recorders[i];
- },
- addRecorders : function(recoder){
- this.recorders.push(recoder);
- var audio = new Audio();
- audio.controls = true;
- audio.autoplay = true;
- audio.style = 'display:none;';
- this.audios.push(audio);
- }
- }
|