| Author |
Message |
wapspeed
Guest
|
Posted:
Thu Aug 11, 2005 4:30 pm Post subject:
Dynamic ASP playlist |
|
|
I am trying to Dynamically generate a playlist base on users selection. where
the users can select multiple wma files and send it to an asp page. The
media player opens but it does not play.
------------------------------Begin Codes--------------------------
Response.ContentType="video/x-ms-asf"
Response.Expires=0
strServer ="http://www.xxxxx.com"
strSongs = Split(Request.Form("checkbox"), ",")
Response.Write "ASX Version=""3.0"">" & vbNewLine
For X=0 to UBound(strSongs)
AddEntry(strSongs(X))
Next
Response.Write "</ASX>"
Sub AddEntry(strFileName)
Response.Write "<ENTRY><REF HREF=""" & strServer & strFileName
&"""/></ENTRY>" & vbNewLine
End Sub
----------------------------End Codes------------------------------
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Thu Aug 11, 2005 4:30 pm Post subject:
Re: Dynamic ASP playlist |
|
|
You're missing an opening angle bracket, just check the downloaded ASX
files to confirm it's well formed :
Response.Write "ASX Version=""3.0"">" & vbNewLine
Cheers - Neil
On Thu, 11 Aug 2005 06:09:10 -0700, "wapspeed"
<wapspeed@discussions.microsoft.com> wrote:
| Quote: | I am trying to Dynamically generate a playlist base on users selection. where
the users can select multiple wma files and send it to an asp page. The
media player opens but it does not play.
------------------------------Begin Codes--------------------------
Response.ContentType="video/x-ms-asf"
Response.Expires=0
strServer ="http://www.xxxxx.com"
strSongs = Split(Request.Form("checkbox"), ",")
Response.Write "ASX Version=""3.0"">" & vbNewLine
For X=0 to UBound(strSongs)
AddEntry(strSongs(X))
Next
Response.Write "</ASX>"
Sub AddEntry(strFileName)
Response.Write "<ENTRY><REF HREF=""" & strServer & strFileName
&"""/></ENTRY>" & vbNewLine
End Sub
----------------------------End Codes------------------------------ |
|
|
| Back to top |
|
 |
wapspeed
Guest
|
Posted:
Thu Aug 11, 2005 4:30 pm Post subject:
Re: Dynamic ASP playlist |
|
|
Thank you for your reply, but it was my mistake in posting the message. I do
have the opening braket in the actual code and it still does not work. Am I
missing anything else?
"Neil Smith [MVP Digital Media]" wrote:
| Quote: | You're missing an opening angle bracket, just check the downloaded ASX
files to confirm it's well formed :
Response.Write "ASX Version=""3.0"">" & vbNewLine
Cheers - Neil
On Thu, 11 Aug 2005 06:09:10 -0700, "wapspeed"
wapspeed@discussions.microsoft.com> wrote:
I am trying to Dynamically generate a playlist base on users selection. where
the users can select multiple wma files and send it to an asp page. The
media player opens but it does not play.
------------------------------Begin Codes--------------------------
Response.ContentType="video/x-ms-asf"
Response.Expires=0
strServer ="http://www.xxxxx.com"
strSongs = Split(Request.Form("checkbox"), ",")
Response.Write "ASX Version=""3.0"">" & vbNewLine
For X=0 to UBound(strSongs)
AddEntry(strSongs(X))
Next
Response.Write "</ASX>"
Sub AddEntry(strFileName)
Response.Write "<ENTRY><REF HREF=""" & strServer & strFileName
&"""/></ENTRY>" & vbNewLine
End Sub
----------------------------End Codes------------------------------
|
|
|
| Back to top |
|
 |
wapspeed
Guest
|
Posted:
Thu Aug 11, 2005 8:30 pm Post subject:
Re: Dynamic ASP playlist |
|
|
I found out what was the problem with my codes.
1: The form needs to use Get method
2: strSongs = Split(Request.Form("checkbox"), ",") I had to add a space
here ", ".
Everything is working fine now.
"wapspeed" wrote:
| Quote: | Thank you for your reply, but it was my mistake in posting the message. I do
have the opening braket in the actual code and it still does not work. Am I
missing anything else?
"Neil Smith [MVP Digital Media]" wrote:
You're missing an opening angle bracket, just check the downloaded ASX
files to confirm it's well formed :
Response.Write "ASX Version=""3.0"">" & vbNewLine
Cheers - Neil
On Thu, 11 Aug 2005 06:09:10 -0700, "wapspeed"
wapspeed@discussions.microsoft.com> wrote:
I am trying to Dynamically generate a playlist base on users selection. where
the users can select multiple wma files and send it to an asp page. The
media player opens but it does not play.
------------------------------Begin Codes--------------------------
Response.ContentType="video/x-ms-asf"
Response.Expires=0
strServer ="http://www.xxxxx.com"
strSongs = Split(Request.Form("checkbox"), ",")
Response.Write "ASX Version=""3.0"">" & vbNewLine
For X=0 to UBound(strSongs)
AddEntry(strSongs(X))
Next
Response.Write "</ASX>"
Sub AddEntry(strFileName)
Response.Write "<ENTRY><REF HREF=""" & strServer & strFileName
&"""/></ENTRY>" & vbNewLine
End Sub
----------------------------End Codes------------------------------
|
|
|
| Back to top |
|
 |
Neil Smith [MVP Digital M
Guest
|
Posted:
Fri Aug 12, 2005 12:30 am Post subject:
Re: Dynamic ASP playlist |
|
|
You never mentioned a form, anywhere ;-))
Cheers - Neil
On Thu, 11 Aug 2005 09:56:03 -0700, "wapspeed"
<wapspeed@discussions.microsoft.com> wrote:
| Quote: | I found out what was the problem with my codes.
1: The form needs to use Get method
2: strSongs = Split(Request.Form("checkbox"), ",") I had to add a space
here ", ".
Everything is working fine now.
"wapspeed" wrote:
Thank you for your reply, but it was my mistake in posting the message. I do
have the opening braket in the actual code and it still does not work. Am I
missing anything else?
"Neil Smith [MVP Digital Media]" wrote:
You're missing an opening angle bracket, just check the downloaded ASX
files to confirm it's well formed :
Response.Write "ASX Version=""3.0"">" & vbNewLine
Cheers - Neil
On Thu, 11 Aug 2005 06:09:10 -0700, "wapspeed"
wapspeed@discussions.microsoft.com> wrote:
I am trying to Dynamically generate a playlist base on users selection. where
the users can select multiple wma files and send it to an asp page. The
media player opens but it does not play.
------------------------------Begin Codes--------------------------
Response.ContentType="video/x-ms-asf"
Response.Expires=0
strServer ="http://www.xxxxx.com"
strSongs = Split(Request.Form("checkbox"), ",")
Response.Write "ASX Version=""3.0"">" & vbNewLine
For X=0 to UBound(strSongs)
AddEntry(strSongs(X))
Next
Response.Write "</ASX>"
Sub AddEntry(strFileName)
Response.Write "<ENTRY><REF HREF=""" & strServer & strFileName
&"""/></ENTRY>" & vbNewLine
End Sub
----------------------------End Codes------------------------------
|
|
|
| Back to top |
|
 |
|
|
|
|