Commit 7a2079d0 by Takatoshi Miura

Merge branch 'communication/#43111_audio-archive' into 'develop'

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

See merge request !167
parents d1e0e0f0 05b37ef7
...@@ -1905,7 +1905,11 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) { ...@@ -1905,7 +1905,11 @@ CHAT_UI.refreshArchiveDetailScreen = function(archiveId) {
break; break;
case "2": // 音声 case "2": // 音声
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" + ' />'); $('#archive_player').prepend('<img class="archive_player" src=' + "./img/capture.png" + ' />');
break; break;
case "3": // 文書 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