Dynamic rich media component for ASP.Net Flash, Video and Audio controls for C# and VB.Net
Welcome Guest Search | Active Topics | Members | Log In | Register

Aspnetaudio can not play some files Options · View
rhnmtn
Posted: Wednesday, November 04, 2009 1:23:41 PM
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?
Jake
Posted: Tuesday, November 10, 2009 5:27:07 AM
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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.