Dynamic ASP playlist
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Dynamic ASP playlist

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
wapspeed
Guest





Posted: Thu Aug 11, 2005 4:30 pm    Post subject: Dynamic ASP playlist Reply with 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
Neil Smith [MVP Digital M
Guest





Posted: Thu Aug 11, 2005 4:30 pm    Post subject: Re: Dynamic ASP playlist Reply with 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:

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 Reply with 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:

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 Reply with 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:

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 Reply with quote

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
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

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



Microsoft Office Forum New Topics
Powered by phpBB