QuickTime loading new movie not scaling - quicktime

I have the following code, mainly copied from Apple's QT Guide, which I use to display a few movies:
<noscript>
<object id="video_obj" TARGETCACHE="true" width="480" height="320" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="images/loginbig.gif" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="postdomevents" value="true" />
<param name="TARGETCACHE", value="true"/ >
<embed src="images/loginbig.gif"
width="480" height="320"
controller="true" autoplay="false"
scale="aspect" cache="true"
name="video_obj"
id="video_obj_embed"
postdomevents="true"
TARGETCACHE="true"
pluginspage="http://www.apple.com/quicktime/download/"
/>
</object>
</noscript>
<script language="javascript" type="text/javascript">
QT_WriteOBJECT('images/loginbig.gif' , '480', '320', ''
,'id','video_obj'
,'controller', 'true'
,'postdomevents', 'true'
,'cache', 'true'
,'autoplay', 'false'
,'emb#id','video_obj_embed'
,'emb#scale','aspect'
,'name', 'video_obj'
,'type', 'video/quicktime'
,'scale', 'aspect'
);
</script>
<script type="text/javascript" charset="utf-8">
var video = document.video_obj;
</script>
I change video by doing
video.SetURL('http://dns.com/video.mp4');
But if the new video's size is larger than the preset width and height, it won't automatically fit to the video screen, I tried everything I can think of and read up but to no avail. Please do share your advice on how one may tackle this.
Thanks!

You have aspect defined in the embed tag, but not in the params. I think you may need to add this: <param name="scale" value="aspect" />

To keep the parameters from the plugin initialization for other videos, use 'SAVEEMBEDTAGS','true'
QT_WriteOBJECT('logo.mov' , '720', '576', '',
'EnableJavaScript', 'True',
'emb#NAME' , 'movie1' ,
'obj#id' , 'movie1',
'controller', 'false' ,
'scale', 'tofit',
'SAVEEMBEDTAGS','true' ) ;

Related

ios alternate content fallback in IE 8 & 9 (flash won't show)

I'm trying to keep our flash for our desktop visitors but made an animated gif solution for ipad users. I have this code below, the gif works great on ipad, and everything works great in Chrome, FFox and Safari, the flash shows as usual -- but realized today that in IE 8 & 9 -- the flash doesn't show anymore.
I would like to know if there is any additional code I can add - to work in IE -- OR, is there another bit of code I can add that will at least add a static image to IE. Obviously, I prefer to have the flash showing in IE again if anyone knows the solution. I thank you much in advance.
<!-- test of alternate image -->
<div id="altimage" style="display:none">
<img src="http://www.kqimageserver.com/kqimages/flash/1ST.gif">
</div>
<div id="aleosoftflash" style="display:block">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="540" height="140">
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<embed src="https://www.kqimageserver.com/kqimages/flash/July27_2012.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="510"
height="300"
pluginspage="http://www.macromedia.com/go/getflashplayer"
allowScriptAccess="always" />
</object>
</div>
<script language="javascript">
if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById("altimage").style.display = "block"; document.getElementById("aleosoftflash").style.display = "none"; }
</script>
<!-- end test -->

BrightCove video stuck while playing in IPad

I have this java script that I use to display a video on a website. The video launches and plays fine on the website.
But when I insert the same javascript and put it in the string and try to load the video on an iPad Simulator, it gets stuck. Am I doing something wrong?
Code
NSMutableString *playerString = [[[NSMutableString alloc] init] autorelease];
[playerString appendString:#"<!-- Start of Brightcove Player --> <div style=\"display:none\"> </div> <!-- By use of this code snippet, I agree to the Brightcove Publisher T and C found at https://accounts.brightcove.com/en/terms-and-conditions/. --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"http://admin.brightcove.com/js/BrightcoveExperiences.js\"></script> <object id=\"myExperience1778612770001\" class=\"BrightcoveExperience\"> <param name=\"bgcolor\" value=\"#FFFFFF\" /> <param name=\"width\" value=\"480\" /> <param name=\"height\" value=\"270\" /> <param name=\"playerID\" value=\"1776746869001\" /> <param name=\"playerKey\" value=\"AQ~~,AAABnWrZAiE~,vOZcyTPVgHpcrcOyFdRZXnunkRSWEVpt\" /> <param name=\"isVid\" value=\"true\" /> <param name=\"isUI\" value=\"true\" /> <param name=\"dynamicStreaming\" value=\"true\" /> <param name=\"#videoPlayer\" value=\"1778612770001\" /> </object> <!-- This script tag will cause the Brightcove Players defined above it to be created as soon as the line is read by the browser. If you wish to have the player instantiated only after the rest of the HTML is processed and the page load is complete, remove the line. --> <script type=\"text/javascript\">brightcove.createExperiences();</script> <!-- End of Brightcove Player -->"];
NSLog(#"\n------------Script :%#\n-----------------------", playerString);
//videoPlayer is the webview
[self.videoPlayer loadHTMLString:playerString baseURL:nil];
I had to give the correct base url... that worked

flash object not displaying in safari

I have a flash object embedded in my website with the embed code that I got from a website. It does not show up in Safari, it's just a blank area where the flash object is supposed to be. What can I do to get the object to show up in Safari? Thanks.
Here is the embedded code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" height="250" width="258" id="sn_player" align="middle">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="allownetworking" value="all" />
<param name="bgcolor" value="#000000" />
<param name="movie" value="http://sermonplayer.com/swf/player45.swf">
<PARAM name="flashvars" value="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#111111&frontcolor=#2ea0aa&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" />
<embed src="http://sermonplayer.com/swf/player45.swf" quality="high" height="250" width="260" id="sn_player" align="middle" allowScriptAccess="always" allowfullscreen="true" bgcolor="#000000" wmode="opaque" type="application/x-shockwave-flash" flashvars="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#000000&frontcolor=#888888&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed></object> <img src="http://www.sermonplayer.com/images/poweredby.gif" border="0" height="1px" width="1px">
I tested it in my safari browser in a clean rails app and it worked just fine. I'm using safari 5.2.1, also check to see if your flash player is updated to the latest version.

How to keep brightcove player in the app and not jumping to safari

I have a PhoneGap application I am developing for iPad that uses video extensively, all of which is hosted at Brightcove. The Brightcove player code works fine when testing as a WebApp, but once compiled with PhoneGap in Xcode, the page containing the player immediately jumps out of the app and opens Safari to display the player.
I have added the appropriate domains to the ExternalHosts array, such that I am not getting any build errors mentioning whitelist problems.
Any ideas how to keep that from happening? I just want the player to load up into the app view it is located in. thx
Here's the standard Brightcove player code embedded in the page:
<script language="JavaScript" type="text/javascript" src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>
<object id="myExperienceXXXXXXXXXXXXXXXXXXX" class="BrightcoveExperience">
<param name="bgcolor" value="#FFFFFF" />
<param name="width" value="480" />
<param name="height" value="450" />
<param name="playerID" value="1149493366001" />
<param name="playerKey" value="XXXXXXXXXXXXXXXXXXXXXXXX" />
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="#videoPlayer" value="XXXXXXXXXXXX" />
</object>
This issue was a confirmed bug and has been resolved in PhoneGap 1.2.0

Silverlight 3 localization configuration

I would like to know how I can configure my Silverlight application to be able to change the UICulture of the current thread without having to recompile the application.
If I set the current thread culture in the app.xaml, I need to recompile each time to change the culture. If I add an Application Settings, how can I retrieve that information on the client to be able to change the current thread culture info?
any ideas ?
You can the culture from your html or aspx file that hosts the silverlight application. This would not require a recompile of your application but would require a refresh of the web page. This approach is dependent on the Culture Names list. Hope this helps.
Ex:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SL_Loc_Sample2.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<param name="culture" value="de" />
<param name="uiculture" value="de" />
<!--<param name="culture" value="fr" />
<param name="uiculture" value="fr" />-->
<!--<param name="culture" value="ja" />
<param name="uiculture" value="ja" />-->
<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>

Resources