Commit 05b37ef7 by Takatoshi Miura

#43111_audio-archive_iOSで音声のアーカイブが再生できないバグを修正

parent b4450c27
......@@ -1905,7 +1905,11 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
break;
case "2": // 音声
case 2:
$('#archive_player').prepend('<audio class="archive_audio_player" src=' + archiveFilePath + ' controls controlsList="nodownload"></audio>');
if (CHAT_UTIL.isIOS()) {
$('#archive_player').prepend('<audio class="archive_audio_player" controls controlsList="nodownload"><source src="'+archiveFilePath+'" type="audio/mp3"><source src="'+archiveFilePath+'" type="audio/wav"><source src="'+archiveFilePath+'" type="audio/ogg"></audio>');
} else {
$('#archive_player').prepend('<audio class="archive_audio_player" src=' + archiveFilePath + ' controls controlsList="nodownload"></audio>');
}
$('#archive_player').prepend('<img class="archive_player" src=' + "./img/capture.png" + ' />');
break;
case "3": // 文書
......
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