Explorar o código

Merge branch 'master' of http://192.168.32.253:3000/Software/android-cloud-H5

heyang %!s(int64=4) %!d(string=hai) anos
pai
achega
19f11e4c7b
Modificáronse 1 ficheiros con 5 adicións e 8 borrados
  1. 5 8
      screenIos/pcm-player.js

+ 5 - 8
screenIos/pcm-player.js

@@ -47,14 +47,11 @@ PCMPlayer.prototype.getTypedArray = function () {
 };
 
 PCMPlayer.prototype.createContext = function () {
-    var handleSuccess = function (stream) {
-        this.audioCtx = new (window.AudioContext || window.webkitAudioContext)();
-        this.gainNode = this.audioCtx.createGain();
-        this.gainNode.gain.value = 1;
-        this.gainNode.connect(this.audioCtx.destination);
-        this.startTime = this.audioCtx.currentTime;
-    }
-    navigator.mediaDevices.getUserMedia({audio: true, video: true}).then(handleSuccess);
+    this.audioCtx = new (window.AudioContext || window.webkitAudioContext)();
+    this.gainNode = this.audioCtx.createGain();
+    this.gainNode.gain.value = 1;
+    this.gainNode.connect(this.audioCtx.destination);
+    this.startTime = this.audioCtx.currentTime;
 };
 
 PCMPlayer.prototype.isTypedArray = function (data) {