diff --git a/record-and-playback/slides/playback/slides/playback.html b/record-and-playback/slides/playback/slides/playback.html index 75b26ef011..837f96d082 100755 --- a/record-and-playback/slides/playback/slides/playback.html +++ b/record-and-playback/slides/playback/slides/playback.html @@ -25,16 +25,19 @@ var appName = navigator.appName; var appVersion = navigator.appVersion; audio = document.getElementById("audioRecording"); - - if(appName == "Microsoft Internet Explorer" || (appVersion.match("Safari") != null && appVersion.match("Chrome") == null) ){ + if(appName == "Microsoft Internet Explorer" ){ + var message = "This playback requires modern browser, please use FF, Safari, Chrome, Opera"; + var line = document.createElement("p"); + line.appendChild(document.createTextNode(message)); + document.getElementById("chat").appendChild(line); + }else if (appVersion.match("Safari") != null && appVersion.match("Chrome") == null){ audio.setAttribute('src', RECORDINGS + '/audio/recording.wav'); audio.setAttribute('type','audio/x-wav'); - } - else { + }else { audio.setAttribute('src', RECORDINGS + '/audio/audio.ogg'); audio.setAttribute('type','audio/ogg'); - } - audio.setAttribute('data-timeline-sources', SLIDES_XML) + } + audio.setAttribute('data-timeline-sources', SLIDES_XML) }, false); @@ -44,7 +47,8 @@
- +