Changeset 11142 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_videoPrim/players/preview.flv.xsl
- Timestamp:
- 06/04/08 23:20:55 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_videoPrim/players/preview.flv.xsl
r11129 r11142 64 64 var vFlvUrl = vUriObjectMainStream.getUrlToLoadContent(); 65 65 var vOpts = ""; 66 67 <xsl:variable name="vOptions" select="sm:flvViewer/sm:options/@list"/> 66 <xsl:variable name="vOptions" select="sm:options/@list"/> 68 67 <xsl:choose> 69 68 <xsl:when test="$vOptions"> … … 93 92 94 93 var vSwf = "<xsl:value-of select="resultatAgent('//', 'res:src=bs:players/playerFlv.swf;overidedst=content/_common/playerFlv.swf')"/>"; 95 <xsl:variable name="vOptionsMap" select="si($vOptions, java:com.scenari.s.fw.utils.HParamsQueryString.hParseQueryStringAsMap(string(sm: flvViewer/sm:options/@list)))"/>94 <xsl:variable name="vOptionsMap" select="si($vOptions, java:com.scenari.s.fw.utils.HParamsQueryString.hParseQueryStringAsMap(string(sm:options/@list)))"/> 96 95 <xsl:choose> 97 96 <xsl:when test="$vOptions and java:containsKey($vOptionsMap, 'height')"> 98 97 var vHeight = <xsl:value-of select="java:get($vOptionsMap, 'height')"/>; 98 <xsl:if test="not(parent::sm:previewBlock)"> 99 99 window.frameElement.setAttribute("height", vHeight); 100 </xsl:if> 101 </xsl:when> 102 <xsl:when test="parent::sm:previewBlock"> 103 var vHeight = 320; 100 104 </xsl:when> 101 105 <xsl:otherwise> … … 106 110 <xsl:when test="$vOptions and java:containsKey($vOptionsMap, 'width')"> 107 111 var vWidth = <xsl:value-of select="java:get($vOptionsMap, 'width')"/>; 112 <xsl:if test="not(parent::sm:previewBlock)"> 108 113 window.frameElement.setAttribute("width", vWidth); 114 </xsl:if> 115 </xsl:when> 116 <xsl:when test="parent::sm:previewBlock"> 117 var vWidth = 400; 109 118 </xsl:when> 110 119 <xsl:otherwise> … … 123 132 vParam.setAttribute("value", 'flv=' + vFlvUrl); 124 133 _Object.appendChild(vParam); 125 document.documentElement.appendChild(_Object); 134 <xsl:choose> 135 <xsl:when test="parent::sm:previewBlock"> 136 document.getElementById("content").appendChild(_Object); 137 </xsl:when> 138 <xsl:otherwise> 139 document.documentElement.appendChild(_Object); 140 </xsl:otherwise> 141 </xsl:choose> 126 142 127 143 } catch(e){ut.debug(e);}
Note: See TracChangeset
for help on using the changeset viewer.