My website is using windows media player in playing videos in a web page. It is mandatory to use windows media player because I'm using it in E-learning tracking. However, I got problem in displaying the windows media player using MAC OS X in safari 5.0.4 version of browser. I'm using below tag to load media player in the browser:
Example:
<object id="MediaPlayer" width="400" height="365" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="uiMode" value="full">
<param name="autoStart" value="false">
<param name="stretchToFit" value="true">
<param iname="windowlessVideo" value="true">
</object>
Could it be possible to display the media player using MAC OS X in safari 5.0.4 version of browser?
What would be the alternative code to load the windows media player in MAC OS X using safari browser?
Thanks in advance.
You need Windows Media® Components for QuickTime (aka Flip4Mac) installed on the Mac.
Try setting an appropriate type attribute for the object element. This article recommends type="video/x-ms-wmv” It also contains additional tips that may be necessary.
Related
I have a webradio that like to put on the site.
I used the following code that works in Internet Explorer, but not in Windows 8.1 or the 64-bit MAC (iPad, iPhone ...)
<object classid = "clsid: 6BF52A52-394a-11D3-B153-00C04F79FAA6" width = "280" height = "100" codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf. cab # version = 5,1,52,701 ">
<param name="url" value="http://109.71.41.230:8658">
<param name="autostart" value="false">
<embed type="application/x-mplayer2" width="280" height="100" src="http://109.71.41.230:8658"> </ embed>
</ object>
The following code works on Mac, but also does not work on Windows 8.1 64-bit:
<audio preload="auto" autoplay controls="controls" src="http://109.71.41.230:8658/;">
</ audio>
I visited your page: Embedding Windows Media Player for all browsers
but also did not work.
There is some code that works on all browser's?
thank you
There is no such 'Code that works on all browsers' ;-)
You have to check what capabilities the browser has. For example flash or html5 audio or both etc. and deliver the proper code. That's not the easy way.
But you could use http://jplayer.org instead.
It's a HTML5 Player with Flash fallback and does all the checks for major browsers for you.
It supports:
Windows: Chrome, Firefox, Internet Explorer, Safari, Opera
Windows (legacy): IE6, IE7, IE8, IE9, IE10, IE11
OSX: Safari, Firefox, Chrome, Opera
iOS: Mobile Safari: iPad, iPhone, iPod Touch
Android: Android 2.3 Browser
Blackberry: OS 7 Phone Browser, PlayBook Browser
and those media types:
HTML5: mp3, mp4 (AAC/H.264), ogg (Vorbis/Theora), webm (Vorbis/VP8), wav
Flash: mp3, mp4 (AAC/H.264), rtmp, flv
I want to be able to speed up html5 video playback to 2x while using my browser as ipad agent.
Could I do this as a bookmarklet using the code found here?
http://www.learningapi.com/2012/04/variable-speed-playback-html5-video-feature/
I'm downloading a voice file from the internet and save it in isolated storage. The I pass this file to a media element on the page and then I call the Play() method. The app was working fine until I installed Mango developer tools. Since then the media element doesn't play the file.
private void DownloadCompleted(System.IO.IsolatedStorage.IsolatedStorageFileStream _Result)
{
if (_Result.CanRead && (bool)chkSpeak.IsChecked)
{
mediaElement1.SetSource(_Result);
mediaElement1.Play();
}
}
<MediaElement Height="111" HorizontalAlignment="Left" Name="mediaElement1" VerticalAlignment="Top" Width="100" Volume="1" AutoPlay="True" IsHitTestVisible="True" />
Do I need to make any changes in my code?
According to the Release Notes (I assume you mean beta 2), these two are known issues:
When Windows Phone Emulator is running
on Windows Vista, some audio problems
may occur. This issue is caused by
lost audio packets when playing audio
such as media files or alarms.
Setting the source of a MediaElement
object fails every other time.
Might be related. (Are you using Vista/does SetSource work intermittently?)
I am creating a website that generates formatted excel files (.xlsx) for users based on input (using Struts2). My action is defined as follows:
<action name="print" class="org.jeshurunsoftware.action.PrintCardsAction"
method="print">
<result name="download" type="stream">
<param name="contentDisposition">filename="printCards.xlsx"</param>
<param name="contentType">application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</param>
<param name="inputName">inputStream</param>
<param name="bufferSize">1024</param>
</result>
</action>
The excel file is successfully generated and saved in both Google Chrome and IE8. However, in Firefox 3, when the user clicks "Print," an empty download dialog box displays. The user is prompted to open a file with no name (e.g. the download prompt says "You have chosen to open .")
Any thoughts as to why this is broken in Firefox 3 (and how to fix)?
Thanks in advance!
I created a test case that used your exact configuration from above and ran it on Windows 7 (Firefox 3 and IE9 beta) and Mac OS X (Firefox 3, Chrome, Safari, and Opera) and it ran fine across all environments.
Have you had this problem on multiple Firefox installs or just one? Assuming this is isolated to just a single Firefox, you may want to check to see if there is an add-on installed that is changing the behavior, or if a custom handler ha been registered for the mime type.
I downloaded Firefox 4 Beta 8 to see if this is an issue with Firefox 3.6.13. The download worked like a charm, so I'm suspecting that this is a bug with this particular version of firefox.
As to why, I still don't have an answer. Steven your suggestions were very helpful - I disabled all firefox add-ons, and when that didn't work, I cleared all of my personal browser data and re-installed firefox 3.6.13 from scratch. I wasn't able to find any known bugs with this particular version of firefox, though I suspect this is the case. Any other suggestions would be greatly appreciated.
I'm trying to upgrade my site to Silverlight 3. All my customers are having a reasonabily good experience from upgrading to Silverlight 3 from Silverlight 2 or just a fresh install.
But on Mac OS X in Firefox 3.5, after Silverlight is installed they cant view any Silverlight apps, it's just blank on screen. No errors, I can right click on the app and access the Silverlight Preferences etc, but nothing renders. But it works absolutely fine in Safari.
Has anyone else had this problem?
BTW, I have also restarted the machine, but no luck.
Cheers,
Ash.
There was a fourth way :
in the object parameters where u have width and height, just set height to a fixed size in pixels.
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="600px">
it will appear correctly now on Firefox.
The problem stay a bug but u can use that work-around.
The problem in the future will be to define the host div height dynamically if the silverlight height change while using it.
Solution 2, use w3c platform : My website respect w3c already but difficult to use dynamic functions like for a business app in Xhtml, Ajax and Css alone.
Solution 3, do not use Firefox : Sorry here too, 30% peoples using that browser and for the website i am making, it is potential customers.
I will follow the bug as i do currently, help and wait a little while continue using silverlight and keep first option :)
Thanks for your answer.
I traced the bug here => https://bugzilla.mozilla.org/show_bug.cgi?id=506231
I had the same issue with Silverlight not displaying content (Mac OS 10.5.8, FireFox 3.6.10). To solve the problem, I disabled my Firebug extension and restarted the browser. Hope that helps.
It works fine in Firefox 3.5 on OS X (10.5.7). Check if you have the Silverlight Firefox plugin disabled.
Working Silverlight 3 on OS X in Firefox 3.5 http://img148.imageshack.us/img148/3585/picture1jcf.th.png
Same for me, when i use plain aspx page to host silverlight 3 control it works :
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SilverlightApplication2.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
But when i include my silverlight object (inside aspx page) between another div (to resize or nothing else for example), i got a blank page under firefox 3.5 :
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SilverlightApplication2.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div></div>
Do the test by yourself with a new VS project.
Other browsers (opera, chrome, ie, safari) display the SL control correctly.
It looks like javascript problem, but currently do not know where...
This is a known problem and you've basically got three options;
Keep on developing with Silverlight and expect these kind of problems surfacing frequently in the future - even if you can get your application to work this time, it'll still surface later down the road every once in a while.
Port your application to the W3C platform (ECMA, CSS, (X)HTML) utilizing some sort of Ajax library - and hence get rid of the problem permanently.
Entirely drop any non-Microsoft based OS support for your application. Silverlight will occasionally and partially work with many non-Microsoft based Operating Systems, but once Microsoft have acquired the market share they want for Silverlight they will have no financial incentives in getting Silverlight to work with neither Mac OS X, Linux, Symbian, iPhone or any other Operating Systems in this world not created by themselves - in fact their financial incentives will be in getting it NOT to work on non-MS based Operating Systems since this will drive adoption of their Operating Systems like Windows 7, WindowsMobile etc. For you to follow this strategy is obviously quite dangerous since Microsoft is bleeding market shares to Linux and especially Mac OS X on the client. Not to mention that they have probably less then 1% of the mobile phones in this world. Which all together translates into less customers (users) for your applications. But if you can be positively certain about that your customers are purely going to want to use your applications with Microsoft based Operating Systems, then I guess it doesn't matter that much for you...
I know it sounds drastic, but the "object tag" should have been the clue-giver here. Silverlight is nothing but ActiveX in a new wrapping with a new name and some new fancy colors - or ActiveX2.0 if you wish. And we all know how ActiveX1.0 worked...
Microsoft have created some spectacularly great innovations through out their history, the .Net Framework and the C# language being one of them, but neither ActiveX1.0 nor ActiveX2.0 are among those great innovations. Silverlight is kind of like the "Windows Millennium of Frameworks" - buggy, expensive and gives few if any benefits to its users. But comes wrapped inside a beautiful package that makes people "buy into it"...