|
@@ -171,20 +171,23 @@ export default {
|
|
PlayAudio() {
|
|
PlayAudio() {
|
|
let audioId = this.audioId;
|
|
let audioId = this.audioId;
|
|
let audio = document.getElementsByTagName("audio");
|
|
let audio = document.getElementsByTagName("audio");
|
|
- audio.forEach((item) => {
|
|
|
|
- if (item.src == this.mp3) {
|
|
|
|
- if (item.id !== audioId) {
|
|
|
|
|
|
+ if(audio&&audio.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
|
+ audio.forEach((item) => {
|
|
|
|
+ if (item.src == this.mp3) {
|
|
|
|
+ if (item.id !== audioId) {
|
|
|
|
+ item.pause();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
item.pause();
|
|
item.pause();
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- item.pause();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
let video = document.getElementsByTagName("video");
|
|
let video = document.getElementsByTagName("video");
|
|
- video.forEach((vItem) => {
|
|
|
|
- vItem.pause();
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
+ if(video&&video.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
|
+ video.forEach((vItem) => {
|
|
|
|
+ vItem.pause();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
if (this.audio.playing) {
|
|
if (this.audio.playing) {
|
|
this.$refs[audioId].pause();
|
|
this.$refs[audioId].pause();
|
|
this.audio.playing = false;
|
|
this.audio.playing = false;
|
|
@@ -262,11 +265,13 @@ export default {
|
|
this.playValue = (res / this.audio.maxTime) * 100;
|
|
this.playValue = (res / this.audio.maxTime) * 100;
|
|
if (playFlag) {
|
|
if (playFlag) {
|
|
let audio = document.getElementsByTagName("audio");
|
|
let audio = document.getElementsByTagName("audio");
|
|
- audio.forEach((item) => {
|
|
|
|
- if (item.id !== audioId) {
|
|
|
|
- item.pause();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if(audio&&audio.length>0&&window.location.href.indexOf('GCLS-Learn')==-1){
|
|
|
|
+ audio.forEach((item) => {
|
|
|
|
+ if (item.id !== audioId) {
|
|
|
|
+ item.pause();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
this.$refs[audioId].play();
|
|
this.$refs[audioId].play();
|
|
}
|
|
}
|
|
},
|
|
},
|