开发者

Changing the src path of html5 audio element using c#

开发者 https://www.devze.com 2023-01-30 22:10 出处:网络
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 ac开发者_StackOverflowcess the audio element in C# but am unable

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 ac开发者_StackOverflowcess the audio element in C# but am unable to figure out how to change the src attribute. Thanks!


Have you tried this way?

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

精彩评论

暂无评论...
验证码 换一张
取 消