aaron
aaron

Reputation: 93

Changing the src path of html5 audio element using c#

I am creating a control that contains an html5 audio element and I want to be able to change the source of the audio dynamically. I can access the audio element in C# but am unable to figure out how to change the src attribute. Thanks!

Upvotes: 2

Views: 1888

Answers (1)

Elph
Elph

Reputation: 1604

Have you tried this way?

audioElement.Attributes["src"] = "something";

Upvotes: 1

Related Questions