Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Media / General Topics / August 2006

Tip: Looking for answers? Try searching our database.

wmv and htaccess

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichardEDaley@gmail.com - 28 Aug 2006 20:34 GMT
Hi,

I have a page that is in a directory with an htaccess file.  As you'd
expect, when the user tries to get to that page, they are prompted for
a username and password.  Once they are in, they can freely look at all
of the pages and other documents within the directory and
subdirectories.

We have two wmv files that are in a subdirectory below the main
directory and for some reason, media player asks again for the htaccess
username and password when it opens.  I assume it has something to do
with the browser that is contained in media player but I don't know how
to make it open without reentering the username and password.

Any help anyone can give me would be appreciated.

Thanks!
Rich
Gary Hasler - 29 Aug 2006 00:45 GMT
So I assume your htacces file permits directory browsing, and the users are
picking their files using their web browser in that mode?
Typically, clicking a filename in this mode results in Media Player opening
and trying to download the file itself, correct?
I'm no expert but I think this is because of the way the web server sends
(or doesn't send) the "mime" type header for the file to the web browser,
which then says "oh, this type is for Media Player", and hands it off.
Maybe if you made a web page with a browser feature, so that the request is
coming from the web browser rather than Media Player?
I don't know...just a suggestion.

> Hi,
>
[quoted text clipped - 14 lines]
> Thanks!
> Rich
Gary Hasler - 29 Aug 2006 00:56 GMT
Whoops, meant to say...
"Maybe if you made a web page with a browser feature AND EMBEDDED PLAYER, so
that the request is..."

> So I assume your htacces file permits directory browsing, and the users are
> picking their files using their web browser in that mode?
[quoted text clipped - 6 lines]
> coming from the web browser rather than Media Player?
> I don't know...just a suggestion.
RichardEDaley@gmail.com - 29 Aug 2006 13:19 GMT
Thanks for the reply Gary.

I had thought of building another page with the embedded wmv but to be
honest, I'm not sure it is worth the time.  This directory does not
have that many users and it isn't that big of a deal to have them
retype their information (the users are employees).  I was just
wondering why this wasn't working in case I run into it on an external
directory.

I also tried adding the mime type to the htaccess file but it didn't
make a difference.

Thanks!
Rich

> Whoops, meant to say...
> "Maybe if you made a web page with a browser feature AND EMBEDDED PLAYER, so
[quoted text clipped - 10 lines]
> > coming from the web browser rather than Media Player?
> > I don't know...just a suggestion.
Neil Smith [MVP Digital Media] - 29 Aug 2006 22:36 GMT
When you "added the MIME type" do you mean you used AddType on the
htaccess for that directory ? Which types did you add fot the WMV
content type ?

Cheers - Neil

>Thanks for the reply Gary.
>
[quoted text clipped - 25 lines]
>> > coming from the web browser rather than Media Player?
>> > I don't know...just a suggestion.
------------------------------------------------
Digital Media MVP : 2004-2006
http://mvp.support.microsoft.com/mvpfaqs
RichardEDaley@gmail.com - 30 Aug 2006 16:05 GMT
Hi Neil,

I added this line to my htaccess file:

AddType video/x-ms-wmv wmv

But WMP still asks for the htaccess username and password a second
time..

Rich

> When you "added the MIME type" do you mean you used AddType on the
> htaccess for that directory ? Which types did you add fot the WMV
[quoted text clipped - 34 lines]
> Digital Media MVP : 2004-2006
> http://mvp.support.microsoft.com/mvpfaqs
zachd [MSFT] - 31 Aug 2006 19:28 GMT
WMP has to recreate the HTTP connection in order to get progressive download
to work, which is why you see this.  If you wanted to avoid this, you would
need to use Content-Disposition to have them download the file instead of
playing it back directly, or (as Neil suggested) have them play it in an
embedded player.

-Zach
Signature

Windows Media Development Team (speaking for myself only)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
--

> Hi Neil,
>
[quoted text clipped - 52 lines]
>> Digital Media MVP : 2004-2006
>> http://mvp.support.microsoft.com/mvpfaqs
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.