good day,
I downloaded the asp .net sample and so far everything seems to be working fine, i'm able to record mp3s, play then back and upload them, however when I try the listen function (WEBPLAY), nothing happens.... I checked and the mp3 file is existing in the /.../voicefiles/user_fox/ folder... in the gui provided in the sample, the message "connecting to server..." is displayed in the text field but nothing else happens... what could I be doing wrong? Am I missing a file? please help, we want to buy your component but I'm an asp .net newbie and need some assistance...
asp.net playing mp3 from server
Started by Guest_xim_*, Dec 10 2007 06:40 AM
1 reply to this topic
#1 Guest_xim_*
Posted 10 December 2007 - 06:40 AM
#2
Posted 10 December 2007 - 10:57 AM
Hi,
can you give me the link to your test web page? I would like to check it.
More details about WEBPLAY() method.
In the example web page you can see the JavaScript function WEBPLAY_RP() which call applet method WEBPLAY().
function WEBPLAY_RP() {
document.RPApplet.WEBPLAY(UserServerFolder + "/" + document.Gui_RP.VoiceItems.value);
}
WEBPLAY() is the applet method which playback the mp3 file from the server in the streaming mode.
To playback the mp3 file from the server, applet has to know the path to mp3 file (URL) and it file name.
We pass to WEBPLAY() not full path to mp3 file. We pass only part of the path which is after /voicefiles/ folder.
For instanse, if mp3 files was saved in the www.vimas.com/voicefiles/mp3/filename.mp3
The www.vimas.com/voicefiles/ path applet already has inside. We will pass to applet as argument /mp3 and filename.mp3
So, in the argument UserServerFolder + "/" + document.Gui_RP.VoiceItems.value,
the UserServerFolder is /mp3 .
document.Gui_RP.VoiceItems.value is filename.mp3
So, main issue - applet has inside the "www.vimas.com/voicefiles/ " !!!
You have to add only next subfolder(s) and filename!
I hope, it help you.
can you give me the link to your test web page? I would like to check it.
More details about WEBPLAY() method.
In the example web page you can see the JavaScript function WEBPLAY_RP() which call applet method WEBPLAY().
function WEBPLAY_RP() {
document.RPApplet.WEBPLAY(UserServerFolder + "/" + document.Gui_RP.VoiceItems.value);
}
WEBPLAY() is the applet method which playback the mp3 file from the server in the streaming mode.
To playback the mp3 file from the server, applet has to know the path to mp3 file (URL) and it file name.
We pass to WEBPLAY() not full path to mp3 file. We pass only part of the path which is after /voicefiles/ folder.
For instanse, if mp3 files was saved in the www.vimas.com/voicefiles/mp3/filename.mp3
The www.vimas.com/voicefiles/ path applet already has inside. We will pass to applet as argument /mp3 and filename.mp3
So, in the argument UserServerFolder + "/" + document.Gui_RP.VoiceItems.value,
the UserServerFolder is /mp3 .
document.Gui_RP.VoiceItems.value is filename.mp3
So, main issue - applet has inside the "www.vimas.com/voicefiles/ " !!!
You have to add only next subfolder(s) and filename!
I hope, it help you.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












