音声チャットの機能をskywayskywayのjsSDKを使って導入したいのですが、一部使用ができない状態を解決したいです。
android,windows(chrome)は良好です。
iPhone7Plus,mac(safari)は音声の送信はできますが受信ができず相手の声が聞こえない状態です。
試したこと:
https://lealog.hateblo.jp/entry/2018/03/27/161141のページを参考に
<video muted playsinline autoplay />
<audio src="" autoplay />
js
1//接続方法 2 jQuery('#make-call').on('submit', e => { 3 e.preventDefault(); 4 // Initiate a call! 5 const roomName = jQuery('#join-room').val(); 6 if (!roomName) { 7 return; 8 } 9 room = peer.joinRoom('mesh_video_' + roomName, { 10 mode: 'mesh', 11 stream: localStream, 12 videoCodec: 'H264', 13 }); 14 15 jQuery('#room-id').text(roomName); 16 step3(room); 17 }); 18 19~~~~~~~~~ 20~~~~~~~~~ 21//ストリーム 22 function step3(room) { 23 // Wait for stream on the call, then set peer video display 24 room.on('stream', stream => { 25 const peerId = stream.peerId; 26 const id = 'video_' + peerId + '_' + stream.id.replace('{', '').replace('}', ''); 27 28 jQuery('#their-videos').append(jQuery( 29 '<div class="background_theirvideo"><div class="video_' + peerId +'" id="' + id + '">' + 30 '<label>' + stream.peerId + ':' + stream.id + '</label>' + 31 '<video class="remoteVideos" autoplay playsinline />' + 32 '</div><div class="their_icon"></div></div>')); 33 const el = jQuery('#' + id).find('video').get(0); 34 el.srcObject = stream; 35 el.play(); 36 }); 37 38
あなたの回答
tips
プレビュー