Commit fd0dbf2b by vietdo

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

parent d47d579a
......@@ -2566,21 +2566,22 @@ CONTENTVIEW_CREATEOBJECT.createAudio = function(audio, type) {
if (audio != '') {
if (type == "0") { /* play when click */
console.log("length"+$('#play_audio_0').length);
//
if($('#play_audio_0').length){
//pouseできるようにする
var myAudio=document.getElementById("play_audio_0");
if (myAudio.paused)
$("#playaudio").on("play", function (me) {
jQuery('audio').each(function (i,e) {
if (e != me.currentTarget)
{
myAudio.play();
} else {
myAudio.pause();
this.pause();
}
});
});
//CONTENTVIEW.stopAllAudio();
return;
//return;
}
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