| 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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|