fallback for mic stream stop
This commit is contained in:
parent
9d44b0251a
commit
5a37bd1d4a
3 changed files with 8 additions and 3 deletions
|
|
@ -95,7 +95,13 @@ export default Em.Component.extend(helperMixin, visualizerMixin, {
|
|||
this.changePlayerControl('audioMode', 0);
|
||||
|
||||
if(!Em.isNone(audioStream)){
|
||||
audioStream.stop();
|
||||
var tracks = audioStream.getVideoTracks();
|
||||
if (tracks && tracks[0] && tracks[0].stop) tracks[0].stop();
|
||||
|
||||
if (audioStream.stop) {
|
||||
// deprecated, may be removed in future
|
||||
audioStream.stop();
|
||||
}
|
||||
|
||||
this.setProperties({
|
||||
audioStream: null,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default Em.Mixin.create({
|
|||
values: [0,20,40,60,80,100],
|
||||
density: 10,
|
||||
format: {
|
||||
to: function ( value ) {return value;},
|
||||
to: function ( value ) {return 'x'+value;},
|
||||
from: function ( value ) { return value; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@
|
|||
<div class="beatOption col-xs-4">
|
||||
<span data-toggle="tooltip" data-placement="bottom auto" data-title="The coefficient to boost the microphone signal by" class="optionDescription bootstrapTooltip">Microphone Boost</span>
|
||||
{{range-slider start=micBoost orientation="vertical" step=beatOptions.micBoost.step range=beatOptions.micBoost.range slide="micBoostChanged" pips=beatOptions.micBoost.pips}}
|
||||
<div class="text-center">{{micBoost}}</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
Reference in a new issue