I am using html audio element to play sound in mvc 4 and src
is dynamically filled.:
@using (Ajax.BeginForm("Index", "Parameter", new { @class = "form-horizontal col-md-12", @enctype = "multipart/form-data" }, new AjaxOptions
{
HttpMethod = "POST",
UpdateTargetId = "messageid",
InsertionMode = InsertionMode.Replace,
}))
{ <audio style="width:80%" id="56-audio" src="data:audio/mp3;base64,SUQzAwAAAAAfdlRFTkMAAAATA..(base64 string)" preload="auto" controls="controls"></audio>
}
when i refresh the page , its shows empty as below image while value is available in src
tag.
showing empty after page refresh
so is there any solution to avoid showing empty audio
element.