Note that there are some explanatory texts on larger screens.

plurals
  1. POcan't play flv when redirect from struts using jaris flv player
    primarykey
    data
    text
    <p>I'm using Jaris flv player to play flv videos. </p> <p>It can open the page and display normally when I directly open the page<code>(http://mysite.com:8080/TSE/flv/player.jsp)</code>. </p> <p>But if I redirect and open the page from struts action's return, it can not work<code>(http://mysite.com:8080/TSE/multidocdetailDoc.action?selectId=C94DC060947048B188BB2FAF1804B0F3)</code>. </p> <p>The page displays the alternative content (the case of no adobe flash). </p> <p>What should I do?</p> <p><img src="https://i.stack.imgur.com/3buQa.jpg" alt="flash-enabled content"></p> <p><img src="https://i.stack.imgur.com/sIitf.jpg" alt="alternative content"></p> <p>the action did nothing except redirect:</p> <pre><code>public String multidocdetail(){ try { String selectId = getRequest().getParameter("selectId"); System.out.println(selectId); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return "multidocDetail"; } </code></pre> <p>struts: </p> <pre><code>&lt;action name="*Doc" class="casco.com.tse.action.learn.DocAction" method="{1}"&gt; &lt;result name="docDetail"&gt;/jsp/learn/docDetail.jsp&lt;/result&gt; &lt;result name="multidocDetail"&gt;/flv/player.jsp&lt;/result&gt; &lt;/action&gt; </code></pre> <p>the jsp is just like the example of jaris website:</p> <pre><code>&lt;%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%&gt; &lt;% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %&gt; &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Jaris FLV Player&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;meta name="language" content="en" /&gt; &lt;meta name="description" content="" /&gt; &lt;meta name="keywords" content="" /&gt; &lt;script type="text/javascript" src="js/swfobject.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; var flashvarsVideo = { source: "http://localhost:8080/TSE/flv/mv/CTCS-3.flv", type: "video", streamtype: "file", server: "",//Used for rtmp streams duration: "52", poster: "http://localhost:8080/TSE/flv/poster.png", autostart: "false", logo: "http://localhost:8080/TSE/flv/logo.jpg", logoposition: "top left", logoalpha: "30", logowidth: "130", logolink: "http://jaris.sourceforge.net", hardwarescaling: "false", darkcolor: "000000", brightcolor: "4c4c4c", controlcolor: "FFFFFF", hovercolor: "67A8C1" }; var params = { menu: "false", scale: "noScale", allowFullscreen: "true", allowScriptAccess: "always", bgcolor: "#000000", quality: "high", wmode: "opaque" }; var attributes = { id:"JarisFLVPlayer" }; //swfobject.embedSWF("JarisFLVPlayer.swf", "altContentOne", "576px", "360px", "10.0.0", "expressInstall.swf", flashvarsVideo, params, attributes); swfobject.embedSWF("JarisFLVPlayer.swf", "altContentOne", "750px", "520px", "10.0.0", "expressInstall.swf", flashvarsVideo, params, attributes); &lt;/script&gt; &lt;style&gt; html, body { height:100%; } body { margin:0; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;br /&gt; &lt;center&gt; &lt;h3&gt;CTCS三级列控体系介绍&lt;/h3&gt; &lt;div id="altContentOne"&gt; &lt;h1&gt;Jaris FLV Player&lt;/h1&gt; &lt;p&gt;Alternative content&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.adobe.com/go/getflashplayer"&gt;&lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/center&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload