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

Reply via email to