Rank: Newbie Groups: Member
Joined: 11/4/2009 Posts: 1 Points: 3
|
we just bought aspnetaudio component but we are facing some serious problems. it happened just before the demo to our customers and we are very embrassed.
1) is there any file size or file format restriction for the files that can be played with aspnetaudio? what is the correct way of playing files using javascript? we can not play some files, it just does nothing.
2) Below is the code we use to play the audio files. if we call f_play() once, the audio file starts to play. but if we call it again, it plays the file specified at AudioURL property. and at the thid call, it plays the correct file. why is this?
javascript function: function f_play(url) { var audio_object = ASPNetMedia.Audio("Audio1"); if (url.substring(0, 4) == 'http') { audio_object.PlayMedia(url); } else { audio_object.PlayMedia('http://' + url); } }
html: <ASPNetAudio:Audio ID="Audio1" runat="server" AudioURL="http://musicweb.koncon.nl/AllCourses/MG/MG2b/part-03/Track1-12.mp3" AutoPlay="false"> </ASPNetAudio:Audio> //why do we need to set a AudioURL anyway? if we do not set it, we get no object reference error?
|
Rank: Administration Groups: Administration
Joined: 7/26/2007 Posts: 676 Points: 1,728 Location: USA
|
- We only play MP3 files at standard sampling frequencies. - The files need to be encoded at sizes appropriate for streaming - about 1MB / minute is more that adequate. //why do we need to set a AudioURL anyway? You dont // Its a property analog of PlayMedia. http://www.aspnetmedia.com
|