嗨,我正在开发一个小型网络应用,我拥有并嵌入了视频播放器,
<object width="500" height="295" id="undefined" name="undefined"
data="http://www.facebook.com/l/c816a6KvMcY-i- yv0MPzf7OgOAw;releases.flowplayer.org/swf/flowplayer-3.2.5.swf"
type="application/x-shockwave-flash">
<param name="movie" value="http://www.facebook.com/l/c816aYgPeP5dGgJdnVHVdFuuEvA;releases.flowplayer.org/swf/fl owplayer- 3.2.5.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value='config={"clip":{"url":"../resources/<%=????%>"},
"playlist":[{"url":"../resources/<%=????%>"}]}'/>
</object>
我的问题是如何将选定的电影预告片传递给de player,因为所选的电影由JSF处理以进入预告片(我正在使用字符串,文件已经在正确的位置)
<h:outputText value="Trailer:"/>
<h:outputText value="#{ http://www.facebook.com/l/c816a- u4g9I3Gob02P5T8CTSmQg;movies.movies.trailer}" title="Trailer" />
非常感谢您提供的任何信息 最好的问候
答案 0 :(得分:1)
只需内联打印即可。
如果是JSP:
<param name="flashvars" value='config={"clip":{"url":"../resources/<h:outputText value="#{bean.clip}" />"},
"playlist":[{"url":"../resources/<h:outputText value="#{bean.url}" />"}]}'/>
如果Facelets:
<param name="flashvars" value='config={"clip":{"url":"../resources/#{bean.clip}"},
"playlist":[{"url":"../resources/#{bean.url}"}]}'/>