Embedded Windows Media PLayer With Non-Standard File Extension
I have embedded a windows media player in a asp.net web page, using the usual
<object> and <embed> tags. The video is served by an ashx (http handler). When I try to play the video, I usually (but not always) get an error message telling me that the file extension (ashx) does not match the file format.
This happens in IE (8, 9, 10, 11) and also in Firefox (latest) with the WMP plugin.
I know that the tags (with classid, etc) are correct because the media player displays and allows me to click the 'play' button.
The ashx returns the correct mime type (video/x-ms-wmv) and a valid file name (somevideo.wmv) in the response headers. I have tried content-disposition attachment and inline.
I have tried urls using 'http://', 'https://', and '//' (which I prefer)
If I put the url (including the .ashx) of the video file in the browser address bar directly, the video downloads and plays in the standalone media player.
If I modify the object tag to use a direct path to the video file (/somewhere/somevideo.wmv), it works - but I can't use this as a solution.
The same ashx serves up video and audio in various other formats with out any fuss - it just seems that the embedded windows media player doesn't like it.
This has been working for several years - I think this is some new behavior, though I can't identify what has changed, other than browser updates.
Any ideas on what could be causing this? Am I missing something simple?
Hi,
Tools>Internet Options>Security tab, click "Reset all zones to default"
Advanced tab of Internet Options>uncheck "Do not save encrypted files to disk"
f12>Networking tab, click the Start button, navigate to your page and observer the response header and content.
To determine if you page is being rendered in a x64 host (all IE versions and WaterFox, type
navigator.platform in the IE Developer tools Console tab,
Post questions about html, css and scripting for website development using MSIE browsers to the IE Web Development forum... WITH a link to your website.
Rob^_^
Similar Messages
-
Windows Media Player cannot play the file after ame encode with out audio?
strange behavior using media encoder today
ive selected no audio when encoding an h264 for the android...every time (5x) I tried to encode I got "Windows Media Player cannot play the file" when I selected audio the error went away..
the other issue I had was the work area only , my encodes were including the whole sequence an not the "work area only" when selected?
buggy day ..love to edit ..
mike d Oakland ca.
cs6 premiereThe export without audio is an .m4v file, which many plays have trouble with. For now, use the audio, which creates a playable .mp4 file.
-
Spry menu bar hidden behind embedded windows media player in IE but Not Firefox
Hi ppl.. My spry menu bar submenus are hidden below my embedded windows media player when I go over the menu. Is there anything I can do to solve this. This doesn't happen in Firefox.(The submenu appear on top of the embedded player) Pls help.. Thank you!
Here's my spry menu bar css code:
@charset "UTF-8";
/* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
LAYOUT INFORMATION: describes box model, positioning, z-order
/* The outermost container of the Menu Bar, an auto width box with no margin or padding */
ul.MenuBarHorizontal
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
cursor: default;
width: auto;
/* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
ul.MenuBarActive
z-index: 1000;
/* Menu item containers, position children relative to this container and are a fixed width */
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
text-align: left;
cursor: pointer;
width: 9em;
float: left;
/* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
ul.MenuBarHorizontal ul
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
z-index: 1020;
cursor: default;
width: 9em;
position: absolute;
left: -1000em;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
left: auto;
/* Menu item containers are same fixed width as parent */
ul.MenuBarHorizontal ul li
width: 9em;
border-bottom-width: thin;
border-bottom-style: solid;
border-bottom-color: #CCC;
/* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */
ul.MenuBarHorizontal ul ul
position: absolute;
margin: -5% 0 0 95%;
/* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible
left: auto;
top: 0;
DESIGN INFORMATION: describes color scheme, borders, fonts
/* Submenu containers have borders on all sides */
ul.MenuBarHorizontal ul
background-color: #333;
/* Menu items are a light gray block with padding and no text decoration */
ul.MenuBarHorizontal a
display: block;
cursor: pointer;
color: #FFF;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
padding-top: 1.1em;
padding-right: 0.75em;
padding-bottom: 1.1em;
padding-left: 0.75em;
text-align: center;
/* Menu items that have mouse over or focus have a blue background and white text */
ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
color: #000;
background-image: url(../images/navimg2.gif);
/* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible
color: #000;
SUBMENU INDICATION: styles if there is a submenu under a given menu item
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenu
background-image: url(SpryMenuBarDown.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenu
background-image: url(SpryMenuBarRight.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
background-image: url(../images/navimg2.gif);
background-repeat: repeat-x;
background-position: 95% 50%;
/* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
background-image: url(SpryMenuBarRightHover.gif);
background-repeat: no-repeat;
background-position: 95% 50%;
BROWSER HACKS: the hacks below should not be changed unless you are an expert
/* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
ul.MenuBarHorizontal iframe
position: absolute;
z-index: 1010;
filter:alpha(opacity:0.1);
/* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
@media screen, projection
ul.MenuBarHorizontal li.MenuBarItemIE
display: inline;
f\loat: left;
Here's my embedded windows media player code.
<OBJECT ID="MediaPlayer" WIDTH="425" HEIGHT="344" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="aqeedah1v7.wmv">
<PARAM name="autostart" VALUE="true">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="true">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="aqeedah1v7.wmv" NAME="MediaPlayer"
WIDTH="425" HEIGHT="344" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="1"> </EMBED>
</OBJECT>Add
<param name="WindowlessVideo" value="-1"> -
Using Windows Media player to view .3gp files
I really need help opening up a .3gp file that was sent from a cell phone. It said that I had to choose a file to open it with, and I chose Windows media player, but I keep getting this message.......Windows Media Player cannot play the file. The Player
might not support the file type or might not support the codec that was used to compress the file.
Can someone please tell me how I can correct this problem. I must see this video right away.
Thanks!Looking for a way to play 3GP or 3G2 files on your computer? If so,
there are a couple of ways you can do this. First of all, 3GP files are
usually movies that are taken from a mobile phone.
If you want to play these on your computer, you can either install a
codec or download third-party software to play these files. In this
article, I will try to mention all the different ways to play 3GP and
3G2 files.
Method 1 – Install Video Codec
Firstly, if you want to play 3GP files in Windows Media Player, you have to install one of the two following programs:
Haali media splitter
FFFDShow MPEG_4 Video Decoder
However, during the installation, you also have to select a specific configuration in order for it to work properly.
For FFDShow, you need to make sure that AMR is enabled on the Audio
Decoder screen and H263(+) is enabled on the Video Decoder screen.
For the Haali Media Splitter program, just make sure that the Enable MP4 support box is checked.
Method 2 – Convert File
The second way you can play these videos is to simply convert them.
This might be a better way so that you can play these videos on anyone’s
computer or stream them to devices like the XBox, etc. -
I can not find solution to the issue "Windows Media Player cannot play the file because the required video codec is not installed on your computer" while attempting to play the file with *.wmv extension. Some computer fail in spite of said missing codec
being present according the windrows media player in Windows 7 boxIf Rashid's link does not resolve it... consider the below:
A) As of this writing, the codec for GoToMeeting webinar recordings ("G2M4" codec) was only mentioned in *one* web page, of about 10 Microsoft web pages I read, to resolve this problem (and that codec is not included, yet, in their diagnostic tool),
so if you're trying to play a GoToMeeting webinar, simply get the codec for it from their site: http://www.GoToMeeting.com/codec
B) If Windows Media Player (WMP) will not even open the file, you won't be able to get the 4-character codec's name (like "G2M4") from WMP. But VLC's media player will tell you that code, even when it fails to run the video.... and then you can
search the internet for it.
C) The problem sometimes is not actually a missing codec. Other things that have helped others, some from:
http://answers.microsoft.com/en-us/windows/forum/windows_7-pictures/the-windows-media-player-12-could-not-play-the-wma/bb823460-44df-4e8d-ba2c-42ec0e111e5a?page=3
(1) running the System File Checker (SFC.exe),
(2) opening WMP first (running both the 32-bit and 64-bit versions) then opening the file from inside them,
(3) confirming that WMP was the file association for WMV files,
(4) Control Panel -> Hardware and Sound -> Sound, selecting my audio device, and looking for a "5.1" setting (I didn't have one), to change to "stereo",
(5) checking Tools\Options\Devices\Speakers\Properties\Speaker Properties\AdvancedPlayback\ Speakers /HP\Properties\Advanced\Default Format, to select "CD or DVD Quality" (if that setting appears for your device),
Good luck,
-- Doug
Doug Ivison -
Spry Menu Bar hides behind embedded windows media player
Hi guys. My Spry Menu Bar hides behind my embedded windows media player when I go over the menu with my mouse. Below is the code I used to embed my player. How can I make it transparent? Thank you!
To the Params in your object tag, add this:
To the attributes in your embed tag, add this:
wmode="opaque"
Note that z-index is totally irrelevant to Flash. also note that the Adobe Flash Player is wildly inconsistent from browser to
browser and from OS to OS, which is one of the more valid reasons for Apple abandoning the technology's support on its touch
devices.
Al Sparber - PVII
http://www.projectseven.com
Dreamweaver Menus | Galleries | Widgets
http://www.projectseven.com/go/hgm
The Ultimate Web 2.0 Carousel -
Windows Media Player with 10.4.6
My first post here so I hope I do it right.
My question relates to using the Windows Media Player with the new Operating System. I just upgraded from v.10.2 to 10.4. Once I upgraded I was no longer able to open any files in Windows Media player. I figure,no big deal, I just need to upgrade my Media Player. I downloaded Windows Media 9 Player for Mac. Installed no problem but when I try to open I get the message "The application Windows Media Player closed unexpectedly". I then downloaded and installed Flip4Mac as well, but I got the same error messsage.
Am I just missing something obvious?
Any help is appreciated.
Thanks
Flagg
Powerbook G4 Mac OS X (10.4.6)Both work here without any problem. I suspect a bad installation. Start over by first deleting these from ~/Library/Preferences/: com.microsoft.mediaplayer.plist, Windows Media Favorites, Windows Media Player Prefs; these from /Library/Internet Plug-ins/: /Disabled Plug-ins/Windows Media Plugin, Flip4Mac WMV Plugin.plugin, and Flip4Mac WMV Plugin.webplugin; and the Flip4Mac WMV.prefPane from /Library/Preference Panes/Flip4Mac WMV.prefPane, restarting, repairing permissions, reinstalling WMP and see if it launches. If so, reinstall Flip4Mac and see if that launches. If you have any problems, report back.
-
Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file
How do I fix this?That would probably be a question best taken up in on a site for Windows support questions. Not knowing anything about the movie you're trying to play, all I can suggest is to confirm that the format of the movie you wish to play is supported in your version of WMP. If it isn't, you'll either need to convert the movie or use some other player software.
Regards. -
Windows media player with safari for windows
Hi everyone
just a little problem of mine...
safari seems unable to detect windows media player. I get a message about 'content of MIME type application/x-mplayer2' when I safari tries to use media player. I tried installing the plugin on this page http://www.apple.com/safari/download/plugins.html which didn't seem to work. I don't know if this is a mistake but the file name suggests the plugin is for firefox...
i have also tried installing quicktime and realplayer with no effect
help appreciated; thank you in advance!Hi on_safari,
I don't know if this is a mistake but the file name suggests the plugin is for firefox...
Safari and Firefox (and other browsers) use the same interface for handling plug-ins so Safari should be able to use it nonetheless.
I tried installing the plugin on this page http://www.apple.com/safari/download/plugins.html which didn't seem to work.
Can you describe in more detail what you mean? What did you try and what happened? Were any error messages generated? -
Windows Media Player 11 not recognizing files on Creative Zen X-Fi?
I recently made an attempt to synchronize the files on my Creative Zen X-Fi to my Windows Media Player library to transfer them to my other MP3 player, however I receive this message when I attempt to view the files and sync them: "There are no files on this device. To begin, sync files to the device." The files are definitely existent as I can listen to and view them on the device and WMP has recognized there is only 8 MB of space remaining. Could you help me resolve this problem? Thank you
Hi,
Can you please try transfering these songs using Windows Explorer to see if it goes through? -
Windows Media Player opens my .exe files
Basically, all my .exex files switched over to using Windows Media Player to open, and i cant restore from backup because that is a .exe can anyone help me out and help me fix this? im desperate
This question was solved.
View Solution.Hi,
Please try this fix
Hope this helps.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Can I use Windows Media Player with my Mac?
I am scheduled to have an interview via WEBEX and need to make sure that all the components of the Universal Communications Format are up and running. When I did a diagnosis check on my MacBook Pro, the Windows Media Player 9.0 or newer said I needed a plug in to run. Where can I find this plug in?
Thank you!!
Michelle SchaalMichelle,
You can download media components for QuickTime which will enable you to play WMA files through QuickTime on your Mac:
http://windows.microsoft.com/en-gb/windows/windows-media-components-quicktime
Alternatively, Get the free VLC player for Mac, which will play almost all media types:
http://vlc-media-player.en.softonic.com/mac
If the interview requires Windows Media Player to be running to conduct the interview, then I fear you may be stuck, there is not a version of Windows Media Player for Mac - It is for Windows. Your options in this case would be to borrow a Windows PC or install a valid copy of Windows on your MacBook under BootCamp. -
Windows Media Player - How clear recent files?
Hello There,
I use Windows Media Player ver 9.0
How can I clear the list of recent played files?
ThanksExit WMP
Delete the following file from your User Library area.
User/Library/Preferences/Windows Media Player Prefs
Empty Trash
Start WMP again.
iFelix -
Lost windows media player with Lion install
Is there an alternative player or ?
Thanks for your help.I'm not exactly sure what you're asking. Do you mean you can no longer play WMV files since upgrading to Lion?
http://windows.microsoft.com/en-US/windows/products/windows-media-player/wmcompo nents
Windows Media Player is a Windows only program (it is not available in OS X). So I'm only guessing that you're looking to play Windows Media files on your Mac. -
Start windows media player with trigger
Hello,
I have a VI that sends a trigger to Biopac MP100 through USB 6501 in order to take EEG signals. When I run the VI, I want windows media player start playing a movie automatically and I want the trigger to go to USB 6501 simultaneously. At the moment when I run the VI the trigger goes to 6501 but the windows media player doesn't start. What can I do?
Solved!
Go to Solution.Use the activeX container and make a WMP referance and than use the URL property to call a movie file
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Maybe you are looking for
-
TS3992 how do you backup if no wi-fi connection is available?
I do not have access to a Wi-Fi network. How do I backup?
-
How do I globally set the font of a java program
I would like to define a default font for all the labels, button, and text on a JFrame. I used the following lines: static Font defaultFont = new Font("dialog", Font.PLAIN, 12); contentPane = frame.getContentPane(); contentPane.setFont(defaultFont);
-
Hi, When I create a sales order with reference to a Quote, the pricing condition types are duplicating. Same is happening when subsequent documents like Billing, credit memo request and credit memo are created. Particularly, the condition types are
-
UD @ Inspection Lot clearence
we are taking the Usade Decision for the In-warding Materials through QA32. While clearing the lot there are Option to move the stock to different storage locations as follows, OK Qty - to the specified location Blocked Qty - to Blocked Location of t
-
OSB 11g - Clustered - Email protocol not available in transport config page
Hi, We have a clustered environment of Oracle SOA suite and OSB server on OEL 5/Solaris-64 Bit. While trying to create a business service with protocol as Email, we do not get email in the drop down. Whereas in standalone environment we got it and we