Commit fd0dbf2b by vietdo

#9394 【Web 1.1】タップしてPlayで再生中に再度タップしても止まらない

parent d47d579a
...@@ -2566,21 +2566,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) { ...@@ -2566,21 +2566,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
if (audio != '') { if (audio != '') {
if (type == "0") { /* play when click */ if (type == "0") { /* play when click */
console.log("length"+$('#play_audio_0').length);
// //
if($('#play_audio_0').length){ if($('#play_audio_0').length){
//pouseできるようにする //pouseできるようにする
var myAudio=document.getElementById("play_audio_0"); $("#playaudio").on("play", function (me) {
if (myAudio.paused) jQuery('audio').each(function (i,e) {
if (e != me.currentTarget)
{ {
myAudio.play(); this.pause();
} else {
myAudio.pause();
} }
});
});
//CONTENTVIEW.stopAllAudio(); //CONTENTVIEW.stopAllAudio();
return; //return;
} }
CONTENTVIEW.stopAllAudio(); CONTENTVIEW.stopAllAudio();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment