recit player fadeout bug fix 2 #2240
This commit is contained in:
parent
af84d7c27c
commit
fdaeb3a433
@ -53,12 +53,15 @@ export default {
|
|||||||
// console.log(`recitPlayer fading volume:${this.recit_plyr_player.volume}`);
|
// console.log(`recitPlayer fading volume:${this.recit_plyr_player.volume}`);
|
||||||
this.recit_plyr_player.volume *= 0.9;
|
this.recit_plyr_player.volume *= 0.9;
|
||||||
}else{
|
}else{
|
||||||
|
console.log('fadeout done');
|
||||||
this.recit_plyr_player.volume = 0.6;
|
this.recit_plyr_player.volume = 0.6;
|
||||||
this.recit_plyr_player.stop();
|
this.recit_plyr_player.stop();
|
||||||
clearInterval(this.fadeOutInterval);
|
clearInterval(this.fadeOutInterval);
|
||||||
|
this.fadeOutInterval = null;
|
||||||
|
|
||||||
// if during the the fadeout we opened an other recit, play it
|
// if during the the fadeout we opened an other recit, play it
|
||||||
if (this.opened_recit) {
|
if (this.opened_recit) {
|
||||||
|
console.log('recitPlayer fade done, this.opened_recit', this.opened_recit);
|
||||||
this.recit_plyr_player.source = {
|
this.recit_plyr_player.source = {
|
||||||
type: 'audio',
|
type: 'audio',
|
||||||
sources: [
|
sources: [
|
||||||
@ -74,6 +77,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
|
console.log('recitPlayer new n', n, this.fadeOutInterval);
|
||||||
if (n && !this.fadeOutInterval) { // if new and we are not in in a fadeout
|
if (n && !this.fadeOutInterval) { // if new and we are not in in a fadeout
|
||||||
if(n.file.url){
|
if(n.file.url){
|
||||||
// console.log(`switching source`);
|
// console.log(`switching source`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user