Help with camtasia studio videos... they look stretched!

Author Message

Massimo Sanna

Tuesday 14 August 2007 5:20:40 am

Hi there, I have a problem embedding camtasia videos in ezpublish cms. I'm trying to embed a camtasia movie in a custom class created in ezpublish. Everything's in place, but yet, I get that effect, after the preloader, the movie squishes and becomes half width (apparently it becomes 550px, the standard flash movie size), no matter which values do I specify in the swfobject load statement.

This is the code I generate, extremely similar to the standard one of camtasia.
Of course I tried to ditch all those stylesheets that get loaded at the beginning, with no results.
Ah, the only way to get the proper dimension, apparently, is to go with firebug on the stretched video, and change the size of the embed, even of a couple of pixels. After doing that, the video will look ok.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB">
<head>        
                            
    <title>Prova 1 / Training / Home - VisionWT  - Leading eZ Publish development solutions - Free your ideas</title>

    
    
    
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta http-equiv="Content-language" content="en-GB" />

    
        <meta name="author" content="Vision with Technology Ltd" />

        <meta name="copyright" content="Vision with Technology Ltd" />

        <meta name="description" content="VisionWT create award-winning eZ publish content management solutions. We are an established Gold Partner of eZ publish with five years experience." />

        <meta name="keywords" content="cms, publish, e-commerce, content management, development framework, Vision, VisionWT, Vision with Technology, eZ, Advanced eZ partner, eZ partner, eZ publish, eZ publish 3, partner, eZ systems, CMS, content" />

    
    <meta name="MSSmartTagsPreventParsing" content="TRUE" />
    <meta name="generator" content="eZ publish" />
    
<link rel="Home" href="/eng" title="VisionWT  - Leading eZ Publish development solutions - Free your ideas front page" />
<link rel="Index" href="/eng" />
<link rel="Top"  href="/eng" title="Prova 1 / Training / Home - VisionWT  - Leading eZ Publish development solutions - Free your ideas" />
<link rel="Search" href="/eng/content/advancedsearch" title="Search VisionWT  - Leading eZ Publish development solutions - Free your ideas" />
<link rel="Shortcut icon" href="/extension/design_ext_template/design/custom_design/images/favicon.ico" type="image/x-icon" />

<link rel="Copyright" href="/eng/ezinfo/copyright" />
<link rel="Author" href="/eng/ezinfo/about" />
<link rel="Alternate" type="application/rss+xml" title="RSS" href="/eng/rss/feed/my_feed" /><link rel="Alternate" href="/eng/layout/set/print/training__1/prova_1" media="print" title="Printable version" /><style type="text/css">
    @import url(/design/base/stylesheets/core.css);
    @import url(/extension/ezwebin/design/ezwebin/stylesheets/pagelayout.css);
    @import url(/extension/ezwebin/design/ezwebin/stylesheets/content.css);
    @import url(/extension/ezwebin/design/ezwebin/stylesheets/websitetoolbar.css);
    @import url(/var/storage/packages/ez_systems/ezwebin_design/files/default/file/classes-colors.css);
    @import url(/var/storage/packages/ez_systems/ezwebin_design/files/default/file/site-colors.css);
        @import url("/extension/design_ext_template/design/custom_design/stylesheets/site-style.css");
        @import url("/extension/eztraining/design/eztraining/stylesheets/FlashTemplate.css");
    </style>
<link rel="stylesheet" type="text/css" href="/extension/ezwebin/design/ezwebin/stylesheets/print.css" media="print" />
<!-- IE conditional comments; for bug fixes for different IE versions -->
<!--[if IE 5]>     <style type="text/css"> @import url(/extension/ezwebin/design/ezwebin/stylesheets/browsers/ie5.css);    </style> <![endif]-->
<!--[if lte IE 7]> <style type="text/css"> @import url(/extension/design_ext_template/design/custom_design/stylesheets/browsers/ie7lte.css); </style> <![endif]-->    <script language="javascript" type="text/javascript" src="/design/standard/javascript/tools/ezjsselection.js"></script>    <script language="javascript" type="text/javascript" src="/extension/ezwebin/design/ezwebin/javascript/insertmedia.js"></script>    <script language="javascript" type="text/javascript" src="/extension/eztraining/design/eztraining/javascript/swfobject.js"></script>    <script language="javascript" type="text/javascript" src="/extension/eztraining/design/eztraining/javascript/loader.js"></script></head><body id="cs_flashBody" ><!-- Complete page area: START -->    <!-- Main area: START -->                <div id="flashcontent">	   		
			<div id="cs_noexpressUpdate">

			  <p>The Camtasia Studio video content presented here requires JavaScript to be enabled and the  latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by <a href="http://www.macromedia.com/go/getflashplayer">downloading here</a>. </p>
		    </div>
	   </div>
      <script type="text/javascript">
		  // <![CDATA[          
         var fo = new SWFObject( "/extension/eztraining/design/eztraining/images/camtasia_controller.swf", "/extension/eztraining/design/eztraining/images/camtasia_controller.swf", "758", "600", "8", "#FFFFFF", false, "best" );
         fo.addVariable( "csConfigFile", "/eng/content/download/955/5294/version/3/file/prova1_config.xml"  ); 
         fo.addVariable( "csColor"     , "FFFFFF"           );
         fo.addVariable( "csPreloader" , "/extension/eztraining/design/eztraining/images/camtasia_preload.swf" );
         if( args.movie )
         {            fo.addVariable( "csFilesetBookmark", args.movie );
         }         fo.write("flashcontent"); 		  	  
         // ]]>

	   </script>  		            <!-- Main area: END -->

</body>
</html>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 14:52:01
Script start
Timing: Jan 18 2025 14:52:02
Module start 'layout'
Timing: Jan 18 2025 14:52:02
Module start 'content'
Timing: Jan 18 2025 14:52:03
Module end 'content'
Timing: Jan 18 2025 14:52:03
Script end

Main resources:

Total runtime1.1289 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 589.2891152.6563
Module start 'layout' 0.00930.0040 741.945339.5078
Module start 'content' 0.01341.1142 781.4531466.2500
Module end 'content' 1.12750.0014 1,247.703112.0938
Script end 1.1289  1,259.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2994160.0002
Check MTime0.00140.1213160.0001
Mysql Total
Database connection0.00110.100610.0011
Mysqli_queries1.081095.7544460.0235
Looping result0.00050.0473440.0000
Template Total1.059493.820.5297
Template load0.00230.205720.0012
Template processing1.057093.631020.5285
Template load and register function0.00030.029610.0003
states
state_id_array0.00320.279510.0032
state_identifier_array0.00280.243620.0014
Override
Cache load0.00190.164890.0002
Sytem overhead
Fetch class attribute can translate value0.00090.080710.0009
Fetch class attribute name0.00090.083520.0005
XML
Image XML parsing0.00290.253410.0029
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00320.2869160.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs