[rt-users] Anyone using the HTML5 audio tag to play wav files

Robert Blackwell robert at robertblackwell.com
Thu Apr 25 12:02:12 EDT 2013


I am considering adding the HTML5 audio tag to tickets that have wav
attachments. Is anyone already doing this and have a story to tell?


I am considering adding something like this to html/Ticket/ShowAttachments
%if($rev->ContentType eq  'audio/wav') {

% my $link = RT->Config->Get('WebPath') . "/Ticket/Attachment/" . join "/",
$rev->TransactionId, $rev->Id, $rev->Filename;
<audio controls>
  <source src="<% $link %>"
</audio>
% }

Thanks
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130425/5a8d7c06/attachment.htm>


More information about the rt-users mailing list