Difference between revisions of "Embed WMV"

From TMM Wiki
Jump to navigationJump to search
m (Wmv embed moved to Embed WMV)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{CARMA1 Manual}}
 
{{CARMA1 Manual}}
  
A recent update to Windows and/or Windwos Media Player is causing WMV files not to play correctly in IE and FireFox for some people.  You can fix this by looking for this code in your view_clip template:  
+
This article outlines a CARMA template workaround for clients publishing WMV files.  This article is intended for anyone who maintains CARMA templates.
 +
 
 +
----
 +
 
 +
A recent update to Windows and/or Windows Media Player is causing WMV files not to play correctly in IE and FireFox for some people.  You can fix this by looking for code in your view_clip template similar to this:  
  
 
<pre>
 
<pre>
Line 15: Line 19:
 
</pre>
 
</pre>
  
and replacing it with this new code:
+
and replacing it with this something like this:
  
 
<pre>
 
<pre>
  <OBJECT ID="MediaPlayer" width="640" height="480" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
+
<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player"  width="320" height="260">
    STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
+
  <param name="url" value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" />  
    <PARAM NAME="FileName" VALUE="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}">
+
  <param name="src" value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" />
    <PARAM name="ShowControls" VALUE="true">
+
  <param name="showcontrols" value="true" />  
    <param name="ShowStatusBar" value="true">
+
  <param name="autostart" value="true" />
    <PARAM name="ShowDisplay" VALUE="false">
+
  <!--[if !IE]>-->  
    <PARAM name="autostart" VALUE="false">
+
     <object type="video/x-ms-wmv" data="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" width="320" height="260" >
     <EMBED TYPE="application/x-mplayer2" SRC="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" NAME="MediaPlayer"
+
      <param name="src" value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" />
    width="640" height="480" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" autostart="0"> </EMBED>
+
      <param name="autostart" value="true" />
   </OBJECT>
+
      <param name="controller" value="true" />
 +
    </object>
 +
   <!--<![endif]-->   
 +
</object>
 
</pre>
 
</pre>
  
You should change this on all your edited view_clip templates.   
+
You should change this on all your view_clip templates.
 +
 
 +
'''Note:''' The above code blocks are general examples, and that they may not work on your site(s) without modifying themIt is up to you to make changes if necessary.
  
This new code will be included in all new version of CARMA starting with version 1.3.4.2
+
This new code will be included in the default templates of CARMA starting with version 1.3.5.1

Latest revision as of 13:56, 31 March 2009

CARMA

This article outlines a CARMA template workaround for clients publishing WMV files. This article is intended for anyone who maintains CARMA templates.


A recent update to Windows and/or Windows Media Player is causing WMV files not to play correctly in IE and FireFox for some people. You can fix this by looking for code in your view_clip template similar to this:

  <embed type="application/x-mplayer2"
    pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
    src="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}"
    name="MediaPlayer"
    ShowControls="1"
    ShowStatusBar="1"
    width="320"
    height="285">
  </embed>

and replacing it with this something like this:

<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player"  width="320" height="260">
  <param name="url" value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" /> 
  <param name="src"  value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" />
  <param name="showcontrols" value="true" /> 
  <param name="autostart" value="true" />
  <!--[if !IE]>-->   
    <object type="video/x-ms-wmv" data="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}"  width="320" height="260" >
      <param name="src" value="http://{$smarty.server.HTTP_HOST}{rebuild_link without="style"}" />
      <param name="autostart" value="true" />
      <param name="controller" value="true" />
    </object>
  <!--<![endif]-->    
</object>

You should change this on all your view_clip templates.

Note: The above code blocks are general examples, and that they may not work on your site(s) without modifying them. It is up to you to make changes if necessary.

This new code will be included in the default templates of CARMA starting with version 1.3.5.1