PlaybackUrlBase Property
Gets or sets the URL of the folder on the Web server in which the recording is saved. Read/write.
Usage
ASP.NET markup: | <speech:RecordSound PlaybackUrlBase="..." /> |
Get value: | String = RecordSound.PlaybackUrlBase; |
Set value: | RecordSound.PlaybackUrlBase = String; |
Data type: | String |
Required: | No |
Remarks
The RecordSound control's SavePath property should contain the full local path of this folder on the Web server, and the PlaybackUrlBase property should contain the domain and the name of this folder.
The PlaybackUrlBase is concatenated with the recorded filename to form a complete URL that can be accessed by the client browser. For example,
- Value of PlaybackUrlBase property
http://www.cpandl.com/recordings/ - Name of recorded file
RecMsg0537245.wav - URL of recorded file
http://www.cpandl.com/recordings/RecMsg0537245.wav
Example
The following example assumes that the playback folder on the Web server is a virtual directory associated with the folder d:\vdirs\playback.
<form id="Form1" method="post" runat="server">
...
<speech:RecordSound ID="RecordSound1"
AutoPostBack="True"
BabbleTimeout="5000" InitialTimeout="1000" MaxTimeout="5000"
Beep="False"
Enabled="True"
EndSilence="1000"
PlaybackUrlBase="http://www.cpandl.com/playback/"
SavePath="d:\vdirs\playback"
SavePartialRecord="False"
SemanticItem="SemanticItem1"
Type="audio/wav"
runat="server">
<Prompt InlinePrompt="Please record your message"></Prompt>
</speech:RecordSound>
...
</form>
See Also
RecordSound Class | RecordSound Constructor | RecordSound Members | RecordSound Properties | RecordSound Methods | RecordSound Events | RecordSound Remarks