Problem using an ASP page as an URL for MediaPlayer ActiveX
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
Problem using an ASP page as an URL for MediaPlayer ActiveX

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





Posted: Wed Oct 12, 2005 8:30 pm    Post subject: Problem using an ASP page as an URL for MediaPlayer ActiveX Reply with quote

Hi,
I'm using an ASP page to manage rights for access to wmv playlists (IP
check, timelife for access, etc..).
When the URL field of the MediaPlayer object in my HTML page is
mms://<streamserver>/xxxyzzz.wsx it's ok...
When the URL field is http://<mywebserver>/xxx.asp the player doesn't start
playing...
When i try to force playing by tricking the protcol
(mms://<mywebserver>/xxx.asp) the player starts after 10 seconds waiting (?!)
The ASP page uses a response.redirect to redirect the request to the wsx
file. I guess it's not the right way to proceed... Does anyone knows the way
to do this ?

The ASP page looks like this :
<%@ Language=VBScript %>
<%
Response.expires=-1000
Response.buffer=true

'...
'Stuffs to compute the mms:// path
'...

Response.clear
Response.redirect "mms://<myserver>/myfile.wsx" ' Sample
%>

Thanks by advance...
Guillaume

Back to top
Neil Smith [MVP Digital M
Guest





Posted: Wed Oct 12, 2005 8:30 pm    Post subject: Re: Problem using an ASP page as an URL for MediaPlayer Acti Reply with quote

On Wed, 12 Oct 2005 10:16:05 -0700, Guillaume
<Guillaume@discussions.microsoft.com> wrote:

[quote]Hi,
I'm using an ASP page to manage rights for access to wmv playlists (IP
check, timelife for access, etc..).
When the URL field of the MediaPlayer object in my HTML page is
mms://<streamserver>/xxxyzzz.wsx it's ok...
When the URL field is http://<mywebserver>/xxx.asp the player doesn't start
playing...
When i try to force playing by tricking the protcol
(mms://<mywebserver>/xxx.asp) the player starts after 10 seconds waiting (?!)
The ASP page uses a response.redirect to redirect the request to the wsx
[/quote]
I can't see your code sending Response.ContentType="video/x-ms-asf" as
specified for windows media mime types.

http://www.microsoft.com/windows/windowsmedia/howto/articles/webserver.aspx

If it still doesn't work, send the headers then the content of the wsx
file (should now be using asx file extension BTW)

Cheers - Neil

[quote]file. I guess it's not the right way to proceed... Does anyone knows the way
to do this ?

The ASP page looks like this :
%@ Language=VBScript %
%
Response.expires=-1000
Response.buffer=true

'...
'Stuffs to compute the mms:// path
'...

Response.clear
Response.redirect "mms://<myserver>/myfile.wsx" ' Sample
%

Thanks by advance...
Guillaume[/quote]
Back to top
Guillaume
Guest





Posted: Thu Oct 13, 2005 4:30 pm    Post subject: Re: Problem using an ASP page as an URL for MediaPlayer Acti Reply with quote

I've found THE solution !...
I'll use ActiveX Scripts on the Windows Streaming Services... These Scripts
provide a lot of precious informations (IP, time, file to play, HTTP
Referrer, etc...). They are events based.

The main advantage is to keep a regular way to access streaming contents
(standard mms requests instead of using ASP pages). Security checks are
performed within WMS context.

Thanks anyway !

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