Wednesday, March 28, 2012 3:00 PM
Thursday, March 29, 2012 6:46 AM
Which version of the Google Chrome Frame BHO are you hosting in IE?
copy the resource url into Media Player and use your network sniffer to view the traffic... you should see the same behavior and the same UAS.
compare that with say playing the same wave file uri in irfanview.
Thursday, March 29, 2012 11:27 AM
if you open the wav using the desktop Windows Media Player, you have more or less the same behavior. Then Media Player is also sending two request (in this case two requests with the same headers, see “http://www.johnny-online.nl/uploaded/Screenshot Fidler.png”.
You can try it yourself by opening the wav below in Windows Media Player 12.
Why do you ask which version of the Google Chrome Frame BHO I am hosting in IE? (answer: I am not hosting any version). What is the connection with Windows Media Player?
I also created a sample, see http://www.johnny-online.nl/
- Edited by JohnnyWoef Thursday, March 29, 2012 12:03 PM
Friday, March 30, 2012 8:02 PM
add return false; to the input onclick events.
<input onclick="loadAudio('1.wav');return false;" value="Load Audio 1" type="button"/>
or use the html5 dtd and place all form elements (input) within a form block...
Update Visual Studio to MVC 4 and download the Nuget utility so that you include the latest versions of jQuery and modernizr in your projects
Sunday, April 01, 2012 10:03 AM
I don't understand what the "return false", html5 and MVC4 has to with the problem I have with the embedded WMP.....but to be sure I have updated the code with all your recommendations, but I still get to requests :(
Monday, April 02, 2012 12:10 AM
your mashup page just shows that the onclick event handler for the button click is firing twice. the return false; should prevent the second event...
normally <input type="button".... must be within a <form> block but the dtd you are using allows it... (validate your markup at validator.w3.org)....
there was a bug in earlier versions of asp.net and visual studio that submitted to requests when a submit button was clicked on a post-back form and there have been changes made to IE versions in the way form event handlers process button clicks v form submit event handlers.
MVC of coarse does not use form postbacks, so without knowing what version you are using I can only assume you are using an earlier version. You could also try using a <button> element instead of a <input type="button"> element...
To make sure you are using the latest version of MVC for VS, update your VS to SP1 - includes intellisence updates for html5 syntax... the latest version of MVC is 4 and includes a VS addon called nuget which will help you ensure that you are using the latest versions of the jQuery and Modernizr shims in your MVC 4 projects. the MVC 4 template projects default to using the html5 dtd which is required if your target platforms include SmartPhone devices or iPad or Windows 8 metro apps.
You are using an old version of jQuery..... see bugs.jquery.com .... contrary to popular beleifs... yes jQuery has bugs that they are continually finding. You use jQuery methods to inspect the response header... when I use the IE Developer tool's Network inspector there is no request raised.... you are only changing the src attribute value.
You may want to download the WMP SDK and examine their samples... It looks like you are trying to customize the default embedded WMP buttons or perhaps adding a playlist.... there are documented design patterns in the SDK for that.
Thursday, May 03, 2012 7:17 AM
it has nothing to do with jQuery, MVC or any SP of Visual Studio. If I just use a simple html page with a WMP embedded, I am experience the same problem.<o:p></o:p>
Thursday, May 03, 2012 8:30 AM
Fiddler session headers...
GET /uploaded/chimes.wav HTTP/1.1
User-Agent: NSPlayer/12.00.7601.17514 WMFSDK/12.00.7601.17514
HTTP/1.1 200 OK
Last-Modified: Thu, 29 Mar 2012 11:17:19 GMT
Date: Thu, 03 May 2012 08:27:41 GMT
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <title>Untitled 1</title> </head> <body> <p> <object id="media1" height="200" type="video/x-ms-wmv" width="200"> <param name="filename" value="http://www.johnny-online.nl/uploaded/chimes.wav"> </object></p> </body> </html>