0
Hi guys from stackoverflow,
Have an example Github, showing audio preview.
How to do this in Asp.net mvc ?
View:
<audio controls style="width: 375px;height:225px;">
<source src="@Url.Action("StreamUploadedSong", "Account", new { id = Model.Id })" type="audio/mp3" />
Your browser does not support the audio element.
</audio>
Image example:
Where the red rectangle is, it is to show viewing while playing audio.
Any idea ?
For viewing you say a Poster, with some image referring to the audio in question?
– Leo Letto
Hi @Leoletto, yes
– Matheus Miranda
I just want to show animation while playing the music
– Matheus Miranda
Unfortunately I lost some content I had, I won’t be able to send you link, but you can create this effect with CSS Animation, and pass random values to create the animation
– Leo Letto
All right, I’ll do a little research.
– Matheus Miranda
With CSS Animation works with Analysernode ?
– Matheus Miranda
Not pure CSS, but you can change the values dynamically with jquery
– Leo Letto
Possible duplicate of Get "waves" from sound or music frequency.
– Guilherme Nascimento
if you check the link shown in the question the requested view is different from the duplicate question.
– tomasantunes
Yes @Tomásantunes, but the principles are the same, right? In fact there is no answer on the site that explains how all this works (ours demonstrate but do not explain).
– bfavaretto