[samigo-team] Replacing Java applet with HTML5/Flash

Keli Sato Amann kamann at stanford.edu
Tue Feb 19 15:01:10 PST 2013


Sorry, OK I refreshed myself on HTML5 and did some experimentation and I think I see what you are saying. Using the dev tools in Chrome I replaced  

<embed src="http://198.30.168.81:7080/samigo-app/servlet/ShowMedia?mediaId=62" volume="50" height="25" width="300" autostart="false" autoplay="false" controller="true" type="audio/basic" title="QuickTime Player">

with

<audio controls>
  <source src="http://198.30.168.81:7080/samigo-app/servlet/ShowMedia?mediaId=61" type="audio/wav">
Your browser does not support the audio element.
</audio>

and I could get the audio to playback (though for some reason, I can't recreate it). I will put in a JIRA and talk to our dev team. And I'll talk to Ken and Christine, --not that we'd add something, but it needs to have similar behavior to java recorder. I do notes the recording window no longer closes after upload, did that get removed.

So are you creating just a wav file, or are you creating an mp3 as well so this can play on IE without a plugin? And your flash version of the applet creates the same file type(s)?

Keli
----- Original Message -----
From: "Sam Ottenhoff" <ottenhoff at longsight.com>
To: "Keli Sato Amann" <kamann at stanford.edu>
Cc: "Samigo Team" <samigo-team at collab.sakaiproject.org>
Sent: Monday, February 18, 2013 10:55:14 AM
Subject: Re: [samigo-team] Replacing Java applet with HTML5/Flash







On Fri, Feb 15, 2013 at 8:00 PM, Keli Sato Amann < kamann at stanford.edu > wrote: 


Wow Sam, thanks for doing this! Seems like someone makes an announcement about Java security every week. Some comments 

1) Maybe you are saying that playback doesn't work and that's a separate fix? Otherwise, maybe something is wrong with my quicktime installation. I went in as a student but I was not sure if it worked or not: I was not able to listen to what I had recorded and when I click to download it generated an error when I clicked the link. As an instructor, I can see something submitted but I have a greyed out Q icon, even though I enabled Quicktime Version: 7.6.6 (I can download the .au file this time, but I get a note from QT that says audio_3_1.au cannot be opened). 



It's most likely related to the mime type of the audio file (maybe audio/basic versus audio/wav), but as mentioned in a separate email thread this morning, I recommend replacing the outdated Quicktime embeds with HTML5 embeds where possible (IE is the only browser that doesn't have HTML5 WAV support). 






2) the progress bar was still going while it said the "Upload is complete. Closing this window." Maybe it should say "Uploading recording. Window will close when complete." 



Okay, I changed the text. 





3) it's unclear what will happen when I click stop or post. Sometimes I click stop and it uploads (the second time), other times I have to explicitly click "post recording." I think it should only upload when you click post recording. 





What if the instructor only wants the student to have one opportunity to record? Shouldn't the student be denied the opportunity to try and reload or close the recorder to get a fresh chance? 







4) finally my secret hope was that this might work from iOS devices since it works with HTML5, but the recording button doesn't really work. Also, it opens a second browser window, which might get complicated, since it will do this for every new question. 





Yes, I too was hoping that Apple would be as aggressively innovative in this space as they were in aggressively killing Flash. But it appears Google is doing the innovation in this space for now. Hopefully, Apple will catch up soon. 





When this gets further along, I will forward this to Ken Romeo, who works with the language instructors here and is intimately familiar with their needs for this app. 





Okay, feel free to pass on. I can't promise I'm going to develop to the specifications of your constituents, but I'm happy to take a look at reasonable requests. 


--Sam 


More information about the samigo-team mailing list