Changeset 1265


Ignore:
Timestamp:
03/12/08 19:53:41 (4 years ago)
Author:
anp
Message:

debug videoIndexee

Location:
trunk/model/sources/academic/gen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/model/sources/academic/gen/_web/transf/Re/vidInd/vidInd@xml/bs.doss/op_vidInd_Axml/content.xsl

    r1252 r1265  
    9292                                        <p><b>Navigation</b></p> 
    9393                                        <p>Le plan de gauche vous permet d'accéder à des séquences de la vidéo. La séquence en cours de lecture est placée sur un fond coloré.</p> 
    94                                         <p><b>Boutons de controle</b></p> 
     94                                        <p><b>Barre de contrôle</b></p> 
    9595                                        <p/> 
    9696                                        <p>- Affichage / Suppression du plan;</p> 
     
    103103                                        <p>- Description de la vidéo;</p> 
    104104                                        <p>- Bouton d'aide;</p> 
     105                                        <p>- Affichage ou non de la barre de contrôle;</p> 
    105106                                </text> 
    106107                        </help> 
     
    128129                        - le player flash oblige que le FLV soit dans une arborescence frere ou fille du SWF 
    129130                --> 
    130                 <xsl:variable name="vPath" select="si(sp:loc, substring(getUrl(gotoSubModel(sp:loc), 'url'), 8, string-length(getUrl(gotoSubModel(sp:loc), 'url'))))"/> 
    131                  
    132131                <xsl:variable name="vBegin" select="//sp:seg[1]/op:vidSeg/op:vidSegM/sp:tStart"/> 
    133132                <xsl:variable name="vEnd" select="//sp:seg[count(following::sp:seg) = 0]/op:vidSeg/op:vidSegM/sp:tEnd"/> 
     133                <xsl:variable name="vMode" select="si(not(../sp:desc/sp:menu) or ../sp:desc/sp:menu/text()='zone', 'normal', 'overlay')"/> 
     134                <xsl:variable name="vInsertWidth" select="si(../sp:desc/sp:menu/text()='overlayBox', '300', '0')"/> 
     135                <xsl:variable name="vInsertHeight" select="si(../sp:desc/sp:menu/text()='overlayBox', '300', '0')"/> 
     136                 
     137                <xsl:variable name="vIsLocal"> 
     138                        <xsl:choose> 
     139                                <!-- contexte : flv locale --> 
     140                                <xsl:when test="contains(resultatAgent('/@@/contentRoot'), '_ArootFlv')"> 
     141                                        <xsl:text>true</xsl:text> 
     142                                </xsl:when> 
     143                                <!-- contexte : flv stream --> 
     144                                <xsl:when test="contains(resultatAgent('/@@/contentRoot'), '_ArootStream')"> 
     145                                        <xsl:text>false</xsl:text> 
     146                                </xsl:when> 
     147                                <!-- pas de contexte : priorité au stream --> 
     148                                <xsl:when test="sp:stream"> 
     149                                        <xsl:text>false</xsl:text> 
     150                                </xsl:when> 
     151                                <xsl:otherwise><!-- flv locale --> 
     152                                        <xsl:text>true</xsl:text> 
     153                                </xsl:otherwise> 
     154                        </xsl:choose> 
     155                </xsl:variable> 
     156                 
    134157                <xsl:choose> 
    135                         <!-- contexte : flv locale --> 
    136                         <xsl:when test="contains(resultatAgent('/@@/contentRoot'), '_ArootFlv')"> 
    137                                 <video src="{$vPath}" clipBegin="{$vBegin}" clipEnd="{$vEnd}"/> 
     158                        <xsl:when test="$vIsLocal='true'"><!-- Local --> 
     159                                <xsl:variable name="vPath" select="si(sp:loc, substring(getUrl(gotoSubModel(sp:loc), 'url'), 8, string-length(getUrl(gotoSubModel(sp:loc), 'url'))))"/> 
     160                                <video src="{$vPath}" clipBegin="{$vBegin}" clipEnd="{$vEnd}" menuMode="{$vMode}"> 
     161                                        <xsl:if test="$vInsertWidth!='0'"><xsl:attribute name="insertWidth"><xsl:value-of select="$vInsertWidth"/></xsl:attribute></xsl:if> 
     162                                        <xsl:if test="$vInsertHeight!='0'"><xsl:attribute name="insertHeight"><xsl:value-of select="$vInsertHeight"/></xsl:attribute></xsl:if> 
     163                                </video> 
    138164                        </xsl:when> 
    139                         <!-- contexte : flv stream --> 
    140                         <xsl:when test="contains(resultatAgent('/@@/contentRoot'), '_ArootStream')"> 
    141                                 <video src="{normalize-space(sp:stream)}" clipBegin="{$vBegin}" clipEnd="{$vEnd}"/> 
    142                         </xsl:when> 
    143                         <!-- pas de contexte : priorité au stream --> 
    144                         <xsl:when test="sp:stream"> 
    145                                 <video src="{normalize-space(sp:stream)}" clipBegin="{$vBegin}" clipEnd="{$vEnd}"/> 
    146                         </xsl:when> 
    147                         <xsl:otherwise><!-- flv locale --> 
    148                                 <video src="{$vPath}" clipBegin="{$vBegin}" clipEnd="{$vEnd}"/> 
     165                        <xsl:otherwise><!-- Stream --> 
     166                                <video src="{normalize-space(sp:stream)}" clipBegin="{$vBegin}" clipEnd="{$vEnd}" menuMode="{$vMode}"> 
     167                                        <xsl:if test="$vInsertWidth!='0'"><xsl:attribute name="insertWidth"><xsl:value-of select="$vInsertWidth"/></xsl:attribute></xsl:if> 
     168                                        <xsl:if test="$vInsertHeight!='0'"><xsl:attribute name="insertHeight"><xsl:value-of select="$vInsertHeight"/></xsl:attribute></xsl:if> 
     169                                </video> 
    149170                        </xsl:otherwise> 
    150171                </xsl:choose> 
     172                 
    151173        </xsl:template> 
    152174         
  • trunk/model/sources/academic/gen/video/cdrom.generator

    r1251 r1265  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <sm:webSiteGenerator xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="playercdrom" name="Player Vidéo - CD-ROM"> 
     2<sm:webSiteGenerator xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="plVidCdrom" name="Player Vidéo - CD-ROM"> 
    33        <sm:modelRoot> 
    44                <sm:allowedModel sc:refUri="/academic/model/Re/vidInd/vidInd.model"/> 
  • trunk/model/sources/academic/gen/video/playerWeb.generator

    r1251 r1265  
    11<?xml version="1.0" encoding="UTF-8"?> 
    2 <sm:webSiteGenerator xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="playerWeb" name="Player Vidéo - Web (streaming)"> 
     2<sm:webSiteGenerator xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" code="plVidWeb" name="Player Vidéo - Web (streaming)"> 
    33        <sm:modelRoot> 
    44                <sm:allowedModel sc:refUri="/academic/model/Re/vidInd/vidInd.model"/> 
  • trunk/model/sources/academic/gen/video/uiTemplate/player.uitemplate

    r1246 r1265  
    6767        // embed the Flash Content SWF when all tests are passed 
    6868        AC_FL_RunContent( 
    69                         "src", "../res/VideoIndexee?indexXml="+vIndexUrl, 
     69                        "src", "../res/VideoIndexee", 
     70                        "flashvars", "indexXml="+vIndexUrl, 
    7071                        "width", "100%", 
    7172                        "height", "100%", 
     
    8990<noscript> 
    9091        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="VideoIndexee" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> 
    91                         <param name="movie" value="../res/VideoIndexee.swf?indexXml=src/ressources/xml/videoIndex.xml"/> 
     92                        <param name="movie" value="../res/VideoIndexee.swf"/> 
     93                        <param name="FlashVars" value="indexXml=src/ressources/xml/videoIndex.xml"/> 
    9294                        <param name="quality" value="high"/> 
    9395                        <param name="bgcolor" value="#869ca7"/> 
    9496                        <param name="allowScriptAccess" value="sameDomain"/> 
    9597                        <param name="allowFullScreen" value="true"/> 
    96                         <embed src="../res/VideoIndexee.swf?indexXml=src/ressources/xml/videoIndex.xml" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="VideoIndexee" align="middle" play="true" loop="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> 
     98                        <embed src="../res/VideoIndexee.swf" flashvars="indexXml=src/ressources/xml/videoIndex.xml" quality="high" bgcolor="#869ca7" width="100%" height="100%" name="VideoIndexee" align="middle" play="true" loop="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> 
    9799                        </embed> 
    98100        </object> 
Note: See TracChangeset for help on using the changeset viewer.