Skip to content

Commit

Permalink
fixed chrome died bug
Browse files Browse the repository at this point in the history
  • Loading branch information
qieangel2013 committed Dec 6, 2016
1 parent b820aec commit dd7ead3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions views/live.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@
//$('#audio').append('<source src="'+zqfdata.Data+'"/>')
audio.playlist.push(zqfdata.Data);
//audio.src =zqfdata.Data;
/*if(audio.paused){
audio.play();
console.log(audio.currentSrc);
} */
if(audio.paused){
audio.start();
}
/*g_audio.elems["id"] = '';
g_audio.push({
song_id: '',
Expand All @@ -114,7 +113,7 @@
function senddata(data){
receiver_socket.send(JSON.stringify({Data:data,Mtype:"mess",Img:''}));
}
audio.start();
//audio.start();
</script>
<!--<button onclick="receiver_socket.send(JSON.stringify({data:document.getElementById('content').value,type:'mess'}));">发送</button>
<button onclick="receiver_socket.send(JSON.stringify({data:'smes_closed',type:'mess'}));">关闭</button>-->
Expand Down

0 comments on commit dd7ead3

Please sign in to comment.