SWF file works on Mac browsers but not on PC browsers - hyperlink

OK this is a new one for me, I have a SWF file where the link only works on Mac browser but does not work on PC browser:
http://luc.edu/wwwtest/studyabroad/
I am using the absolute path for the SWF and check the FLA file and the link is going to the correctly location. Can anyone help me why this is happening? I have also checked my object code and it seems correct.

instead of http://luc.edu/wwwtest/studyabroad/ use http://www.luc.edu/wwwtest/studyabroad/
or instead of :
<param name="allowScriptAccess" value="sameDomain">
do
<param name="allowScriptAccess" value="Always">

Related

How to display webcam RTSP feed in web page

I have spent many hours researching how to display an RTSP feed in a web page. I've tried Quicktime (400 bad request), VLC (No plugin to display this content) and Windows Media Player (protocol not supported). I've read many posts and pages tried variations of code in the web page and also looked at streaming servers, but to be honest, I was hoping it wouldn't be that complicated as I would need somewhere to host the server.
In can open the stream in VLC so was surprised when the plugin didn't work. This is the code in the page but the result is (No plugin to display this content) the browser doesn't even ask to download a plugin.
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
width="640" height="480" id="vlc" events="True">
<param name="Src" value="rtsp://belletout.no-ip.biz:1552/live3.sdp" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<embed id="vlcEmb" type="application/x-google-vlc-plugin" version="VideoLAN.VLCPlugin.2" autoplay="yes" loop="no" width="640" height="480"
target="rtsp://belletout.no-ip.biz:1552/live3.sdp" ></embed>
</OBJECT>
I am really surprised that there isn't an easier method to do this unless I am just following examples that aren't appropriate.
Can anyone offer any suggestion as how to display this real RTSP stream from above in a web page? I would be most grateful.
Thanks
Rob
You need a live media encoder that can read the webcam feed and than encode it.
try windows media encoder Windows Media Encoder 9
change your webpage code to use windows media player.
There should be a sample when you install it.

Flash player not loading on Safari and Firefox in production environment

I have an rails 3.2 application that uses a Flash Video Player. I load the Flash player using swfobject (I also tried the swf_fu gem that works fine). I use dynamic publishing method because I have some flashvars.
It works fine in development environment, but the player doesn't load on Safari and Firefox in production environment, and just shows the background color. It's working fine on Chrome though. The swfobject code seems to be working, I have the same HTML on all browsers when I open the Inspector.
<object type="application/x-shockwave-flash" id="VideoPlayer" data="/assets/VideoPlayer-e79c6b85d45b6d29d04fb4905e8c83dc.swf" width="480" height="390">
<param name="quality" value="high">
<param name="bgcolor" value="#869ca7">
<param name="flashvars" value="[...]">
</object>
If I just switch back to development environment it works again. The only difference I see is the fingerprint in production mode. In dev, there is just data="/assets/VideoPlayer.swf" but the rest is the same.
Any ideas on this? Caching, asset compilation, compression?
Turns out it was an asset compression problem. I turned off gzip compression and it worked again. Seems like Chrome Flash player handles this better..

MVC4 HTML5 video in IE10

I have tried everything I possibly could, but I was not able to solve this. I am trying to display an mp4 video using an HTML5 video element in IE9 and IE10. In IE9 I get a blank square where the video is supposed to show and in IE10 it says "Invalid Source". It plays fine in Chrome.
The video displays fine within a simple HTML file, but not in my ASP.net MVC project, whether run locally or on a web server. I have the file placed in my root folder (same folder as the web.config)
Here is my code in my ASP.NET MVC index.cshtml:
<video controls style="position:inherit" >
<source src="ExplainerVideo.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
</video>
Any ideas?
Thanks.
Try taking away the codec and letting the browser decide for itself whether it can play it or not.
e.g. <source src="ExplainerVideo.mp4" type='video/mp4' />
Failing that, try an absolute URL for the video as I've noticed this causing issues on IE before.

IIS don't show Silverlight 5 application on work server in ASP.NET MVC app

My SL app shows correctly in all browsers (Opera, FF, IE) in all web servers (embedded, IIS 7.5) on my develompment machine. But in work web server (IIS 7.5) no one browser show my SL app. No error, nothing - just empty place. But it contains all markup of my SL app:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="200px" height="40px">
<param name="source" value="#Url.Content("~/Apps/SilverlightApplication1.xap")"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="5.0.61118.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>
In addition, on my development machine I have the "Setup SL app on this PC..." button in SL context menu, but not on my work server.
All IISs - on development and work server machines - have settings ".NET 4 FW" for app pool .NET version and integrated pipeline.
I can get the .xap file directly through the browser's address bar but can't get one through the HTML page.
It seems that the SL app just is not visible on my work server. How to fix it?
Addition. There is no any Silverlight development or client framework on the work server - can it be clue?
UPDATE. I changed data and type attributes in the object tag to "application/x-silverlight-app". Now the "invite to install SL" image appears instead of my SL app. But I already have the newest version of SL plugin, and while installing the SL the installer tells me about it.
If you are getting just a white screen then you should go into the silverlight.js and make it so the errors are thrown to some sort of message box that you can see.
If it's plain white there is an error of some sort going on, and if debug is essentially turned off in the settings (i.e don't show the user the error) then you'll not know what the issue is.
[EDIT]
Add .xap application/x-silverlight-app as MIME type.

Problem passing querystring from from silverlight to http handler

I am using Silverlight 3 beta and Visual Studio 2008 SP1 for this.
In the web application (Server side) I have a HTTP handlter ImageFetcher.ashx which expects an ID parameter from the query string and retrieves the data from database and writes it to output stream. This is working fine and I have tested it with a test aspx page adding a image control with src=ImageFetcher.ashx?id=44.
I also have a silverlight client navgatoin application in the same solution. I have the following image tag in my xaml
<Image x:Name="myImage" Width="400" Height="300" Stretch="Uniform" Source="/ImageFetcher.ashx?id=44"/>
When I run this app, it fails to retrieve the image. When I debugged the handler, I noticied that it is not getting any querystring parameter. if the change the image tag to use absolute URL as below it works fine again
<Image x:Name="myImage" Width="400" Height="300" Stretch="Uniform" Source="http://localhost:5573/ImageTest/ImageFetcher.ashx?id=44"/>
But I cannot use the absolute URL, what is wrong here? why the relative URL does not carry the querystring correctly to the server side?
Thanks
Shreedhar
I posted on Silverlight forums as well, but I'll copy it here too.
A relative URL is relative to the XAP - which is loaded on the client machine. Once the XAP is downloaded to the client, the loading ashx page will no longer be relative to the XAP and will therefore not be found. Once you make the url absolute, you are telling it to look on your local host [the exact location] for the loading page.

Resources